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.LinearAlgebra.Basis.Defs |
| 2 | import Mathlib.Algebra.Group.Units.Basic |
| 3 | |
| 4 | /-! # Scalar Rigidity -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProjectiveFrame.ScalarRigidity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A linear automorphism fixing the lines of a basis and one additional |
| 11 | vector whose coordinates are units is scalar. The argument works over an |
| 12 | arbitrary commutative ring, as required on projective-frame charts. -/ |
| 13 | universe u v w |
| 14 | variable {R : Type u} [CommRing R] {V : Type v} [AddCommGroup V] [Module R V] |
| 15 | variable {κ : Type w} (b : Module.Basis κ R V) |
| 16 | variable (f : V →ₗ[R] V) (a : κ → R) (hf : ∀ k, f (b k) = a k • b k) |
| 17 | |
| 18 | include hf in |
| 19 | theorem basis_diagonal_coordinate (k : κ) : |
| 20 | (b.coord k).comp f = a k • b.coord k := by |
| 21 | classical |
| 22 | apply b.ext |
| 23 | intro j |
| 24 | change b.coord k (f (b j)) = a k • b.coord k (b j) |
| 25 | rw [hf, map_smul] |
| 26 | by_cases hj : j = k |
| 27 | · subst j |
| 28 | rfl |
| 29 | · simp only [Module.Basis.coord_apply, Module.Basis.repr_self_apply, hj, ite_false, smul_zero] |
| 30 | |
| 31 | include hf in |
| 32 | theorem projectiveFrame_linearMap_scalar |
| 33 | (v : V) (hu : ∀ k, IsUnit (b.repr v k)) (c : R) (hv : f v = c • v) : |
| 34 | f = c • LinearMap.id := by |
| 35 | have ha (k : κ) : a k = c := by |
| 36 | have h := LinearMap.congr_fun (basis_diagonal_coordinate b f a hf k) v |
| 37 | change b.coord k (f v) = a k * b.coord k v at h |
| 38 | rw [hv, map_smul] at h |
| 39 | have h' : c * b.repr v k = a k * b.repr v k := h |
| 40 | exact ((hu k).mul_right_cancel h').symm |
| 41 | apply b.ext |
| 42 | intro k |
| 43 | change f (b k) = c • b k |
| 44 | rw [hf, ha] |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProjectiveFrame.ScalarRigidity |