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.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.IndexedProjectiveFrames |
| 2 | import Mathlib.LinearAlgebra.Basis.SMul |
| 3 | |
| 4 | /-! # Indexed Frame Transport -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The finite labeled frame condition is invariant under a linear |
| 11 | coordinate isomorphism, relabeling, and rescaling each point by a unit. -/ |
| 12 | open scoped Classical |
| 13 | universe u v w |
| 14 | variable {K V W : Type u} [Field K] [AddCommGroup V] [Module K V] |
| 15 | variable [AddCommGroup W] [Module K W] {ι : Type v} {τ : Type w} {r : ℕ} |
| 16 | |
| 17 | theorem IndexedProjectiveFrames.HasFiniteIndexedProjectiveFrame.map {e : ι → V} |
| 18 | (h : IndexedProjectiveFrames.HasFiniteIndexedProjectiveFrame (K := K) (r := r) e) (f : V ≃ₗ[K] W) : |
| 19 | IndexedProjectiveFrames.HasFiniteIndexedProjectiveFrame (K := K) (r := r) (fun i => f (e i)) := by |
| 20 | obtain ⟨b, σ, hb, j, hj⟩ := h |
| 21 | refine ⟨b.map f, σ, fun k => ?_, j, fun k => ?_⟩ |
| 22 | · exact congrArg f (hb k) |
| 23 | · change b.repr (f.symm (f (e j))) k ≠ 0 |
| 24 | rw [f.symm_apply_apply] |
| 25 | exact hj k |
| 26 | |
| 27 | theorem IndexedProjectiveFrames.HasFiniteIndexedProjectiveFrame.reindex {e : ι → V} |
| 28 | (h : IndexedProjectiveFrames.HasFiniteIndexedProjectiveFrame (K := K) (r := r) e) (q : τ ≃ ι) : |
| 29 | IndexedProjectiveFrames.HasFiniteIndexedProjectiveFrame (K := K) (r := r) (fun j => e (q j)) := by |
| 30 | obtain ⟨b, σ, hb, j, hj⟩ := h |
| 31 | refine ⟨b, fun k => q.symm (σ k), fun k => ?_, q.symm j, fun k => ?_⟩ |
| 32 | · simpa only [q.apply_symm_apply] using hb k |
| 33 | · simpa only [q.apply_symm_apply] using hj k |
| 34 | |
| 35 | theorem IndexedProjectiveFrames.HasFiniteIndexedProjectiveFrame.units_smul {e : ι → V} |
| 36 | (h : IndexedProjectiveFrames.HasFiniteIndexedProjectiveFrame (K := K) (r := r) e) (z : ι → Kˣ) : |
| 37 | IndexedProjectiveFrames.HasFiniteIndexedProjectiveFrame (K := K) (r := r) (fun i => (z i : K) • e i) := by |
| 38 | obtain ⟨b, σ, hb, j, hj⟩ := h |
| 39 | refine ⟨b.unitsSMul (fun k => z (σ k)), σ, fun k => ?_, j, fun k => ?_⟩ |
| 40 | · rw [Module.Basis.unitsSMul_apply, Units.smul_def, hb k] |
| 41 | · rw [Module.Basis.repr_unitsSMul, map_smul] |
| 42 | change (↑((z (σ k))⁻¹) : K) * ((z j : K) * b.repr (e j) k) ≠ 0 |
| 43 | exact mul_ne_zero (Units.ne_zero _) (mul_ne_zero (Units.ne_zero _) (hj k)) |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite |