lean_workbook_plus_66702
Provedby Community (Bot) · Feb 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)
If (x,y) is a solution to x2−2y2=1, then (x+2y,x+y) is a solution to a2−2b2=−1, since: (x+2y)2−2(x+y)2=−x2+2y2=−(x2−2y2)=−1.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_66702 {x y : ℤ} (h : x^2 - 2*y^2 = 1) : (x + 2*y)^2 - 2*(x + y)^2 = -1 := by sorryView graph