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.Framed.MixedKoszulStalkExactness |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.LineBundleCommonFrames |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.StalkOpenRestriction |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Rational.PointStalkRegularParameters |
| 5 | import Mathlib.AlgebraicGeometry.AlgClosed.Basic |
| 6 | |
| 7 | /-! # Mixed Koszul Sheaf Exactness -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.MixedKoszulSheafExactness |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! On a smooth g-dimensional scheme over an algebraically closed |
| 14 | field, g line-bundle sections with finite common zero set give a mixed |
| 15 | Koszul complex exact in every negative degree as actual module sheaves. |
| 16 | At the common zeros regular parameters supply local acyclicity; away |
| 17 | from them a section supplies an actual contraction. -/ |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace IsLocalRing |
| 19 | universe u |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | set_option backward.isDefEq.respectTransparency.types false |
| 22 | |
| 23 | local instance smoothDimensionSourceLocal (g : ℕ) : |
| 24 | IsZariskiLocalAtSource (@SmoothOfRelativeDimension g : MorphismProperty Scheme.{u}) := |
| 25 | HasRingHomProperty.instIsZariskiLocalAtSource |
| 26 | (Q := RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension g)) |
| 27 | |
| 28 | local instance smoothMixedSheafPullbackAdditive {X Y : Scheme.{u}} (f : Y ⟶ X) : |
| 29 | (Scheme.Modules.pullback f).Additive := by |
| 30 | have := preservesBinaryBiproducts_of_preservesBinaryCoproducts (Scheme.Modules.pullback f) |
| 31 | exact Functor.additive_of_preservesBinaryBiproducts _ |
| 32 | |
| 33 | theorem smoothMixedKoszul_sheaf_exact_negative |
| 34 | {K : Type u} [Field K] [IsAlgClosed K] {X : Scheme.{u}} |
| 35 | (p : X ⟶ Spec (.of K)) (g : ℕ) [SmoothOfRelativeDimension g p] |
| 36 | (M : Line.Bundles.LineBundle X) (bs : List (LineBundleKoszulComplex.LineBundleSection X)) (hlen : bs.length = g) |
| 37 | (hfinite : (MixedKoszulGeometricSupport.mixedSectionZeroSet bs).Finite) : |
| 38 | ∀ i : ℤ, i < 0 → (LineBundleKoszulComplex.mixedLineBundleKoszulComplex M.sheaf bs).ExactAt i := by |
| 39 | classical |
| 40 | have : Smooth p := SmoothOfRelativeDimension.smooth g p |
| 41 | let C := LineBundleKoszulComplex.mixedLineBundleKoszulComplex M.sheaf bs |
| 42 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian p |
| 43 | let : JacobsonSpace X := LocallyOfFiniteType.jacobsonSpace p |
| 44 | intro i hi |
| 45 | apply (Module.StalkOpenRestriction.moduleCochain_exactAt_iff_stalk C i).mpr |
| 46 | intro x |
| 47 | by_cases hx : x ∈ MixedKoszulGeometricSupport.mixedSectionZeroSet bs |
| 48 | · obtain ⟨U, hxU, hU, ⟨eM⟩, frames⟩ := HilbertConstruction.Finite.LineBundleCommonFrames.mixedKoszul_common_affine_frame M bs x |
| 49 | let y : U.toScheme := ⟨x, hxU⟩ |
| 50 | let q := U.ι ≫ p |
| 51 | let cs := bs.map (MixedKoszulPullbackComplex.pullbackLineBundleSection U.ι) |
| 52 | let : SmoothOfRelativeDimension g q := |
| 53 | IsZariskiLocalAtSource.comp (P := @SmoothOfRelativeDimension g) inferInstance U.ι |
| 54 | have : Smooth q := SmoothOfRelativeDimension.smooth g q |
| 55 | let : IsLocallyNoetherian U.toScheme := LocallyOfFiniteType.isLocallyNoetherian q |
| 56 | let : JacobsonSpace U.toScheme := LocallyOfFiniteType.jacobsonSpace q |
| 57 | have hfiniteU : (MixedKoszulGeometricSupport.mixedSectionZeroSet cs).Finite := by |
| 58 | rw [MixedKoszulPullbackComplex.mixedSectionZeroSet_pullback] |
| 59 | exact Set.Finite.preimage (fun a _ b _ h => U.ι.isEmbedding.injective h) hfinite |
| 60 | have hyzero : y ∈ MixedKoszulGeometricSupport.mixedSectionZeroSet cs := by |
| 61 | rw [MixedKoszulPullbackComplex.mixedSectionZeroSet_pullback] |
| 62 | exact hx |
| 63 | have hyclosed : IsClosed ({y} : Set U.toScheme) := |
| 64 | MixedKoszulGeometricSupport.finiteClosedSet_subset_closedPoints (MixedKoszulGeometricSupport.mixedSectionZeroSet cs) |
| 65 | (MixedKoszulGeometricSupport.mixedSectionZeroSet_isClosed cs) hfiniteU hyzero |
| 66 | let s := pointOfClosedPoint q y hyclosed |
| 67 | have hs : s ≫ q = 𝟙 _ := pointOfClosedPoint_comp q y hyclosed |
| 68 | have hparameters : ∃ ps : List (U.toScheme.presheaf.stalk y), |
| 69 | Regular.SequenceBasic.RingTheory.Sequence.IsRegular (U.toScheme.presheaf.stalk y) ps ∧ |
| 70 | Regular.SequenceBasic.Ideal.ofList ps = maximalIdeal (U.toScheme.presheaf.stalk y) ∧ ps.length = g := by |
| 71 | have hpoint : s (IsLocalRing.closedPoint K) = y := pointOfClosedPoint_apply q y hyclosed _ |
| 72 | exact (congrArg (fun z : U.toScheme => ∃ ps : List (U.toScheme.presheaf.stalk z), |
| 73 | Regular.SequenceBasic.RingTheory.Sequence.IsRegular (U.toScheme.presheaf.stalk z) ps ∧ |
| 74 | Regular.SequenceBasic.Ideal.ofList ps = maximalIdeal (U.toScheme.presheaf.stalk z) ∧ ps.length = g) |
| 75 | hpoint).mp (Rational.PointStalkRegularParameters.rationalPoint_stalk_regular_parameters q g s hs) |
| 76 | obtain ⟨ps, hreg, hgen, hps⟩ := hparameters |
| 77 | have hlength : cs.length = ps.length := by simp only [cs, List.length_map, hlen, hps] |
| 78 | have hexa := Framed.MixedKoszulStalkExactness.framedMixedKoszul_stalk_exact_negative y (M.pullback U.ι).sheaf eM |
| 79 | cs frames hfiniteU ps hlength hreg hgen i hi |
| 80 | let F := Module.StalkExactness.moduleStalkFunctor y |
| 81 | let e := (F.mapHomologicalComplex (.up ℤ)).mapIso (MixedKoszulPullbackComplex.mixedKoszulPullbackIso U.ι M.sheaf bs) |
| 82 | have hlocal : ((F.mapHomologicalComplex (.up ℤ)).obj |
| 83 | (((Scheme.Modules.pullback U.ι).mapHomologicalComplex (.up ℤ)).obj C)).ExactAt i := |
| 84 | (exactAt_iff_of_quasiIsoAt e.hom i).mpr hexa |
| 85 | exact (Module.StalkOpenRestriction.moduleCochain_pullback_stalk_exactAt_iff U.ι C y i).mp hlocal |
| 86 | · obtain ⟨b, hb, hxb⟩ : ∃ b ∈ bs, x ∈ Ample.LineBundles.sectionNonvanishing b.2 := by |
| 87 | by_contra hn |
| 88 | apply hx |
| 89 | change ∀ b ∈ bs, x ∉ Ample.LineBundles.sectionNonvanishing b.2 |
| 90 | intro b hb hxb |
| 91 | exact hn ⟨b, hb, hxb⟩ |
| 92 | let U := Ample.LineBundles.sectionNonvanishing b.2 |
| 93 | let y : U.toScheme := ⟨x, hxb⟩ |
| 94 | have hframe : IsIso ((Scheme.Modules.pullback U.ι).map b.2) := |
| 95 | (Section.Nonvanishing.isIso_pullbackSection_iff U.ι b.2).mp inferInstance |
| 96 | have hcontract := LineBundleKoszulComplex.mixedLineBundleKoszulComplex_pullback_contractible M.sheaf bs U.ι ⟨b, hb, hframe⟩ |
| 97 | have hacy := Module.ComplexLocalExactness.cochain_acyclic_of_contractible _ hcontract |
| 98 | have hlocal : (((Module.StalkExactness.moduleStalkFunctor y).mapHomologicalComplex (.up ℤ)).obj |
| 99 | (((Scheme.Modules.pullback U.ι).mapHomologicalComplex (.up ℤ)).obj C)).ExactAt i := |
| 100 | ShortComplex.Exact.map (hacy i) (Module.StalkExactness.moduleStalkFunctor y) |
| 101 | exact (Module.StalkOpenRestriction.moduleCochain_pullback_stalk_exactAt_iff U.ι C y i).mp hlocal |
| 102 | |
| 103 | end |
| 104 | |
| 105 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.MixedKoszulSheafExactness |