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 Mathlib.AlgebraicGeometry.Noetherian |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Framed.MixedKoszulFunctor |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Framed.KoszulGermSupport |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Structure.ModuleStalk |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Regular.LocalNegativeCochainExactness |
| 6 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.ComplexLocalExactness |
| 7 | |
| 8 | /-! # Mixed Koszul Stalk Exactness -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Framed.MixedKoszulStalkExactness |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! A framed mixed Koszul complex with finitely many common zeros |
| 15 | is exact in negative degrees at an actual regular stalk of the matching |
| 16 | dimension. Both its local equations and its local module structure are |
| 17 | constructed from the original sheaves. -/ |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry IsLocalRing |
| 19 | universe u |
| 20 | |
| 21 | theorem framedMixedKoszul_stalk_exact_negative |
| 22 | {X : Scheme.{u}} [JacobsonSpace X] [IsLocallyNoetherian X] |
| 23 | (x : X) (M : X.Modules) (eM : M ≅ Line.Bundles.structureModule X) |
| 24 | (bs : List (LineBundleKoszulComplex.LineBundleSection X)) |
| 25 | (frames : ∀ b ∈ bs, Nonempty (b.1.sheaf ≅ Line.Bundles.structureModule X)) |
| 26 | (hfinite : (MixedKoszulGeometricSupport.mixedSectionZeroSet bs).Finite) |
| 27 | (ps : List (X.presheaf.stalk x)) (hlen : bs.length = ps.length) |
| 28 | (hreg : Regular.SequenceBasic.RingTheory.Sequence.IsRegular (X.presheaf.stalk x) ps) |
| 29 | (hgen : Regular.SequenceBasic.Ideal.ofList ps = maximalIdeal (X.presheaf.stalk x)) : |
| 30 | ∀ i : ℤ, i < 0 → |
| 31 | (((HilbertConstruction.Module.StalkExactness.moduleStalkFunctor x).mapHomologicalComplex (.up ℤ)).obj |
| 32 | (LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs)).ExactAt i := by |
| 33 | classical |
| 34 | let R := X.presheaf.stalk x |
| 35 | let F := HilbertConstruction.Module.StalkExactness.moduleStalkFunctor x |
| 36 | let φ : Γ(X, ⊤) →+* R := (X.presheaf.germ ⊤ x trivial).hom |
| 37 | let ρ : LineBundleKoszulComplex.LineBundleSection X → R := fun b => |
| 38 | if hb : b ∈ bs then φ (Frame.Coordinates.structureModuleEndValue X (b.2 ≫ (Classical.choice (frames b hb)).hom)) else 0 |
| 39 | have hρ : ∀ b ∈ bs, ∃ e : b.1.sheaf ≅ Line.Bundles.structureModule X, |
| 40 | φ (Frame.Coordinates.structureModuleEndValue X (b.2 ≫ e.hom)) = ρ b := by |
| 41 | intro b hb |
| 42 | exact ⟨Classical.choice (frames b hb), by simp only [ρ, dite_eq_left hb]⟩ |
| 43 | let V := F.obj M |
| 44 | let eV : V ≅ ModuleCat.of R R := F.mapIso eM ≪≫ Structure.ModuleStalk.structureModuleStalkIso x |
| 45 | have : Module.Finite R V := Module.Finite.equiv eV.symm.toLinearEquiv |
| 46 | have : Module.Free R V := Module.Free.of_equiv eV.symm.toLinearEquiv |
| 47 | let rs := bs.map ρ |
| 48 | let C := ScalarKoszul.KoszulComplex.scalarKoszulComplex V rs |
| 49 | have hff := ScalarKoszul.FiniteTerms.scalarKoszulComplex_finite_free V rs |
| 50 | have hlength : rs.length = ps.length := by simpa only [rs, List.length_map] using hlen |
| 51 | have hsupport := KoszulGermSupport.framedKoszul_germ_support_closedPoint x bs hfinite ρ hρ |
| 52 | have hexa : ∀ i : ℤ, i < 0 → C.ExactAt i := by |
| 53 | refine Regular.LocalNegativeCochainExactness.regularLocal_negative_cochain_exact C ps.length |
| 54 | (fun i => (hff i).1) (fun i => (hff i).2) ?_ ps rfl hreg hgen ?_ |
| 55 | · intro i hi |
| 56 | exact ScalarKoszul.KoszulComplex.scalarKoszulComplex_isZero_X V rs i (Or.inl (by simpa only [hlength] using hi)) |
| 57 | · intro B _ _ hnot |
| 58 | have hnotI : ¬ Regular.SequenceBasic.Ideal.ofList rs ≤ RingHom.ker (algebraMap R B) := by |
| 59 | intro hI |
| 60 | let P : PrimeSpectrum R := ⟨RingHom.ker (algebraMap R B), RingHom.ker_isPrime _⟩ |
| 61 | have hP : P ∈ PrimeSpectrum.zeroLocus (Regular.SequenceBasic.Ideal.ofList rs : Set R) := hI |
| 62 | have he : P = IsLocalRing.closedPoint R := hsupport hP |
| 63 | have heI : RingHom.ker (algebraMap R B) = maximalIdeal R := congrArg PrimeSpectrum.asIdeal he |
| 64 | exact hnot heI.symm.le |
| 65 | exact HilbertConstruction.Module.ComplexLocalExactness.cochain_acyclic_of_contractible _ |
| 66 | (ScalarKoszul.KoszulComplex.scalarKoszulComplex_field_contractible_off_ideal B V rs hnotI) |
| 67 | let e := MixedKoszulFunctor.framedMixedKoszulFunctorIso F φ (Structure.ModuleStalk.moduleStalkFunctor_globalScalar x) M bs ρ hρ |
| 68 | intro i hi |
| 69 | exact (exactAt_iff_of_quasiIsoAt e.hom i).mpr (hexa i hi) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Framed.MixedKoszulStalkExactness |