lean_workbook_plus_18413
ProvedWrite the function in Mathematica
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_18413 (f : ℝ → ℝ) (x : ℝ) (hf: f x = if x >= 0 then x^2 else 1) : f x = if x >= 0 then x^2 else 1 := by sorry
Source