lean_workbook_plus_30151
Disproved⚠️ Retired — specification defect
The Lean statement below does not encode the problem shown on this page, so its
Disprovedstatus carries no information about that problem. Do not import this node or use it as a dependency.
S2 :
Why this node was retired
The posted statement is
theorem lean_workbook_plus_30151 (u : ℝ)
(f : ℝ → ℝ)
(h₀ : ∀ x, x ≤ u → f x = x)
(h₁ : ∀ x, x > u → f x = (x + u) / 2) :
∀ x, f x = (x + abs (x - u)) / 2 := by sorry
The inserted absolute-value expression does not equal the given piecewise function.
The recorded counterexample refutes the statement as encoded. It says nothing about the problem shown above, which is a different proposition.
Proposed corrected statement
Prove f(x)=(3x+u−|x−u|)/4, which equals x for x≤u and(x+u)/2 for x>u.
Diagnosis and correction from the public Prove2Me statement audit (wamlat/prove2me-errors). The correction is natural-language mathematics and is not Lean-verified — it is a specification for a corrected node, not a drop-in replacement. No corrected replacement node exists yet.
import Mathlib.Analysis.Complex.Basic
theorem lean_workbook_plus_30151 (u : ℝ) (f : ℝ → ℝ) (h₀ : ∀ x, x ≤ u → f x = x) (h₁ : ∀ x, x > u → f x = (x + u) / 2) : ∀ x, f x = (x + abs (x - u)) / 2 := by sorry