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.LabeledDeterminantPolynomials |
| 2 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 3 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 4 | |
| 5 | /-! # Labeled Determinant Span Criterion -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LabeledDeterminantSpanCriterion |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A labeled family spans exactly when one of its maximal minors is |
| 12 | nonzero. The selected labels may be restricted to any prescribed subset. -/ |
| 13 | open scoped Classical |
| 14 | universe u |
| 15 | variable {K : Type u} [Field K] {r m : ℕ} |
| 16 | |
| 17 | theorem spanningLabels_exists_nonzero_determinant (v : Fin m → Fin r → K) (H : Set (Fin m)) |
| 18 | (hspan : Submodule.span K (v '' H) = ⊤) : |
| 19 | ∃ σ : Fin r → Fin m, (∀ j, σ j ∈ H) ∧ LabeledDeterminantPolynomials.labeledDeterminant σ v ≠ 0 := by |
| 20 | have hli : LinearIndepOn K id (∅ : Set (Fin r → K)) := by simp |
| 21 | have hsub : (∅ : Set (Fin r → K)) ⊆ v '' H := Set.empty_subset _ |
| 22 | let κ := hli.extend hsub |
| 23 | let b : Module.Basis κ K (Fin r → K) := Module.Basis.extendLe hli hsub hspan.ge |
| 24 | let : Finite κ := Module.Finite.finite_basis b |
| 25 | let : Fintype κ := Fintype.ofFinite κ |
| 26 | have hc : Fintype.card κ = r := by |
| 27 | rw [← Module.finrank_eq_card_basis b] |
| 28 | exact Module.finrank_fin_fun K |
| 29 | let q : κ ≃ Fin r := (Fintype.equivFin κ).trans (finCongr hc) |
| 30 | let b' := b.reindex q |
| 31 | have hb (j : Fin r) : ∃ i ∈ H, v i = b' j := by |
| 32 | have hmem : b (q.symm j) ∈ v '' H := |
| 33 | Module.Basis.extendLe_subset hli hsub hspan.ge ⟨q.symm j, rfl⟩ |
| 34 | obtain ⟨i, hi, hbi⟩ := hmem |
| 35 | refine ⟨i, hi, ?_⟩ |
| 36 | simpa only [b', Module.Basis.reindex_apply] using hbi |
| 37 | choose σ hσ hv using hb |
| 38 | refine ⟨σ, hσ, ?_⟩ |
| 39 | rw [LabeledDeterminantPolynomials.labeledDeterminant_eq_basis] |
| 40 | have he : (fun j => v (σ j)) = b' := funext hv |
| 41 | rw [he] |
| 42 | exact ((Pi.basisFun K (Fin r)).isUnit_det b').ne_zero |
| 43 | |
| 44 | theorem labeledDeterminant_eq_zero_of_mem_proper_submodule (v : Fin m → Fin r → K) |
| 45 | (W : Submodule K (Fin r → K)) (hW : W ≠ ⊤) (σ : Fin r → Fin m) |
| 46 | (hσ : ∀ j, v (σ j) ∈ W) : LabeledDeterminantPolynomials.labeledDeterminant σ v = 0 := by |
| 47 | by_contra hd |
| 48 | have hu : IsUnit ((Pi.basisFun K (Fin r)).det (fun j => v (σ j))) := |
| 49 | isUnit_iff_ne_zero.mpr ((LabeledDeterminantPolynomials.labeledDeterminant_eq_basis σ v) ▸ hd) |
| 50 | have ht := ((Pi.basisFun K (Fin r)).is_basis_iff_det.mpr hu).2 |
| 51 | have hle : Submodule.span K (Set.range (fun j => v (σ j))) ≤ W := |
| 52 | Submodule.span_le.mpr (by rintro _ ⟨j, rfl⟩; exact hσ j) |
| 53 | exact hW (top_unique (ht ▸ hle)) |
| 54 | |
| 55 | theorem labeledSpan_ne_top_of_all_determinants_zero (v : Fin m → Fin r → K) |
| 56 | (H : Set (Fin m)) (h : ∀ σ : Fin r → Fin m, |
| 57 | (∀ j, σ j ∈ H) → LabeledDeterminantPolynomials.labeledDeterminant σ v = 0) : |
| 58 | Submodule.span K (v '' H) ≠ ⊤ := by |
| 59 | intro htop |
| 60 | obtain ⟨σ, hσ, hd⟩ := spanningLabels_exists_nonzero_determinant v H htop |
| 61 | exact hd (h σ hσ) |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LabeledDeterminantSpanCriterion |