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 Mathlib.Algebra.Group.Basic |
| 2 | import Mathlib.Data.Nat.Init |
| 3 | import Mathlib.Algebra.Group.TypeTags.Basic |
| 4 | import Mathlib.Tactic.Abel |
| 5 | import Mathlib.Tactic.Ring |
| 6 | |
| 7 | /-! # Cubical Algebra Pow -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubicalAlgebraPow.Construction.CubicalAlgebra |
| 10 | |
| 11 | /-! The algebraic consequence of a symmetric cubical identity. |
| 12 | This file does not assert the geometric theorem of the cube. -/ |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | section Additive |
| 17 | |
| 18 | variable {G : Type u} {P : Type v} [AddCommGroup G] [AddCommGroup P] |
| 19 | variable (q : G → P) (hzero : q 0 = 0) (heven : ∀ x, q (-x) = q x) |
| 20 | variable (hcube : ∀ x y z, q (x + y + z) + q x + q y + q z = |
| 21 | q (x + y) + q (x + z) + q (y + z)) |
| 22 | |
| 23 | include hzero heven hcube |
| 24 | |
| 25 | theorem parallelogram (x y : G) : |
| 26 | q (x + y) + q (x - y) = 2 • q x + 2 • q y := by |
| 27 | have h := hcube x y (-y) |
| 28 | rw [add_neg_cancel_right, add_neg_cancel, hzero, heven] at h |
| 29 | rw [← sub_eq_add_neg, add_zero] at h |
| 30 | simpa only [two_nsmul, add_assoc] using h.symm |
| 31 | |
| 32 | /-- A symmetric function satisfying the cubical identity is quadratic on |
| 33 | every cyclic subgroup, without any torsion-free hypothesis on the target. -/ |
| 34 | theorem nsmul (a : G) (n : ℕ) : q (n • a) = (n * n) • q a := by |
| 35 | induction n using Nat.twoStepInduction with |
| 36 | | zero => simpa only [zero_nsmul, Nat.zero_mul] using hzero |
| 37 | | one => simp only [one_nsmul, Nat.one_mul] |
| 38 | | more n hn hn₁ => |
| 39 | have h := parallelogram q hzero heven hcube ((n + 1) • a) a |
| 40 | have hp : (n + 1) • a + a = (n + 2) • a := by |
| 41 | simp only [add_nsmul, one_nsmul, two_nsmul, add_assoc] |
| 42 | have hm : (n + 1) • a - a = n • a := by |
| 43 | rw [add_nsmul, one_nsmul, add_sub_cancel_right] |
| 44 | rw [hp, hm, hn, hn₁] at h |
| 45 | apply add_right_cancel (b := (n * n) • q a) |
| 46 | calc |
| 47 | q ((n + 2) • a) + (n * n) • q a = |
| 48 | 2 • ((n + 1) * (n + 1)) • q a + 2 • q a := h |
| 49 | _ = ((n + 2) * (n + 2)) • q a + (n * n) • q a := by |
| 50 | rw [← mul_nsmul, ← add_nsmul, ← add_nsmul] |
| 51 | congr 1 |
| 52 | ring |
| 53 | |
| 54 | end Additive |
| 55 | |
| 56 | variable {A : Type u} {B : Type v} [CommGroup A] [CommGroup B] |
| 57 | |
| 58 | /-- Multiplicative form, for use with tensor products in a Picard group. -/ |
| 59 | theorem pow (q : A → B) (hone : q 1 = 1) (hinv : ∀ a, q a⁻¹ = q a) |
| 60 | (hcube : ∀ a b c, q (a * b * c) * q a * q b * q c = |
| 61 | q (a * b) * q (a * c) * q (b * c)) (a : A) (n : ℕ) : |
| 62 | q (a ^ n) = q a ^ (n * n) := by |
| 63 | exact @nsmul (Additive A) (Additive B) _ _ |
| 64 | (fun x => Additive.ofMul (q x.toMul)) hone hinv hcube (Additive.ofMul a) n |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubicalAlgebraPow.Construction.CubicalAlgebra |