An absolute difference by cases
ProvedWorkbookSource.problem_40553lean-workbooksource-checked
For real numbers ,
Source: InternLM Lean-Workbook, record lean_workbook_40553 (Apache-2.0). The complete source proposition and explicit variable declarations are preserved.
Preamble
import Mathlib open Real Nat
Formal statement
theorem WorkbookSource.problem_40553 (x y : ℝ) : |x - y| = if x > y then x - y else y - x := by sorry
Source