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.NumberTheory.ArithmeticGroups.Lattices.MatrixFlatExtension |
| 2 | |
| 3 | /-! # Rational Subspace Density -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.RationalSubspaceDensity.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Real scalar spans of rational subspaces lie in their ordinary |
| 10 | topological closure. This supplies rational approximation inside a |
| 11 | linear system defined over a subfield of the reals. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | open Set |
| 15 | |
| 16 | def rationalClosureRealSubmodule |
| 17 | {E : Type*} [AddCommGroup E] [Module ℝ E] [Module ℚ E] [IsScalarTower ℚ ℝ E] [TopologicalSpace E] |
| 18 | [IsTopologicalAddGroup E] [ContinuousSMul ℝ E] [ContinuousConstSMul ℚ E] |
| 19 | (W : Submodule ℚ E) : Submodule ℝ E where |
| 20 | carrier := closure (W : Set E) |
| 21 | zero_mem' := subset_closure W.zero_mem |
| 22 | add_mem' hx hy := W.topologicalClosure.add_mem hx hy |
| 23 | smul_mem' c x hx := by |
| 24 | have hc : IsClosed {r : ℝ | r • x ∈ closure (W : Set E)} := |
| 25 | isClosed_closure.preimage (continuous_id.smul continuous_const) |
| 26 | apply hc.closure_subset_iff.mpr ?_ (Rat.denseRange_cast c) |
| 27 | rintro _ ⟨q, rfl⟩ |
| 28 | change (q : ℝ) • x ∈ W.topologicalClosure |
| 29 | rw [Rat.cast_smul_eq_qsmul] |
| 30 | exact W.topologicalClosure.smul_mem q hx |
| 31 | |
| 32 | theorem real_span_subset_rational_closure |
| 33 | {E : Type*} [AddCommGroup E] [Module ℝ E] [Module ℚ E] [IsScalarTower ℚ ℝ E] [TopologicalSpace E] |
| 34 | [IsTopologicalAddGroup E] [ContinuousSMul ℝ E] [ContinuousConstSMul ℚ E] (W : Submodule ℚ E) : |
| 35 | (Submodule.span ℝ (W : Set E) : Set E) ⊆ closure (W : Set E) := by |
| 36 | exact (Submodule.span_le.mpr (show (W : Set E) ⊆ rationalClosureRealSubmodule W from subset_closure)) |
| 37 | |
| 38 | def matrixCoefficientRationalMap {k : Type} [Field k] [CharZero k] {n : ℕ} |
| 39 | (v : k →+* ℝ) : Matrix (Fin n) (Fin n) k →ₗ[ℚ] Matrix (Fin n) (Fin n) ℝ where |
| 40 | toFun Q := Q.map v |
| 41 | map_add' Q R := by ext i j; exact map_add v _ _ |
| 42 | map_smul' c Q := by |
| 43 | ext i j |
| 44 | change v (c • Q i j) = c • v (Q i j) |
| 45 | simpa only [Algebra.smul_def] using map_rat_smul v c (Q i j) |
| 46 | |
| 47 | theorem matrixSubspaceExtension_subset_closure |
| 48 | {k : Type} [Field k] [CharZero k] [Algebra k ℝ] {n : ℕ} |
| 49 | (W : Submodule k (Matrix (Fin n) (Fin n) k)) : |
| 50 | (MatrixFlatExtension.Construction.matrixSubspaceExtension (K := ℝ) W : Set (Matrix (Fin n) (Fin n) ℝ)) ⊆ |
| 51 | closure ((fun Q : Matrix (Fin n) (Fin n) k => Q.map (algebraMap k ℝ)) '' W) := by |
| 52 | let V := (W.restrictScalars ℚ).map (matrixCoefficientRationalMap (algebraMap k ℝ)) |
| 53 | have hV : (V : Set (Matrix (Fin n) (Fin n) ℝ)) = |
| 54 | (fun Q : Matrix (Fin n) (Fin n) k => Q.map (algebraMap k ℝ)) '' W := rfl |
| 55 | rw [MatrixFlatExtension.Construction.matrixSubspaceExtension_eq_span, ← hV] |
| 56 | exact real_span_subset_rational_closure V |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.NumberTheory.ArithmeticGroups.Lattices.RationalSubspaceDensity.Construction |