lean_workbook_plus_38256
ProvedNote that holds by the Trivial Inequality. But since none of the squares can be negative, they must all equal zero, ensuring that is the only solution, and is hence the only (real) solution to the original equation.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_38256 (x : ℝ) (a b : ℝ) (h₀ : x = a - b) (h₁ : x = a - 1) (h₂ : x = b - 1) (h₃ : 2 * x^2 = (a - b)^2 + (a - 1)^2 + (b - 1)^2) : x = 0 := by sorry
Source