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.VectorSpace |
| 2 | import Mathlib.LinearAlgebra.FiniteDimensional.Defs |
| 3 | |
| 4 | /-! # Basis With Marked Label -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.BasisWithMarkedLabel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A basis chosen from a spanning labeled family can be required to |
| 11 | include a specified nonzero label, even when some labeled vectors coincide. -/ |
| 12 | open scoped Classical |
| 13 | universe u v |
| 14 | variable {K V : Type u} [Field K] [AddCommGroup V] [Module K V] [Module.Finite K V] |
| 15 | variable {ι : Type v} |
| 16 | |
| 17 | theorem spanningFamily_basis_containing_label (v : ι → V) (H : Set ι) |
| 18 | (hspan : Submodule.span K (v '' H) = ⊤) (i₀ : ι) (hi₀ : i₀ ∈ H) (hv₀ : v i₀ ≠ 0) : |
| 19 | ∃ (κ : Type u) (_ : Fintype κ) (b : Module.Basis κ K V) (σ : κ → ι) (j₀ : κ), |
| 20 | (∀ j, σ j ∈ H) ∧ (∀ j, v (σ j) = b j) ∧ σ j₀ = i₀ := by |
| 21 | have hli : LinearIndepOn K id {v i₀} := (linearIndepOn_singleton_iff K).mpr hv₀ |
| 22 | have hsub : ({v i₀} : Set V) ⊆ v '' H := Set.singleton_subset_iff.mpr ⟨i₀, hi₀, rfl⟩ |
| 23 | have ht : ⊤ ≤ Submodule.span K (v '' H) := hspan.symm.le |
| 24 | let κ := hli.extend hsub |
| 25 | let b : Module.Basis κ K V := Module.Basis.extendLe hli hsub ht |
| 26 | let : Finite κ := Module.Finite.finite_basis b |
| 27 | let : Fintype κ := Fintype.ofFinite κ |
| 28 | have hmarked : v i₀ ∈ Set.range b := |
| 29 | Module.Basis.subset_extendLe hli hsub ht (Set.mem_singleton _) |
| 30 | obtain ⟨j₀, hj₀⟩ := hmarked |
| 31 | have hchoices (j : κ) : ∃ i ∈ H, v i = b j := |
| 32 | Module.Basis.extendLe_subset hli hsub ht (Set.mem_range_self j) |
| 33 | choose σ hσ hσv using hchoices |
| 34 | refine ⟨κ, inferInstance, b, Function.update σ j₀ i₀, j₀, ?_, ?_, ?_⟩ |
| 35 | · intro j |
| 36 | by_cases hj : j = j₀ |
| 37 | · subst j |
| 38 | simpa only [Function.update_self] using hi₀ |
| 39 | · simpa only [Function.update_of_ne hj] using hσ j |
| 40 | · intro j |
| 41 | by_cases hj : j = j₀ |
| 42 | · subst j |
| 43 | simpa only [Function.update_self] using hj₀.symm |
| 44 | · simpa only [Function.update_of_ne hj] using hσv j |
| 45 | · exact Function.update_self _ _ _ |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.BasisWithMarkedLabel |