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.PadicHodge.GeometricComparison.IntrinsicIntegral.GenericFiberOne |
| 2 | import Mathlib.LinearAlgebra.Dimension.Localization |
| 3 | import Mathlib.RingTheory.TensorProduct.IsBaseChangeHom |
| 4 | import Mathlib.RingTheory.Localization.BaseChange |
| 5 | |
| 6 | /-! # De Rham Lattice -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual integral de Rham H-one embeds as a full finite free lattice in the original generic-fiber cohomology. -/ |
| 13 | |
| 14 | open scoped TensorProduct nonZeroDivisors |
| 15 | |
| 16 | variable {K : Type} [Field K] [NumberField K] |
| 17 | {q : ℕ} [Fact q.Prime] {jq : K →+* ℚ_[q]} (A : Geometry.AbelianH1Model K q jq) |
| 18 | |
| 19 | instance Geometry.AbelianH1Model.deRhamIntegerModule : Module ℤ_[q] A.DeRham := |
| 20 | Module.compHom _ (algebraMap ℤ_[q] ℚ_[q]) |
| 21 | |
| 22 | instance Geometry.AbelianH1Model.deRhamIntegerTower : IsScalarTower ℤ_[q] ℚ_[q] A.DeRham where |
| 23 | smul_assoc a b x := by |
| 24 | change ((a : ℚ_[q]) * b) • x = (a : ℚ_[q]) • (b • x) |
| 25 | exact mul_smul _ _ _ |
| 26 | |
| 27 | def Geometry.AbelianH1Model.integralDeRhamInclusion : AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.cohomology ℤ_[q] A.integral.scheme 1 →ₗ[ℤ_[q]] A.DeRham := |
| 28 | (A.integral_generic_deRham_hone.toLinearMap.restrictScalars ℤ_[q]).comp |
| 29 | (TensorProduct.mk ℤ_[q] ℚ_[q] (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.cohomology ℤ_[q] A.integral.scheme 1) 1) |
| 30 | |
| 31 | theorem Geometry.AbelianH1Model.integralDeRhamInclusion_isBaseChange : IsBaseChange ℚ_[q] A.integralDeRhamInclusion := |
| 32 | (TensorProduct.isBaseChange ℤ_[q] (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.cohomology ℤ_[q] A.integral.scheme 1) ℚ_[q]).comp |
| 33 | (IsBaseChange.ofEquiv A.integral_generic_deRham_hone) |
| 34 | |
| 35 | instance Geometry.AbelianH1Model.integralDeRhamInclusion_localized : IsLocalizedModule ℤ_[q]⁰ A.integralDeRhamInclusion := |
| 36 | (isLocalizedModule_iff_isBaseChange ℤ_[q]⁰ ℚ_[q] A.integralDeRhamInclusion).mpr |
| 37 | A.integralDeRhamInclusion_isBaseChange |
| 38 | |
| 39 | theorem Geometry.AbelianH1Model.integralDeRhamInclusion_injective : Function.Injective A.integralDeRhamInclusion := by |
| 40 | let := A.integral_deRham_hone_torsionFree |
| 41 | apply (IsLocalizedModule.injective_iff_isRegular ℤ_[q]⁰ A.integralDeRhamInclusion).mpr |
| 42 | intro s |
| 43 | exact IsSMulRegular.of_ne_zero (nonZeroDivisors.coe_ne_zero s) |
| 44 | |
| 45 | theorem Geometry.AbelianH1Model.integral_deRham_hone_finrank : |
| 46 | Module.finrank ℤ_[q] (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.cohomology ℤ_[q] A.integral.scheme 1) = |
| 47 | Module.finrank ℚ_[q] A.DeRham := by |
| 48 | rw [IsFractionRing.finrank_right_eq ℤ_[q] ℚ_[q] A.DeRham] |
| 49 | exact (IsLocalizedModule.finrank_eq ℤ_[q]⁰ A.integralDeRhamInclusion le_rfl).symm |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.NumberTheory.PadicHodge.GeometricComparison |