lean_workbook_plus_67072
ProvedHere is my original example: \n\n
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_67072 (a b : ℝ) (f : ℝ → ℝ) (h₀ : 0 < a ∧ 0 < b) (h₁ : a ≠ b) (h₂ : ∀ x < -1 - b / a, f x = 0) (h₃ : ∀ x, -1 - b / a ≤ x ∧ x ≤ -2 → f x = a / (a - b) * x + 2 * a / (a - b)) (h₄ : ∀ x > -2, f x = 1) : ∀ x, f x = if x < -1 - b / a then 0 else if -1 - b / a ≤ x ∧ x ≤ -2 then a / (a - b) * x + 2 * a / (a - b) else 1 := by sorry
Source