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.IntegralComparison.SmoothProper.FrobeniusCoherence |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.CechFiniteness |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Module.TotalFiniteness |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.ScalarRestriction |
| 5 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRingsExact |
| 6 | |
| 7 | /-! # Frobenius Total -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SmoothProper.FrobeniusTotal |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Finite cohomology of the actual affine Čech total complex of the Frobenius de Rham modules. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (k : Type u) [Field k] [Fintype k] |
| 20 | (X : Over (Spec (CommRingCat.of k))) [IsProper X.hom] [Smooth X.hom] |
| 21 | |
| 22 | def bicomplex : HomologicalComplex₂ (ModuleCat.{u} Γ(Spec (CommRingCat.of k), ⊤)) (.up ℕ) (.up ℕ) := |
| 23 | ((AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseCechComplexFunctor X.hom (FrobeniusCharts.opens k X)).mapHomologicalComplex |
| 24 | (ComplexShape.up ℕ)).obj (Frobenius.DeRhamGlobal.complex k X) |
| 25 | |
| 26 | def total : CochainComplex (ModuleCat.{u} Γ(Spec (CommRingCat.of k), ⊤)) ℕ := |
| 27 | (bicomplex k X).total (.up ℕ) |
| 28 | |
| 29 | theorem row_finite (hprojective : Projectivity.Construction.ProjectiveOver k X.hom) (n q : ℕ) : |
| 30 | Module.Finite Γ(Spec (CommRingCat.of k), ⊤) (((bicomplex k X).X n).homology q) := by |
| 31 | let : (FrobeniusCoherence.term k X n).IsQuasicoherent := |
| 32 | FrobeniusCoherence.quasicoherent k X n |
| 33 | let : (FrobeniusCoherence.term k X n).IsFiniteType := |
| 34 | FrobeniusCoherence.finiteType k X n |
| 35 | exact Projective.CechFiniteness.finite k X.hom hprojective |
| 36 | (FrobeniusCoherence.term k X n) (FrobeniusCharts.opens k X) |
| 37 | (IsOpenCover.mk (FrobeniusCharts.cover k X)) |
| 38 | (FrobeniusCharts.affine k X) q |
| 39 | |
| 40 | theorem finite (hprojective : Projectivity.Construction.ProjectiveOver k X.hom) (n : ℕ) : |
| 41 | Module.Finite Γ(Spec (CommRingCat.of k), ⊤) ((FrobeniusTotal.total k X).homology n) := by |
| 42 | let : IsNoetherianRing Γ(Spec (CommRingCat.of k), ⊤) := isNoetherianRing_of_ringEquiv k |
| 43 | (Scheme.ΓSpecIso (CommRingCat.of k)).symm.commRingCatIsoToRingEquiv |
| 44 | exact IntegralComparison.Module.TotalFiniteness.finite (bicomplex k X) n (fun q p _ => row_finite k X hprojective q p) |
| 45 | |
| 46 | def coefficientFunctor : ModuleCat.{u} Γ(Spec (CommRingCat.of k), ⊤) ⥤ ModuleCat.{u} k := |
| 47 | ModuleCat.restrictScalars (Scheme.ΓSpecIso (CommRingCat.of k)).inv.hom |
| 48 | |
| 49 | instance coefficient_additive : (coefficientFunctor k).Additive := by |
| 50 | dsimp only [coefficientFunctor] |
| 51 | infer_instance |
| 52 | |
| 53 | instance coefficient_preservesFiniteLimits : PreservesFiniteLimits (coefficientFunctor k) where |
| 54 | preservesFiniteLimits T _ _ := by |
| 55 | dsimp only [coefficientFunctor] |
| 56 | infer_instance |
| 57 | |
| 58 | instance coefficient_preservesFiniteColimits : PreservesFiniteColimits (coefficientFunctor k) where |
| 59 | preservesFiniteColimits T _ _ := by |
| 60 | dsimp only [coefficientFunctor] |
| 61 | infer_instance |
| 62 | |
| 63 | instance coefficient_preservesHomology : (coefficientFunctor k).PreservesHomology := by infer_instance |
| 64 | |
| 65 | def coefficientTotal : CochainComplex (ModuleCat.{u} k) ℕ := |
| 66 | ((coefficientFunctor k).mapHomologicalComplex (ComplexShape.up ℕ)).obj (FrobeniusTotal.total k X) |
| 67 | |
| 68 | def coefficientHomologyIso (n : ℕ) : |
| 69 | (coefficientTotal k X).homology n ≅ (coefficientFunctor k).obj ((FrobeniusTotal.total k X).homology n) := |
| 70 | ((FrobeniusTotal.total k X).sc n).mapHomologyIso (coefficientFunctor k) |
| 71 | |
| 72 | theorem coefficient_finite (hprojective : Projectivity.Construction.ProjectiveOver k X.hom) (n : ℕ) : |
| 73 | Module.Finite k ((coefficientTotal k X).homology n) := by |
| 74 | let : Module.Finite Γ(Spec (CommRingCat.of k), ⊤) ((FrobeniusTotal.total k X).homology n) := finite k X hprojective n |
| 75 | have hf : (Scheme.ΓSpecIso (CommRingCat.of k)).inv.hom.Finite := |
| 76 | RingHom.Finite.of_surjective _ |
| 77 | (Scheme.ΓSpecIso (CommRingCat.of k)).symm.commRingCatIsoToRingEquiv.surjective |
| 78 | let : Module.Finite k ((coefficientFunctor k).obj ((FrobeniusTotal.total k X).homology n)) := |
| 79 | IntegralComparison.Finite.ScalarRestriction.finite _ hf ((FrobeniusTotal.total k X).homology n) |
| 80 | exact Module.Finite.equiv (coefficientHomologyIso k X n).symm.toLinearEquiv |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SmoothProper.FrobeniusTotal |