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.CoordinateFrameSelection |
| 2 | import Mathlib.LinearAlgebra.FiniteDimensional.Defs |
| 3 | import Mathlib.LinearAlgebra.Dimension.Finrank |
| 4 | |
| 5 | /-! # Sparse Finite Projective Frames -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SparseFiniteProjectiveFrames |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The hyperplane sparsity bound supplies a spanning configuration, |
| 12 | a basis chosen among its vectors, and a further vector with every basis |
| 13 | coordinate nonzero. These are the linear data of a projective frame. -/ |
| 14 | open scoped BigOperators Classical |
| 15 | universe u v |
| 16 | variable {K V : Type u} [Field K] [AddCommGroup V] [Module K V] [Module.Finite K V] |
| 17 | variable {ι : Type v} [Fintype ι] (v : ι → V) |
| 18 | variable (hp : 0 < Module.finrank K V) |
| 19 | variable (hs : ∀ W : Submodule K V, W ≠ ⊤ → |
| 20 | Module.finrank K V * (Finset.univ.filter (fun j => v j ∈ W)).card < Fintype.card ι) |
| 21 | |
| 22 | include hp hs in |
| 23 | omit [Module.Finite K V] in |
| 24 | theorem sparseFiniteFamily_span : Submodule.span K (Set.range v) = ⊤ := by |
| 25 | by_contra hn |
| 26 | have h := hs (Submodule.span K (Set.range v)) hn |
| 27 | have hall : Finset.univ.filter (fun j => v j ∈ Submodule.span K (Set.range v)) = |
| 28 | (Finset.univ : Finset ι) := by |
| 29 | apply Finset.filter_eq_self.mpr |
| 30 | intro j _ |
| 31 | exact Submodule.subset_span (Set.mem_range_self j) |
| 32 | rw [hall, Finset.card_univ] at h |
| 33 | have hm : Fintype.card ι ≤ Module.finrank K V * Fintype.card ι := by |
| 34 | simpa only [Nat.one_mul] using Nat.mul_le_mul_right (Fintype.card ι) (Nat.succ_le_of_lt hp) |
| 35 | exact (Nat.not_lt_of_ge hm) h |
| 36 | |
| 37 | include hp hs in |
| 38 | theorem sparseFiniteFamily_projectiveFrame : |
| 39 | ∃ (κ : Type u) (_ : Fintype κ) (b : Module.Basis κ K V), |
| 40 | Set.range b ⊆ Set.range v ∧ ∃ j : ι, ∀ k, b.repr (v j) k ≠ 0 := by |
| 41 | classical |
| 42 | have hspan : ⊤ ≤ Submodule.span K (Set.range v) := le_of_eq (sparseFiniteFamily_span v hp hs).symm |
| 43 | let I : Set V := (linearIndepOn_empty K id).extend (Set.empty_subset (Set.range v)) |
| 44 | let b : Module.Basis I K V := Module.Basis.ofSpan hspan |
| 45 | let : Finite I := Module.Finite.finite_basis b |
| 46 | let : Fintype I := Fintype.ofFinite I |
| 47 | have hcard : Fintype.card I = Module.finrank K V := (Module.finrank_eq_card_basis b).symm |
| 48 | have : Nonempty I := Fintype.card_pos_iff.mp (hcard.symm ▸ hp) |
| 49 | have hcoords (k : I) : Fintype.card I * |
| 50 | (Finset.univ.filter (fun j => b.repr (v j) k = 0)).card < Fintype.card ι := by |
| 51 | have hker : LinearMap.ker (b.coord k) ≠ ⊤ := by |
| 52 | intro he |
| 53 | have hm : b k ∈ LinearMap.ker (b.coord k) := he.symm ▸ Submodule.mem_top |
| 54 | simp at hm |
| 55 | have h := hs (LinearMap.ker (b.coord k)) hker |
| 56 | simpa only [hcard, LinearMap.mem_ker, Module.Basis.coord_apply] using h |
| 57 | exact ⟨I, inferInstance, b, Module.Basis.ofSpan_subset hspan, |
| 58 | HilbertConstruction.Finite.CoordinateFrameSelection.basis_sparseFamily_exists_all_coordinates_ne_zero b v hcoords⟩ |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SparseFiniteProjectiveFrames |