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.RingTheory.Extension.Presentation.Submersive |
| 2 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 3 | |
| 4 | /-! # Presentation Dimension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.PresentationDimension.Algebraic |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Free-coordinate dimension of a submersive presentation |
| 12 | |
| 13 | These finite-dimensional identities apply to the actual injection selecting |
| 14 | Jacobian columns. They identify the number of remaining coordinates with |
| 15 | mathlib's presentation dimension; they make no geometric dimension assertion. |
| 16 | -/ |
| 17 | |
| 18 | open scoped Classical |
| 19 | |
| 20 | universe u v w t |
| 21 | |
| 22 | variable {ι : Type w} {σ : Type t} [Fintype ι] [Fintype σ] |
| 23 | |
| 24 | /-- The complement of the image of an injection has the expected finite size. -/ |
| 25 | theorem card_complement_range (s : σ → ι) (hs : Function.Injective s) : |
| 26 | Fintype.card {i : ι // i ∉ Set.range s} = Fintype.card ι - Fintype.card σ := by |
| 27 | have hcard : Fintype.card (Set.range s) = Fintype.card σ := |
| 28 | (Fintype.card_congr (Equiv.ofInjective s hs)).symm |
| 29 | simpa only [hcard] using Fintype.card_subtype_compl (fun i : ι => i ∈ Set.range s) |
| 30 | |
| 31 | /-- Free coordinates and selected coordinates together account for every |
| 32 | coordinate, including the empty-index cases. -/ |
| 33 | theorem card_complement_range_add (s : σ → ι) (hs : Function.Injective s) : |
| 34 | Fintype.card {i : ι // i ∉ Set.range s} + Fintype.card σ = Fintype.card ι := by |
| 35 | rw [card_complement_range s hs] |
| 36 | exact Nat.sub_add_cancel (Fintype.card_le_of_injective s hs) |
| 37 | |
| 38 | variable {R : Type u} {S : Type v} [CommRing R] [CommRing S] [Algebra R S] |
| 39 | |
| 40 | /-- For a pre-submersive presentation, the number of unselected variables is |
| 41 | exactly its mathlib presentation dimension. -/ |
| 42 | theorem card_free_variables_eq_dimension |
| 43 | (P : Algebra.PreSubmersivePresentation R S ι σ) : |
| 44 | Fintype.card {i : ι // i ∉ Set.range P.map} = P.dimension := by |
| 45 | rw [card_complement_range P.map P.map_inj] |
| 46 | simp only [Algebra.Presentation.dimension, Nat.card_eq_fintype_card] |
| 47 | |
| 48 | /-- The scalar coordinate space on the free variables has the same finite |
| 49 | dimension. This supplies the vector-space dimension for analytic chart work. -/ |
| 50 | theorem finrank_free_variables_eq_dimension (K : Type*) [DivisionRing K] |
| 51 | (P : Algebra.PreSubmersivePresentation R S ι σ) : |
| 52 | Module.finrank K ({i : ι // i ∉ Set.range P.map} → K) = P.dimension := by |
| 53 | rw [Module.finrank_pi, card_free_variables_eq_dimension P] |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.Foundations.Scheme.PresentationDimension.Algebraic |