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.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Poincare.AffineStalkParameter |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PoincareStalk.PullbackCohomology |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Spec.ModelLocalizationLinearity |
| 4 | |
| 5 | /-! # Affine Localized Model -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Poincare.AffineLocalizedModel.PolarizedAbelianWithLevel |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The localization of an affine-neighborhood Poincare cohomology model at the actual dual zero has cohomology concentrated in degree g, equal there to one residue module. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | open _root_.CategoryTheory.MonoidalCategory |
| 14 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 15 | universe u |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | private def changeBaseAlgebraLinearEquiv |
| 20 | {R O : Type u} [CommRing R] [CommRing O] |
| 21 | (a₁ a₂ : Algebra R O) (h : a₁ = a₂) |
| 22 | (C : CochainComplex (ModuleCat.{u} R) ℕ) (Q : ModuleCat.{u} O) (q : ℕ) |
| 23 | (e : let : Algebra R O := a₁; |
| 24 | ((((HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R O).mapHomologicalComplex (.up ℕ)).obj C).homology q) ≃ₗ[O] Q) : |
| 25 | let : Algebra R O := a₂; |
| 26 | ((((HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R O).mapHomologicalComplex (.up ℕ)).obj C).homology q) ≃ₗ[O] Q := by |
| 27 | cases h |
| 28 | exact e |
| 29 | |
| 30 | theorem _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PolarizationData.PolarizedAbelianWithFullLevel.poincareAffine_model_stalk_cohomology_residue |
| 31 | {K : Type u} [Field K] {g N : ℕ} {δ : Fin g → ℕ} |
| 32 | (A : PolarizationData.PolarizedAbelianWithFullLevel g δ N (Spec (.of K))) (D : Dual.Data.DualAbelianData A.abelian) |
| 33 | (hg : 0 < g) (hN : 3 ≤ N) (hNk : (N : K) ≠ 0) |
| 34 | {T : Scheme.{u}} [IsAffine T] (t : T ⟶ D.abelian.scheme.left) [IsOpenImmersion t] |
| 35 | (hx : η[D.abelian.scheme].left (IsLocalRing.closedPoint K) ∈ Set.range t) |
| 36 | {P : Scheme.{u}} [P.IsSeparated] |
| 37 | {a : P ⟶ (D.abelian.scheme ⊗ A.abelian.scheme).left} {b : P ⟶ T} |
| 38 | (H : IsPullback a b (pullback.fst D.abelian.scheme.hom A.abelian.scheme.hom) t) |
| 39 | {κ : Type u} [LinearOrder κ] [Finite κ] (U : κ → P.Opens) |
| 40 | (hU : iSup U = ⊤) (ha : ∀ i, IsAffineOpen (U i)) |
| 41 | (he : ∀ i, Nonempty ((Scheme.Modules.pullback (U i).ι).obj |
| 42 | (D.poincare.pullback a).sheaf ≅ Line.Bundles.structureModule (U i).toScheme)) |
| 43 | {C : CochainComplex (ModuleCat.{u} Γ(T, ⊤)) ℕ} |
| 44 | (φ : C ⟶ Ordered.CoefficientCechComplex.orderedCoefficientCechComplex b.appTop.hom (D.poincare.pullback a).sheaf U) |
| 45 | (ht : ∀ (B : Type u) [AddCommGroup B] [Module Γ(T, ⊤) B], QuasiIso (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.map B φ)) : |
| 46 | let O := D.abelian.scheme.left.presheaf.stalk (η[D.abelian.scheme].left (IsLocalRing.closedPoint K)); |
| 47 | let : IsLocalRing O := D.abelian.scheme.left.toLocallyRingedSpace.isLocalRing |
| 48 | (η[D.abelian.scheme].left (IsLocalRing.closedPoint K)); |
| 49 | let : Algebra Γ(T, ⊤) O := D.poincareAffineStalkAlgebra t hx; |
| 50 | let CO := ((HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor Γ(T, ⊤) O).mapHomologicalComplex (.up ℕ)).obj C; |
| 51 | (∀ q : ℕ, q ≠ g → IsZero (CO.homology q)) ∧ |
| 52 | Nonempty (CO.homology g ≅ ModuleCat.of O (IsLocalRing.ResidueField O)) := by |
| 53 | let O := D.abelian.scheme.left.presheaf.stalk (η[D.abelian.scheme].left (IsLocalRing.closedPoint K)) |
| 54 | let : IsLocalRing O := D.abelian.scheme.left.toLocallyRingedSpace.isLocalRing |
| 55 | (η[D.abelian.scheme].left (IsLocalRing.closedPoint K)) |
| 56 | let R := Γ(T, ⊤) |
| 57 | let : Algebra R O := D.poincareAffineStalkAlgebra t hx |
| 58 | let m := D.poincareAffineParameterIdeal t |
| 59 | let : m.IsMaximal := D.poincareAffineParameterIdeal_isMaximal_of_zero_mem t hx |
| 60 | let : IsLocalization m.primeCompl O := D.poincareAffineStalk_isLocalization t hx |
| 61 | let CO := ((HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R O).mapHomologicalComplex (.up ℕ)).obj C |
| 62 | let j := D.poincareAffineStalkParameterMap t hx |
| 63 | let a' := pullback.fst b j |
| 64 | let b' := pullback.snd b j |
| 65 | let H' : IsPullback a' b' b j := IsPullback.of_hasPullback b j |
| 66 | have HF : IsPullback (a' ≫ a) b' (pullback.fst D.abelian.scheme.hom A.abelian.scheme.hom) |
| 67 | D.poincareZeroStalkParameterMap := by |
| 68 | have h := H'.paste_horiz H |
| 69 | rwa [D.poincareAffineStalkParameterMap_fac t hx] at h |
| 70 | let L := D.poincare.pullback a |
| 71 | let c := Coefficient.ModulePresheaf.schemeCoefficientMap b' |
| 72 | let eL : (L.pullback a').sheaf ≅ (D.poincare.pullback (a' ≫ a)).sheaf := |
| 73 | (Scheme.Modules.pullbackComp a' a).app D.poincare.sheaf |
| 74 | have hcoef : HilbertConstruction.Spec.CoefficientCechComparison.specBaseCoefficientMap j = algebraMap R O := |
| 75 | Affine.QuotientCoefficientMap.specBaseCoefficientMap_affineCoordinateMap (algebraMap R O) |
| 76 | have hAlg : (HilbertConstruction.Spec.CoefficientCechComparison.specBaseCoefficientMap j).toAlgebra = (inferInstance : Algebra R O) := by |
| 77 | rw [hcoef] |
| 78 | exact @toAlgebra_algebraMap R O _ _ (D.poincareAffineStalkAlgebra t hx) |
| 79 | have hloc : let : Algebra R O := (HilbertConstruction.Spec.CoefficientCechComparison.specBaseCoefficientMap j).toAlgebra; IsLocalization m.primeCompl O := by |
| 80 | dsimp only |
| 81 | erw [hAlg] |
| 82 | infer_instance |
| 83 | let E (q : ℕ) : CO.homology q ≅ |
| 84 | ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor c q).obj (D.poincare.pullback (a' ≫ a)).sheaf) := by |
| 85 | let e : CO.homology q ≃ₗ[O] |
| 86 | ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor c q).obj (L.pullback a').sheaf) := by |
| 87 | have h := HilbertConstruction.Spec.ModelLocalizationLinearity.specModelCohomologyLinearEquivOfLocalization H' L U hU ha he φ ht m.primeCompl hloc q |
| 88 | exact changeBaseAlgebraLinearEquiv (HilbertConstruction.Spec.CoefficientCechComparison.specBaseCoefficientMap j).toAlgebra |
| 89 | (inferInstance : Algebra R O) hAlg C |
| 90 | ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor c q).obj (L.pullback a').sheaf) q h |
| 91 | exact e.toModuleIso ≪≫ (Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor c q).mapIso eL |
| 92 | obtain ⟨hvan, ⟨etop⟩⟩ := A.poincareZeroStalk_pullback_structuralCohomology_residue D hg hN hNk HF |
| 93 | constructor |
| 94 | · intro q hq |
| 95 | exact (hvan q hq).of_iso (E q) |
| 96 | · exact ⟨E g ≪≫ etop⟩ |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Poincare.AffineLocalizedModel.PolarizedAbelianWithLevel |