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.PoincareStalk.ResidueCycleSupport |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Spec.ModelVanishing |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.HomologySupport |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.ZeroCycles |
| 5 | |
| 6 | /-! # Homology Support -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Every homology module of a finite free model of the actual dual-zero-stalk Poincare family is supported at the maximal ideal. All residue degrees away from the dual zero are handled by the genuine field-fiber vanishing theorem. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open _root_.CategoryTheory.MonoidalCategory |
| 15 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 16 | universe u |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | variable {K : Type u} [Field K] {g : ℕ} {A : Abelian.Schemes.AbelianScheme g (Spec (.of K))} |
| 20 | variable (D : Dual.Data.DualAbelianData A) |
| 21 | variable {P : Scheme.{u}} [P.IsSeparated] |
| 22 | variable {a : P ⟶ (D.abelian.scheme ⊗ A.scheme).left} {b : P ⟶ D.poincareZeroStalkScheme} |
| 23 | variable (H : IsPullback a b (pullback.fst D.abelian.scheme.hom A.scheme.hom) D.poincareZeroStalkParameterMap) |
| 24 | variable {κ : Type u} [LinearOrder κ] [Finite κ] (U : κ → P.Opens) |
| 25 | variable (hU : iSup U = ⊤) (ha : ∀ i, IsAffineOpen (U i)) |
| 26 | variable (he : ∀ i, Nonempty ((Scheme.Modules.pullback (U i).ι).obj |
| 27 | (D.poincare.pullback a).sheaf ≅ Line.Bundles.structureModule (U i).toScheme)) |
| 28 | variable {C : CochainComplex (ModuleCat.{u} Γ(D.poincareZeroStalkScheme, ⊤)) ℕ} |
| 29 | variable (φ : C ⟶ Ordered.CoefficientCechComplex.orderedCoefficientCechComplex b.appTop.hom (D.poincare.pullback a).sheaf U) |
| 30 | variable (ht : ∀ (B : Type u) [AddCommGroup B] [Module Γ(D.poincareZeroStalkScheme, ⊤) B], |
| 31 | QuasiIso (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.map B φ)) |
| 32 | |
| 33 | include H hU ha he ht in |
| 34 | theorem Dual.Data.DualAbelianData.poincareZeroStalk_residue_model_acyclic_away_closedPoint |
| 35 | (v : PrimeSpectrum Γ(D.poincareZeroStalkScheme, ⊤)) |
| 36 | (hv : v ≠ IsLocalRing.closedPoint Γ(D.poincareZeroStalkScheme, ⊤)) : |
| 37 | (((HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor Γ(D.poincareZeroStalkScheme, ⊤) |
| 38 | v.asIdeal.ResidueField).mapHomologicalComplex (.up ℕ)).obj C).Acyclic := by |
| 39 | have : IsLocalRing Γ(Spec (D.abelian.scheme.left.presheaf.stalk |
| 40 | (η[D.abelian.scheme].left (IsLocalRing.closedPoint K))), ⊤) := |
| 41 | Dual.Data.DualAbelianData.poincareZeroStalkGlobalSections_isLocalRing D |
| 42 | let T := D.poincareZeroStalkScheme |
| 43 | let t := D.poincareZeroStalkParameterMap |
| 44 | let R := Γ(T, ⊤) |
| 45 | let B := v.asIdeal.ResidueField |
| 46 | let Cκ := ((HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R B).mapHomologicalComplex (.up ℕ)).obj C |
| 47 | intro q |
| 48 | cases q with |
| 49 | | zero => |
| 50 | have hk : Subsingleton (Cκ.d 0 1).hom.ker := |
| 51 | D.poincareZeroStalk_firstResidueCycles_vanish H U hU ha he φ ht v hv |
| 52 | have : Subsingleton (Cκ.d 0 1).hom.ker := hk |
| 53 | have hz : IsZero (Cκ.cycles 0) := |
| 54 | (Cochain.ZeroCycles.CochainZeroCycles.cyclesIso Cκ).isZero_iff.mpr (ModuleCat.isZero_of_subsingleton _) |
| 55 | exact (Cκ.exactAt_iff_isZero_homology 0).mpr ((CochainComplex.isoHomologyπ₀ Cκ).isZero_iff.mp hz) |
| 56 | | succ n => |
| 57 | let j : Spec (.of B) ⟶ T := Affine.QuotientCoefficientMap.affineCoordinateMap (algebraMap R B) |
| 58 | let a' := pullback.fst b j |
| 59 | let b' := pullback.snd b j |
| 60 | let H' : IsPullback a' b' b j := IsPullback.of_hasPullback b j |
| 61 | let c : Spec (.of B) ⟶ Spec (.of K) := (j ≫ t) ≫ D.abelian.scheme.hom |
| 62 | let x : (Over.map c).obj (𝟙_ (Over (Spec (.of B)))) ⟶ D.abelian.scheme := |
| 63 | Over.homMk (j ≫ t) (by change _ = (𝟙 _) ≫ c; exact (Category.id_comp c).symm) |
| 64 | have hz : η[D.abelian.scheme].left ≫ D.abelian.scheme.hom = 𝟙 (Spec (.of K)) := |
| 65 | η[D.abelian.scheme].w |
| 66 | have hx : x ≠ 1 := by |
| 67 | intro h |
| 68 | apply Affine.StalkCoefficientSupport.affine_stalk_primeResidue_ne_rational_zero D.abelian.scheme.hom η[D.abelian.scheme].left hz v hv |
| 69 | have hh := congrArg Over.Hom.left h |
| 70 | rw [Hom.one_def] at hh |
| 71 | change j ≫ t = ((𝟙 _) ≫ c) ≫ η[D.abelian.scheme].left at hh |
| 72 | exact hh.trans (congrArg (fun w : Spec (.of B) ⟶ Spec (.of K) => w ≫ η[D.abelian.scheme].left) |
| 73 | (Category.id_comp c)) |
| 74 | let HF : IsPullback (a' ≫ a) b' (pullback.fst D.abelian.scheme.hom A.scheme.hom) x.left := |
| 75 | H'.paste_horiz H |
| 76 | have hzero := D.poincareFieldFiber_cohomology_vanish c x HF hx (n + 1) |
| 77 | let L := D.poincare.pullback a |
| 78 | let e : (L.pullback a').sheaf ≅ (D.poincare.pullback (a' ≫ a)).sheaf := |
| 79 | (Scheme.Modules.pullbackComp a' a).app D.poincare.sheaf |
| 80 | let eH := (Zariski.Cohomology.ZariskiCohomology.zariskiFunctor (CategoryTheory.Limits.pullback b j) (n + 1)).mapIso e |
| 81 | have hi : Function.Injective eH.hom := (AddCommGrpCat.mono_iff_injective eH.hom).mp inferInstance |
| 82 | have hL : Subsingleton (Zariski.Cohomology.ZariskiCohomology.H (L.pullback a').sheaf (n + 1)) := |
| 83 | ⟨fun y z => hi (hzero.elim _ _)⟩ |
| 84 | have hAlg : (HilbertConstruction.Spec.CoefficientCechComparison.specBaseCoefficientMap j).toAlgebra = (inferInstance : Algebra R B) := by |
| 85 | rw [Affine.QuotientCoefficientMap.specBaseCoefficientMap_affineCoordinateMap] |
| 86 | exact toAlgebra_algebraMap |
| 87 | have hres := HilbertConstruction.Spec.ModelVanishing.spec_model_exactAt_of_cohomology_zero H' L U hU ha he φ ht n hL |
| 88 | erw [hAlg] at hres |
| 89 | exact hres |
| 90 | |
| 91 | include H hU ha he ht in |
| 92 | theorem Dual.Data.DualAbelianData.poincareZeroStalk_model_homology_support |
| 93 | (hfin : ∀ q, Module.Finite Γ(D.poincareZeroStalkScheme, ⊤) (C.X q)) |
| 94 | (hfree : ∀ q, Module.Free Γ(D.poincareZeroStalkScheme, ⊤) (C.X q)) (q : ℕ) : |
| 95 | Module.support Γ(D.poincareZeroStalkScheme, ⊤) (C.homology q) ⊆ |
| 96 | PrimeSpectrum.zeroLocus (IsLocalRing.maximalIdeal Γ(D.poincareZeroStalkScheme, ⊤) : Set Γ(D.poincareZeroStalkScheme, ⊤)) := by |
| 97 | apply Cochain.HomologySupport.finiteFreeCochain_homology_support_of_residue_exactAt C hfin hfree _ q |
| 98 | intro v hv |
| 99 | have hne : v ≠ IsLocalRing.closedPoint Γ(D.poincareZeroStalkScheme, ⊤) := by |
| 100 | intro h |
| 101 | apply hv |
| 102 | subst v |
| 103 | exact le_rfl |
| 104 | exact (Base.ChangeTensorExactness.baseChange_exactAt_iff_tensor C q).mp |
| 105 | (D.poincareZeroStalk_residue_model_acyclic_away_closedPoint H U hU ha he φ ht v hne q) |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |