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.LineBundleKoszulComplex |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.NonvanishingBaseChange |
| 3 | import Mathlib.AlgebraicGeometry.Stalk |
| 4 | import Mathlib.Topology.JacobsonSpace |
| 5 | |
| 6 | /-! # Mixed Koszul Geometric Support -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MixedKoszulGeometricSupport |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A mixed Koszul complex contracts at every field point away from |
| 13 | its common zero set. If that set is finite on a Jacobson scheme, its |
| 14 | pullback to a local spectrum is supported only at the closed point. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | universe u |
| 17 | |
| 18 | def mixedSectionZeroSet {X : Scheme.{u}} (bs : List (LineBundleKoszulComplex.LineBundleSection X)) : Set X := |
| 19 | {x | ∀ b ∈ bs, x ∉ Ample.LineBundles.sectionNonvanishing b.2} |
| 20 | |
| 21 | theorem mixedSectionZeroSet_isClosed {X : Scheme.{u}} (bs : List (LineBundleKoszulComplex.LineBundleSection X)) : |
| 22 | IsClosed (mixedSectionZeroSet bs) := by |
| 23 | have he : mixedSectionZeroSet bs = ⋂ b ∈ bs, (Ample.LineBundles.sectionNonvanishing b.2 : Set X)ᶜ := by |
| 24 | ext x |
| 25 | simp only [mixedSectionZeroSet, Set.mem_ofPred_eq, Set.mem_iInter, Set.mem_compl_iff, SetLike.mem_coe] |
| 26 | rw [he] |
| 27 | exact isClosed_iInter (fun b => isClosed_iInter (fun _ => (Ample.LineBundles.sectionNonvanishing b.2).isOpen.isClosed_compl)) |
| 28 | |
| 29 | local instance mixedSupportPullbackAdditive {X Y : Scheme.{u}} (f : Y ⟶ X) : |
| 30 | (Scheme.Modules.pullback f).Additive := by |
| 31 | have := preservesBinaryBiproducts_of_preservesBinaryCoproducts (Scheme.Modules.pullback f) |
| 32 | exact Functor.additive_of_preservesBinaryBiproducts _ |
| 33 | |
| 34 | theorem mixedKoszul_field_pullback_contractible |
| 35 | {K : Type u} [Field K] {X : Scheme.{u}} |
| 36 | (M : X.Modules) (bs : List (LineBundleKoszulComplex.LineBundleSection X)) (q : Spec (.of K) ⟶ X) |
| 37 | (hq : q (IsLocalRing.closedPoint K) ∉ mixedSectionZeroSet bs) : |
| 38 | Nonempty (Homotopy (𝟙 (((Scheme.Modules.pullback q).mapHomologicalComplex (.up ℤ)).obj |
| 39 | (LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs))) 0) := by |
| 40 | apply LineBundleKoszulComplex.mixedLineBundleKoszulComplex_pullback_contractible M bs q |
| 41 | by_contra h |
| 42 | apply hq |
| 43 | intro b hb hnonvanishing |
| 44 | have hp : IsIso (Ample.LineBundles.pullbackSection q b.2) := by |
| 45 | apply (Section.Frames.isIso_iff_sectionNonvanishing_eq_top _).mpr |
| 46 | rw [LineBundle.NonvanishingBaseChange.sectionNonvanishing_lineBundle_baseChange q b.1 b.2] |
| 47 | apply top_unique |
| 48 | intro x _ |
| 49 | change q x ∈ Ample.LineBundles.sectionNonvanishing b.2 |
| 50 | have he : x = IsLocalRing.closedPoint K := Subsingleton.elim _ _ |
| 51 | exact he.symm ▸ hnonvanishing |
| 52 | exact h ⟨b, hb, (Section.Nonvanishing.isIso_pullbackSection_iff q b.2).mp hp⟩ |
| 53 | |
| 54 | theorem finiteClosedSet_subset_closedPoints |
| 55 | {T : Type u} [TopologicalSpace T] [JacobsonSpace T] |
| 56 | (C : Set T) (hC : IsClosed C) (hfinite : C.Finite) : C ⊆ closedPoints T := by |
| 57 | let : Finite C := hfinite.to_subtype |
| 58 | let : JacobsonSpace C := JacobsonSpace.of_isClosedEmbedding hC.isClosedEmbedding_subtypeVal |
| 59 | let : DiscreteTopology C := inferInstance |
| 60 | intro x hx |
| 61 | have h := hC.isClosedEmbedding_subtypeVal.isClosedMap |
| 62 | ({⟨x, hx⟩} : Set C) isClosed_singleton |
| 63 | change IsClosed {x} |
| 64 | simpa only [Set.image_singleton] using h |
| 65 | |
| 66 | theorem finiteClosedSet_stalk_preimage_eq_closedPoint |
| 67 | {X : Scheme.{u}} [JacobsonSpace X] (C : Set X) (hC : IsClosed C) (hfinite : C.Finite) |
| 68 | (x : X) (y : Spec (X.presheaf.stalk x)) (hy : X.fromSpecStalk x y ∈ C) : |
| 69 | y = IsLocalRing.closedPoint (X.presheaf.stalk x) := by |
| 70 | have hclosed : IsClosed {X.fromSpecStalk x y} := finiteClosedSet_subset_closedPoints C hC hfinite hy |
| 71 | have hspec : X.fromSpecStalk x y ⤳ x := by |
| 72 | have hr : X.fromSpecStalk x y ∈ Set.range (X.fromSpecStalk x) := ⟨y, rfl⟩ |
| 73 | rw [Scheme.range_fromSpecStalk] at hr |
| 74 | exact hr |
| 75 | have he : x = X.fromSpecStalk x y := hspec.mem_closed hclosed (Set.mem_singleton _) |
| 76 | apply (X.fromSpecStalk x).isEmbedding.injective |
| 77 | rw [Scheme.fromSpecStalk_closedPoint] |
| 78 | exact he.symm |
| 79 | |
| 80 | theorem mixedKoszul_stalk_field_pullback_contractible |
| 81 | {K : Type u} [Field K] {X : Scheme.{u}} [JacobsonSpace X] |
| 82 | (M : X.Modules) (bs : List (LineBundleKoszulComplex.LineBundleSection X)) (hf : (mixedSectionZeroSet bs).Finite) |
| 83 | (x : X) (q : Spec (.of K) ⟶ Spec (X.presheaf.stalk x)) |
| 84 | (hq : q (IsLocalRing.closedPoint K) ≠ IsLocalRing.closedPoint (X.presheaf.stalk x)) : |
| 85 | Nonempty (Homotopy (𝟙 (((Scheme.Modules.pullback (q ≫ X.fromSpecStalk x)).mapHomologicalComplex (.up ℤ)).obj |
| 86 | (LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs))) 0) := by |
| 87 | apply mixedKoszul_field_pullback_contractible M bs (q ≫ X.fromSpecStalk x) |
| 88 | intro h |
| 89 | exact hq (finiteClosedSet_stalk_preimage_eq_closedPoint |
| 90 | (mixedSectionZeroSet bs) (mixedSectionZeroSet_isClosed bs) hf x _ h) |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MixedKoszulGeometricSupport |