Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.PicardField |
| 2 | import Mathlib.Tactic.Abel |
| 3 | import Mathlib.Tactic.Ring |
| 4 | |
| 5 | /-! # Cubical Algebra -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.CubicalAlgebra.Construction |
| 8 | |
| 9 | /-! The algebraic consequence of the theorem-of-the-cube identity. -/ |
| 10 | |
| 11 | universe u v |
| 12 | |
| 13 | def IsCubical {G : Type u} {H : Type v} [AddCommGroup G] [AddCommGroup H] |
| 14 | (q : G → H) : Prop := |
| 15 | ∀ x y z, q (x + y + z) + q x + q y + q z = q (x + y) + q (x + z) + q (y + z) |
| 16 | |
| 17 | theorem cubical_double_of_symmetric {G : Type u} {H : Type v} |
| 18 | [AddCommGroup G] [AddCommGroup H] {q : G → H} |
| 19 | (h0 : q 0 = 0) (hc : IsCubical q) (x : G) (hx : q (-x) = q x) : |
| 20 | q (x + x) = 4 • q x := by |
| 21 | have h := hc x x (-x) |
| 22 | simp only [add_neg_cancel_right, add_neg_cancel, h0, hx, add_zero] at h |
| 23 | calc |
| 24 | q (x + x) = q x + q x + q x + q x := h.symm |
| 25 | _ = 4 • q x := by abel |
| 26 | |
| 27 | theorem cubical_nsmul_of_symmetric {G : Type u} {H : Type v} |
| 28 | [AddCommGroup G] [AddCommGroup H] {q : G → H} |
| 29 | (h0 : q 0 = 0) (hc : IsCubical q) (x : G) (hx : q (-x) = q x) (n : ℕ) : |
| 30 | q (n • x) = n ^ 2 • q x := by |
| 31 | have htwo := cubical_double_of_symmetric h0 hc x hx |
| 32 | induction n using Nat.twoStepInduction with |
| 33 | | zero => simpa using h0 |
| 34 | | one => simp |
| 35 | | more n hn hn1 => |
| 36 | have h := hc (n • x) x x |
| 37 | have h₁ : n • x + x = (n + 1) • x := by simp [add_nsmul] |
| 38 | have h₂ : n • x + x + x = (n + 2) • x := by simp [add_nsmul, two_nsmul, add_assoc] |
| 39 | rw [h₂, h₁, hn, hn1, htwo] at h |
| 40 | apply add_right_cancel (b := n ^ 2 • q x + q x + q x) |
| 41 | calc |
| 42 | q ((n + 2) • x) + (n ^ 2 • q x + q x + q x) = |
| 43 | (n + 1) ^ 2 • q x + (n + 1) ^ 2 • q x + 4 • q x := by simpa [add_assoc] using h |
| 44 | _ = (n + 2) ^ 2 • q x + (n ^ 2 • q x + q x + q x) := by |
| 45 | have hp : (n + 1) ^ 2 + (n + 1) ^ 2 + 4 = (n + 2) ^ 2 + (n ^ 2 + 1 + 1) := by ring |
| 46 | simpa only [add_nsmul, one_nsmul] using congrArg (fun m : ℕ ↦ m • q x) hp |
| 47 | |
| 48 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.CubicalAlgebra.Construction |