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.Resolution.Blowups.Blowup.Functor |
| 2 | import Mathlib.AlgebraicGeometry.Noetherian |
| 3 | |
| 4 | /-! # Blowup Restriction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.BlowupRestriction.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compatibility of the affine blowup diagram with restrictions of the base. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {R S : Type u} [CommRing R] [CommRing S] [Algebra R S] |
| 17 | |
| 18 | /-- Localization compatibility with a separately specified extended ideal. -/ |
| 19 | theorem affineBlowupMapTo_localization_isPullback |
| 20 | [IsDomain R] [IsNoetherianRing R] (I : Ideal R) (J : Ideal S) |
| 21 | (s : R) [IsLocalization.Away s S] (h : I.map (algebraMap R S) = J) |
| 22 | (hI : I ≠ ⊥) (hs : s ≠ 0) : |
| 23 | IsPullback (Functor.Construction.affineBlowupMapTo I J (algebraMap R S) h) |
| 24 | (ReesGrading.Construction.affineBlowupToSpec J) (ReesGrading.Construction.affineBlowupToSpec I) |
| 25 | (Spec.map (CommRingCat.ofHom (algebraMap R S))) := by |
| 26 | subst J |
| 27 | exact BaseChange.Construction.affineBlowup_localization_isPullback I s hI hs |
| 28 | |
| 29 | variable {X : Scheme.{u}} |
| 30 | |
| 31 | /-- The diagram of affine blowups is cartesian on every nonempty principal |
| 32 | restriction of an integral Noetherian base. -/ |
| 33 | theorem idealBlowup_basicOpen_isPullback |
| 34 | [IsIntegral X] [IsLocallyNoetherian X] (I : X.IdealSheafData) |
| 35 | {U V : X.affineOpens} [Nonempty V.1] (hUV : U ≤ V) |
| 36 | (s : Γ(X, V)) (hU : U.1 = X.basicOpen s) (hI : I.ideal V ≠ ⊥) (hs : s ≠ 0) : |
| 37 | IsPullback ((Functor.Construction.idealBlowupFunctor I).map (homOfLE hUV)) |
| 38 | ((Functor.Construction.idealBlowupNatTrans I).app U) ((Functor.Construction.idealBlowupNatTrans I).app V) |
| 39 | (X.homOfLE hUV) := by |
| 40 | let : IsNoetherianRing Γ(X, V) := IsLocallyNoetherian.component_noetherian V |
| 41 | let : Algebra Γ(X, V) Γ(X, U) := (Functor.Construction.affineRestriction hUV).toAlgebra |
| 42 | let : IsLocalization.Away s Γ(X, U) := |
| 43 | V.2.isLocalization_of_eq_basicOpen s (homOfLE hUV) hU |
| 44 | have hpb := affineBlowupMapTo_localization_isPullback |
| 45 | (I.ideal V) (I.ideal U) s (Functor.Construction.affineRestriction_ideal I hUV) hI hs |
| 46 | have hbase : IsPullback (Spec.map (CommRingCat.ofHom (Functor.Construction.affineRestriction hUV))) |
| 47 | U.2.isoSpec.inv V.2.isoSpec.inv (X.homOfLE hUV) := |
| 48 | IsPullback.of_vert_isIso ⟨Functor.Construction.affineRestriction_over hUV⟩ |
| 49 | exact hpb.paste_vert hbase |
| 50 | |
| 51 | /-- Local pullback charts over the source base detect whether a comparison |
| 52 | map is an open immersion. -/ |
| 53 | theorem isOpenImmersion_of_local_base_charts |
| 54 | {B B' V U : Scheme.{u}} (i : B' ⟶ B) (p : B ⟶ V) (p' : B' ⟶ U) |
| 55 | (j : U ⟶ V) [IsOpenImmersion j] (h : i ≫ p = p' ≫ j) |
| 56 | (hloc : ∀ y : U, ∃ (T W : Scheme.{u}) (k : T ⟶ B') (q : T ⟶ W) (w : W ⟶ U), |
| 57 | IsOpenImmersion w ∧ IsPullback k q p' w ∧ y ∈ Set.range w ∧ |
| 58 | IsOpenImmersion (k ≫ i)) : |
| 59 | IsOpenImmersion i := by |
| 60 | have hinj : Function.Injective i := by |
| 61 | intro x₁ x₂ hx |
| 62 | have hy : p' x₁ = p' x₂ := by |
| 63 | apply j.injective |
| 64 | have hp := congrArg p hx |
| 65 | change (i ≫ p) x₁ = (i ≫ p) x₂ at hp |
| 66 | rw [h] at hp |
| 67 | exact hp |
| 68 | obtain ⟨T, W, k, q, w, _, hpb, ⟨y, hy₁⟩, hki⟩ := hloc (p' x₁) |
| 69 | let : IsOpenImmersion (k ≫ i) := hki |
| 70 | obtain ⟨z₁, hz₁, _⟩ := Scheme.exists_preimage_of_isPullback hpb x₁ y hy₁.symm |
| 71 | obtain ⟨z₂, hz₂, _⟩ := Scheme.exists_preimage_of_isPullback hpb x₂ y (hy₁.trans hy).symm |
| 72 | have hz : z₁ = z₂ := (k ≫ i).injective (by |
| 73 | simpa only [Scheme.Hom.comp_apply, hz₁, hz₂] using hx) |
| 74 | exact hz₁.symm.trans ((congrArg k hz).trans hz₂) |
| 75 | apply IsOpenImmersion.of_forall_source_exists i hinj |
| 76 | intro x |
| 77 | obtain ⟨T, W, k, q, w, hw, hpb, ⟨y, hy⟩, hki⟩ := hloc (p' x) |
| 78 | let : IsOpenImmersion w := hw |
| 79 | let hk : IsOpenImmersion k := MorphismProperty.of_isPullback hpb.flip hw |
| 80 | obtain ⟨z, hz, _⟩ := Scheme.exists_preimage_of_isPullback hpb x y hy.symm |
| 81 | exact ⟨T, k, hk, ⟨z, hz⟩, hki⟩ |
| 82 | |
| 83 | /-- A nonzero ideal on an affine open remains nonzero on any smaller |
| 84 | nonempty affine open of an integral scheme. -/ |
| 85 | theorem ideal_ne_bot_on_smaller_open [IsIntegral X] (I : X.IdealSheafData) |
| 86 | {U V : X.affineOpens} [Nonempty U.1] (hUV : U ≤ V) (hI : I.ideal V ≠ ⊥) : |
| 87 | I.ideal U ≠ ⊥ := by |
| 88 | rw [← Functor.Construction.affineRestriction_ideal I hUV] |
| 89 | exact (Ideal.map_eq_bot_iff_of_injective |
| 90 | (map_injective_of_isIntegral X (homOfLE (X := X.Opens) hUV))).not.mpr hI |
| 91 | |
| 92 | /-- Restriction between arbitrary nonempty affine opens induces an open |
| 93 | immersion between their blowups. -/ |
| 94 | theorem idealBlowup_map_isOpenImmersion |
| 95 | [IsIntegral X] [IsLocallyNoetherian X] (I : X.IdealSheafData) |
| 96 | {U V : X.affineOpens} [Nonempty U.1] [Nonempty V.1] |
| 97 | (hUV : U ≤ V) (hI : I.ideal V ≠ ⊥) : |
| 98 | IsOpenImmersion ((Functor.Construction.idealBlowupFunctor I).map (homOfLE hUV)) := by |
| 99 | have hIU := ideal_ne_bot_on_smaller_open I hUV hI |
| 100 | refine @isOpenImmersion_of_local_base_charts |
| 101 | (ReesGrading.Construction.affineBlowup (I.ideal V)) (ReesGrading.Construction.affineBlowup (I.ideal U)) V.1 U.1 |
| 102 | ((Functor.Construction.idealBlowupFunctor I).map (homOfLE hUV)) |
| 103 | (ReesGrading.Construction.affineBlowupToSpec (I.ideal V) ≫ V.2.isoSpec.inv) |
| 104 | (ReesGrading.Construction.affineBlowupToSpec (I.ideal U) ≫ U.2.isoSpec.inv) |
| 105 | (X.homOfLE hUV) inferInstance ((Functor.Construction.idealBlowupNatTrans I).naturality (homOfLE hUV)) ?_ |
| 106 | intro y |
| 107 | obtain ⟨f, g, e, hy⟩ := exists_basicOpen_le_affine_inter U.2 V.2 y.1 ⟨y.2, hUV y.2⟩ |
| 108 | have hf : f ≠ 0 := by |
| 109 | intro hf |
| 110 | rw [hf, Scheme.basicOpen_zero] at hy |
| 111 | exact hy |
| 112 | have hg : g ≠ 0 := by |
| 113 | intro hg |
| 114 | rw [e, hg, Scheme.basicOpen_zero] at hy |
| 115 | exact hy |
| 116 | let W : X.affineOpens := X.affineBasicOpen f |
| 117 | have hWU : W ≤ U := X.basicOpen_le f |
| 118 | have hWV : W ≤ V := hWU.trans hUV |
| 119 | have hpU := idealBlowup_basicOpen_isPullback I hWU f rfl hIU hf |
| 120 | have hpV := idealBlowup_basicOpen_isPullback I hWV g e hI hg |
| 121 | refine ⟨(Functor.Construction.idealBlowupFunctor I).obj W, W.1, |
| 122 | (Functor.Construction.idealBlowupFunctor I).map (homOfLE hWU), (Functor.Construction.idealBlowupNatTrans I).app W, |
| 123 | X.homOfLE hWU, inferInstance, hpU, |
| 124 | ⟨⟨y.1, hy⟩, Scheme.homOfLE_apply' hWU y.1 hy⟩, ?_⟩ |
| 125 | have hk : IsOpenImmersion ((Functor.Construction.idealBlowupFunctor I).map (homOfLE hWV)) := |
| 126 | MorphismProperty.of_isPullback hpV.flip |
| 127 | (inferInstance : IsOpenImmersion (X.homOfLE (U := W.1) (V := V.1) hWV)) |
| 128 | exact ((Functor.Construction.idealBlowupFunctor I).map_comp (homOfLE hWU) (homOfLE hUV)) ▸ hk |
| 129 | |
| 130 | /-- Affine blowups of a nonzero ideal sheaf commute with arbitrary |
| 131 | inclusions between nonempty affine opens. -/ |
| 132 | theorem idealBlowup_affineOpen_isPullback |
| 133 | [IsIntegral X] [IsLocallyNoetherian X] (I : X.IdealSheafData) |
| 134 | {U V : X.affineOpens} [Nonempty U.1] [Nonempty V.1] |
| 135 | (hUV : U ≤ V) (hI : I.ideal V ≠ ⊥) : |
| 136 | IsPullback ((Functor.Construction.idealBlowupFunctor I).map (homOfLE hUV)) |
| 137 | ((Functor.Construction.idealBlowupNatTrans I).app U) ((Functor.Construction.idealBlowupNatTrans I).app V) |
| 138 | (X.homOfLE hUV) := by |
| 139 | have hIU := ideal_ne_bot_on_smaller_open I hUV hI |
| 140 | let : IsNoetherianRing Γ(X, U) := IsLocallyNoetherian.component_noetherian U |
| 141 | let : IsNoetherianRing Γ(X, V) := IsLocallyNoetherian.component_noetherian V |
| 142 | let : IsIntegral (ReesGrading.Construction.affineBlowup (I.ideal U)) := Cover.Construction.affineBlowup_integral (I.ideal U) hIU |
| 143 | let : IsIntegral (ReesGrading.Construction.affineBlowup (I.ideal V)) := Cover.Construction.affineBlowup_integral (I.ideal V) hI |
| 144 | let hi : IsOpenImmersion ((Functor.Construction.idealBlowupFunctor I).map (homOfLE hUV)) := |
| 145 | idealBlowup_map_isOpenImmersion I hUV hI |
| 146 | exact @BaseChange.Construction.isPullback_of_proper_open_diagram |
| 147 | (ReesGrading.Construction.affineBlowup (I.ideal V)) (ReesGrading.Construction.affineBlowup (I.ideal U)) V.1 U.1 |
| 148 | inferInstance inferInstance |
| 149 | (ReesGrading.Construction.affineBlowupToSpec (I.ideal V) ≫ V.2.isoSpec.inv) inferInstance |
| 150 | (X.homOfLE hUV) inferInstance |
| 151 | (ReesGrading.Construction.affineBlowupToSpec (I.ideal U) ≫ U.2.isoSpec.inv) inferInstance |
| 152 | ((Functor.Construction.idealBlowupFunctor I).map (homOfLE hUV)) hi |
| 153 | ((Functor.Construction.idealBlowupNatTrans I).naturality (homOfLE hUV)) |
| 154 | |
| 155 | /-- A commutative square over an empty open base is cartesian. -/ |
| 156 | theorem isPullback_of_empty_open_base |
| 157 | {B B' V U : Scheme.{u}} [IsEmpty U] (i : B' ⟶ B) (p : B ⟶ V) (p' : B' ⟶ U) |
| 158 | (j : U ⟶ V) [IsOpenImmersion j] (h : i ≫ p = p' ≫ j) : |
| 159 | IsPullback i p' p j := by |
| 160 | let : IsEmpty B' := (fun x : B' => p' x).isEmpty |
| 161 | let : IsOpenImmersion i := inferInstance |
| 162 | apply IsPullback.flip |
| 163 | apply IsOpenImmersion.isPullback p' i j p h |
| 164 | apply TopologicalSpace.Opens.ext |
| 165 | change p ⁻¹' (Set.range j) = Set.range i |
| 166 | ext x |
| 167 | constructor |
| 168 | · rintro ⟨u, _⟩ |
| 169 | exact isEmptyElim u |
| 170 | · rintro ⟨b, _⟩ |
| 171 | exact isEmptyElim b |
| 172 | |
| 173 | /-- A nonzero ideal sheaf on an integral scheme is nonzero on every |
| 174 | nonempty affine open. -/ |
| 175 | theorem nonzero_idealSheaf_on_affineOpen [IsIntegral X] |
| 176 | (I : X.IdealSheafData) (hI : I ≠ ⊥) (U : X.affineOpens) [Nonempty U.1] : |
| 177 | I.ideal U ≠ ⊥ := by |
| 178 | intro hIU |
| 179 | apply hI |
| 180 | apply Scheme.IdealSheafData.ext |
| 181 | funext V |
| 182 | change I.ideal V = ⊥ |
| 183 | by_contra hIV |
| 184 | obtain ⟨r, _, hr⟩ := (Submodule.ne_bot_iff (I.ideal V)).mp hIV |
| 185 | let : Nontrivial Γ(X, V) := nontrivial_of_ne r 0 hr |
| 186 | let : Nonempty V.1 := Nonempty.map V.2.isoSpec.inv inferInstance |
| 187 | obtain ⟨x, hxU, hxV⟩ := nonempty_preirreducible_inter U.1.isOpen V.1.isOpen |
| 188 | (by simpa using (inferInstance : Nonempty U.1)) |
| 189 | (by simpa using (inferInstance : Nonempty V.1)) |
| 190 | obtain ⟨f, g, e, hx⟩ := exists_basicOpen_le_affine_inter U.2 V.2 x ⟨hxU, hxV⟩ |
| 191 | let W : X.affineOpens := X.affineBasicOpen f |
| 192 | let : Nonempty W.1 := ⟨⟨x, hx⟩⟩ |
| 193 | have hWU : W ≤ U := X.basicOpen_le f |
| 194 | have hWV : W ≤ V := by |
| 195 | change X.basicOpen f ≤ V.1 |
| 196 | rw [e] |
| 197 | exact X.basicOpen_le g |
| 198 | have hIW := ideal_ne_bot_on_smaller_open I hWV hIV |
| 199 | have hmap := Functor.Construction.affineRestriction_ideal I hWU |
| 200 | rw [hIU, Ideal.map_bot] at hmap |
| 201 | exact hIW hmap.symm |
| 202 | |
| 203 | /-- All affine-open transition squares of the blowup of a nonzero ideal |
| 204 | sheaf on an integral locally Noetherian scheme are cartesian. -/ |
| 205 | theorem idealBlowupNatTrans_equifibered |
| 206 | [IsIntegral X] [IsLocallyNoetherian X] (I : X.IdealSheafData) (hI : I ≠ ⊥) : |
| 207 | (Functor.Construction.idealBlowupNatTrans I).Equifibered := by |
| 208 | intro U V h |
| 209 | by_cases hU : Nonempty U.1 |
| 210 | · let : Nonempty U.1 := hU |
| 211 | let : Nonempty V.1 := Nonempty.map (X.homOfLE (leOfHom h)) hU |
| 212 | exact idealBlowup_affineOpen_isPullback I (leOfHom h) |
| 213 | (nonzero_idealSheaf_on_affineOpen I hI V) |
| 214 | · let : IsEmpty U.1 := not_nonempty_iff.mp hU |
| 215 | exact @isPullback_of_empty_open_base |
| 216 | (ReesGrading.Construction.affineBlowup (I.ideal V)) (ReesGrading.Construction.affineBlowup (I.ideal U)) V.1 U.1 inferInstance |
| 217 | ((Functor.Construction.idealBlowupFunctor I).map h) |
| 218 | (ReesGrading.Construction.affineBlowupToSpec (I.ideal V) ≫ V.2.isoSpec.inv) |
| 219 | (ReesGrading.Construction.affineBlowupToSpec (I.ideal U) ≫ U.2.isoSpec.inv) |
| 220 | (X.homOfLE (leOfHom h)) inferInstance ((Functor.Construction.idealBlowupNatTrans I).naturality h) |
| 221 | |
| 222 | end |
| 223 | |
| 224 | end OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.BlowupRestriction.Construction |