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.FieldCohomologyBound |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Spec.ModelVanishing |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Residue.CochainVanishing |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PoincareStalk.GeometricMinimalModel |
| 5 | |
| 6 | /-! # Model Cohomology Bound -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual dual-zero-stalk Poincare model has residue cohomology only through degree g. For a finite free model this bound survives every additive functor, and its degree-g cycles are a split finite free submodule. -/ |
| 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 v w |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | variable {K : Type u} [Field K] {g N : ℕ} {δ : Fin g → ℕ} |
| 20 | variable (A : PolarizationData.PolarizedAbelianWithFullLevel g δ N (Spec (.of K))) (D : Dual.Data.DualAbelianData A.abelian) |
| 21 | variable {P : Scheme.{u}} [P.IsSeparated] |
| 22 | variable {a : P ⟶ (D.abelian.scheme ⊗ A.abelian.scheme).left} {b : P ⟶ D.poincareZeroStalkScheme} |
| 23 | variable (H : IsPullback a b (pullback.fst D.abelian.scheme.hom A.abelian.scheme.hom) |
| 24 | D.poincareZeroStalkParameterMap) |
| 25 | variable {κ : Type u} [LinearOrder κ] [Finite κ] (U : κ → P.Opens) |
| 26 | variable (hU : iSup U = ⊤) (ha : ∀ i, IsAffineOpen (U i)) |
| 27 | variable (he : ∀ i, Nonempty ((Scheme.Modules.pullback (U i).ι).obj |
| 28 | (D.poincare.pullback a).sheaf ≅ Line.Bundles.structureModule (U i).toScheme)) |
| 29 | variable {C : CochainComplex (ModuleCat.{u} Γ(D.poincareZeroStalkScheme, ⊤)) ℕ} |
| 30 | variable (φ : C ⟶ Ordered.CoefficientCechComplex.orderedCoefficientCechComplex b.appTop.hom (D.poincare.pullback a).sheaf U) |
| 31 | variable (ht : ∀ (B : Type u) [AddCommGroup B] [Module Γ(D.poincareZeroStalkScheme, ⊤) B], |
| 32 | QuasiIso (HilbertConstruction.Module.TensorFunctor.ModuleTensorFunctor.map B φ)) |
| 33 | |
| 34 | include H hU ha he ht in |
| 35 | theorem PolarizationData.PolarizedAbelianWithFullLevel.poincareZeroStalk_model_residue_cohomology_vanish_above_dimension |
| 36 | (hN : 3 ≤ N) (hNk : (N : K) ≠ 0) (q : ℕ) (hq : g < q) : |
| 37 | IsZero ((((HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor Γ(D.poincareZeroStalkScheme, ⊤) |
| 38 | (IsLocalRing.ResidueField Γ(D.poincareZeroStalkScheme, ⊤))).mapHomologicalComplex (.up ℕ)).obj C).homology q) := by |
| 39 | cases q with |
| 40 | | zero => exact (Nat.not_lt_zero g hq).elim |
| 41 | | succ n => |
| 42 | let T := D.poincareZeroStalkScheme |
| 43 | let t := D.poincareZeroStalkParameterMap |
| 44 | let R := Γ(T, ⊤) |
| 45 | let B := IsLocalRing.ResidueField R |
| 46 | let j : Spec (.of B) ⟶ T := Affine.QuotientCoefficientMap.affineCoordinateMap (algebraMap R B) |
| 47 | let a' := pullback.fst b j |
| 48 | let b' := pullback.snd b j |
| 49 | let H' : IsPullback a' b' b j := IsPullback.of_hasPullback b j |
| 50 | let c : Spec (.of B) ⟶ Spec (.of K) := (j ≫ t) ≫ D.abelian.scheme.hom |
| 51 | let x : (Over.map c).obj (𝟙_ (Over (Spec (.of B)))) ⟶ D.abelian.scheme := |
| 52 | Over.homMk (j ≫ t) (by change _ = (𝟙 _) ≫ c; exact (Category.id_comp c).symm) |
| 53 | let HF : IsPullback (a' ≫ a) b' (pullback.fst D.abelian.scheme.hom A.abelian.scheme.hom) x.left := |
| 54 | H'.paste_horiz H |
| 55 | let κ : K →+* B := (Scheme.ΓSpecIso (.of B)).hom.hom.comp (Coefficient.ModulePresheaf.schemeCoefficientMap c) |
| 56 | have hNB : (N : B) ≠ 0 := by |
| 57 | intro hz |
| 58 | apply hNk |
| 59 | apply κ.injective |
| 60 | simpa only [map_natCast, map_zero] using hz |
| 61 | have hzero := A.poincareFieldFiber_cohomology_vanish_above_dimension D c x HF hN hNB (n + 1) hq |
| 62 | let L := D.poincare.pullback a |
| 63 | let e : (L.pullback a').sheaf ≅ (D.poincare.pullback (a' ≫ a)).sheaf := |
| 64 | (Scheme.Modules.pullbackComp a' a).app D.poincare.sheaf |
| 65 | let eH := (Zariski.Cohomology.ZariskiCohomology.zariskiFunctor (CategoryTheory.Limits.pullback b j) (n + 1)).mapIso e |
| 66 | have hi : Function.Injective eH.hom := (AddCommGrpCat.mono_iff_injective eH.hom).mp inferInstance |
| 67 | have hL : Subsingleton (Zariski.Cohomology.ZariskiCohomology.H (L.pullback a').sheaf (n + 1)) := |
| 68 | ⟨fun y z => hi (hzero.elim _ _)⟩ |
| 69 | have hAlg : (HilbertConstruction.Spec.CoefficientCechComparison.specBaseCoefficientMap j).toAlgebra = (inferInstance : Algebra R B) := by |
| 70 | rw [Affine.QuotientCoefficientMap.specBaseCoefficientMap_affineCoordinateMap] |
| 71 | exact toAlgebra_algebraMap |
| 72 | have hres := HilbertConstruction.Spec.ModelVanishing.spec_model_exactAt_of_cohomology_zero H' L U hU ha he φ ht n hL |
| 73 | have hexa : (((HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R B).mapHomologicalComplex |
| 74 | (.up ℕ)).obj C).ExactAt (n + 1) := by |
| 75 | erw [hAlg] at hres |
| 76 | exact hres |
| 77 | exact hexa.isZero_homology |
| 78 | |
| 79 | include H hU ha he ht in |
| 80 | theorem PolarizationData.PolarizedAbelianWithFullLevel.poincareZeroStalk_model_map_cohomology_vanish_above_dimension |
| 81 | (hN : 3 ≤ N) (hNk : (N : K) ≠ 0) |
| 82 | (hfin : ∀ q, Module.Finite Γ(D.poincareZeroStalkScheme, ⊤) (C.X q)) |
| 83 | (hfree : ∀ q, Module.Free Γ(D.poincareZeroStalkScheme, ⊤) (C.X q)) |
| 84 | {E : Type v} [Category.{w} E] [Abelian E] |
| 85 | (F : ModuleCat.{u} Γ(D.poincareZeroStalkScheme, ⊤) ⥤ E) [F.Additive] : |
| 86 | ∀ q, g < q → IsZero (((F.mapHomologicalComplex (.up ℕ)).obj C).homology q) := |
| 87 | Residue.CochainVanishing.LocalSectionLifting.finiteFreeCochain_map_vanish_above_residue_bound F C hfin hfree g |
| 88 | (A.poincareZeroStalk_model_residue_cohomology_vanish_above_dimension D H U hU ha he φ ht hN hNk) |
| 89 | |
| 90 | include H hU ha he ht in |
| 91 | theorem PolarizationData.PolarizedAbelianWithFullLevel.poincareZeroStalk_model_last_cycles_finite_free |
| 92 | (hN : 3 ≤ N) (hNk : (N : K) ≠ 0) |
| 93 | (hfin : ∀ q, Module.Finite Γ(D.poincareZeroStalkScheme, ⊤) (C.X q)) |
| 94 | (hfree : ∀ q, Module.Free Γ(D.poincareZeroStalkScheme, ⊤) (C.X q)) : |
| 95 | Module.Finite Γ(D.poincareZeroStalkScheme, ⊤) (C.d g (g + 1)).hom.ker ∧ |
| 96 | Module.Free Γ(D.poincareZeroStalkScheme, ⊤) (C.d g (g + 1)).hom.ker := by |
| 97 | have hres := A.poincareZeroStalk_model_residue_cohomology_vanish_above_dimension |
| 98 | D H U hU ha he φ ht hN hNk (g + 1) (Nat.lt_succ_self g) |
| 99 | obtain ⟨hf, hfr, _⟩ := |
| 100 | Residue.CochainVanishing.LocalSectionLifting.finiteFreeCochain_last_cycles_split_finite_free C hfin hfree g hres |
| 101 | exact ⟨hf, hfr⟩ |
| 102 | |
| 103 | end |
| 104 | |
| 105 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |