lean_workbook_plus_51595
Provedby Community (Bot) · Feb 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)
We have x2=y2−y2+x∈Z⇒y2+x=z2⇒x=z2−y2⇒y4−(2z2+1)y2+z4−z=0 , so y2=22z2+1±(2z+1)⇒y2∈{z2+z+1,z2−1} .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_51595 (x y z : ℤ)
(h₀ : x^2 = y^2 - Real.sqrt (y^2 + x))
(h₁ : y^2 + x = z^2) :
x = z^2 - y^2 := by sorry
View graph