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.GlobalBlowup.Data |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 3 | |
| 4 | /-! # Complement -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.Complement.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Isomorphism of the global blowup away from its center. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | /-- Isomorphisms on smaller open neighborhoods imply an isomorphism on the |
| 17 | open subset they cover. -/ |
| 18 | theorem isIso_restrict_of_local_restrictions |
| 19 | {X Y : Scheme.{u}} (f : X ⟶ Y) (O : Y.Opens) |
| 20 | (H : ∀ y : Y, y ∈ O → ∃ V : Y.Opens, y ∈ V ∧ V ≤ O ∧ IsIso (f ∣_ V)) : |
| 21 | IsIso (f ∣_ O) := by |
| 22 | apply IsZariskiLocalAtTarget.of_forall_exists_morphismRestrict |
| 23 | intro y |
| 24 | obtain ⟨V, hy, hVO, hfV⟩ := H y.1 y.2 |
| 25 | let W : O.toScheme.Opens := O.ι ⁻¹ᵁ V |
| 26 | have himage : O.ι ''ᵁ W = V := by |
| 27 | rw [Scheme.Hom.image_preimage_eq_opensRange_inf, Scheme.Opens.opensRange_ι, |
| 28 | inf_eq_right.mpr hVO] |
| 29 | refine ⟨W, hy, ?_⟩ |
| 30 | apply ((MorphismProperty.isomorphisms Scheme).arrow_mk_iso_iff |
| 31 | (morphismRestrictRestrict f O W)).mpr |
| 32 | change IsIso (f ∣_ O.ι ''ᵁ W) |
| 33 | rw [himage] |
| 34 | exact hfV |
| 35 | |
| 36 | /-- An isomorphism over an open subset remains an isomorphism over a smaller open. -/ |
| 37 | theorem isIso_restrict_of_le {X Y : Scheme.{u}} (f : X ⟶ Y) {O V : Y.Opens} |
| 38 | (hOV : O ≤ V) [IsIso (f ∣_ V)] : IsIso (f ∣_ O) := by |
| 39 | let W : V.toScheme.Opens := V.ι ⁻¹ᵁ O |
| 40 | have himage : V.ι ''ᵁ W = O := by |
| 41 | rw [Scheme.Hom.image_preimage_eq_opensRange_inf, Scheme.Opens.opensRange_ι, |
| 42 | inf_eq_right.mpr hOV] |
| 43 | have h := ((MorphismProperty.isomorphisms Scheme).arrow_mk_iso_iff |
| 44 | (morphismRestrictRestrict f V W)).mp (inferInstance : IsIso (f ∣_ V ∣_ W)) |
| 45 | change IsIso (f ∣_ V.ι ''ᵁ W) at h |
| 46 | rw [himage] at h |
| 47 | exact h |
| 48 | |
| 49 | variable {X : Scheme.{u}} [IsIntegral X] [IsLocallyNoetherian X] |
| 50 | variable (I : X.IdealSheafData) (hI : I ≠ ⊥) |
| 51 | |
| 52 | omit [IsIntegral X] [IsLocallyNoetherian X] in |
| 53 | /-- The range of a localization of an affine chart is its basic open in the base. -/ |
| 54 | theorem baseLocalization_fromSpec_range (U : X.affineOpens) (a : Γ(X, U)) : |
| 55 | letI : IsOpenImmersion U.2.fromSpec := U.2.isOpenImmersion_fromSpec |
| 56 | (Blowup.Localization.Construction.baseLocalizationMap a ≫ U.2.fromSpec).opensRange = X.basicOpen a := by |
| 57 | let : IsOpenImmersion U.2.fromSpec := U.2.isOpenImmersion_fromSpec |
| 58 | rw [Scheme.Hom.opensRange_comp] |
| 59 | change U.2.fromSpec ''ᵁ |
| 60 | (Spec.map (CommRingCat.ofHom (algebraMap Γ(X, U) (Localization.Away a)))).opensRange = _ |
| 61 | rw [Scheme.Hom.opensRange_localizationAway, U.2.fromSpec_image_basicOpen] |
| 62 | |
| 63 | /-- The blowup restricts to an isomorphism on each basic open defined by a |
| 64 | nonzero section of the center ideal. -/ |
| 65 | theorem globalBlowup_basicOpen_isIso (U : X.affineOpens) [Nonempty U.1] |
| 66 | (a : I.ideal U) (ha : a.val ≠ 0) : |
| 67 | IsIso (GlobalBlowup.Data.Construction.globalBlowupToBase I hI ∣_ X.basicOpen a.val) := by |
| 68 | let : IsOpenImmersion U.2.fromSpec := U.2.isOpenImmersion_fromSpec |
| 69 | let j := Blowup.Localization.Construction.baseLocalizationMap a.val ≫ U.2.fromSpec |
| 70 | let : IsOpenImmersion j := inferInstance |
| 71 | have hj : IsIso (pullback.snd (GlobalBlowup.Data.Construction.globalBlowupToBase I hI) j) := |
| 72 | GlobalBlowup.Data.Construction.globalBlowup_localization_isIso I hI U a ha |
| 73 | have h := ((MorphismProperty.isomorphisms Scheme).arrow_mk_iso_iff |
| 74 | (morphismRestrictOpensRange (GlobalBlowup.Data.Construction.globalBlowupToBase I hI) j)).mpr hj |
| 75 | change IsIso (GlobalBlowup.Data.Construction.globalBlowupToBase I hI ∣_ j.opensRange) at h |
| 76 | have hrange : j.opensRange = X.basicOpen a.val := baseLocalization_fromSpec_range U a.val |
| 77 | rw [hrange] at h |
| 78 | exact h |
| 79 | |
| 80 | /-- The global blowup is an isomorphism over the entire complement of the |
| 81 | closed center defined by its ideal sheaf. -/ |
| 82 | theorem globalBlowup_supportComplement_isIso : |
| 83 | IsIso (GlobalBlowup.Data.Construction.globalBlowupToBase I hI ∣_ I.support.compl) := by |
| 84 | apply isIso_restrict_of_local_restrictions |
| 85 | intro x hx |
| 86 | obtain ⟨U, hU, hxU, _⟩ := exists_isAffineOpen_mem_and_subset (U := ⊤) (x := x) trivial |
| 87 | let V : X.affineOpens := ⟨U, hU⟩ |
| 88 | let : Nonempty V.1 := ⟨⟨x, hxU⟩⟩ |
| 89 | have hnot : x ∉ X.zeroLocus (U := V.1) (I.ideal V) := by |
| 90 | intro hz |
| 91 | exact hx ((Scheme.IdealSheafData.mem_support_iff_of_mem (I := I) hxU).mpr hz) |
| 92 | simp only [Scheme.mem_zeroLocus_iff, not_forall, Classical.not_not] at hnot |
| 93 | obtain ⟨a, ha, hxa⟩ := hnot |
| 94 | have ha0 : a ≠ 0 := by |
| 95 | intro ha0 |
| 96 | rw [ha0, Scheme.basicOpen_zero] at hxa |
| 97 | exact hxa |
| 98 | refine ⟨X.basicOpen a, hxa, ?_, globalBlowup_basicOpen_isIso I hI V ⟨a, ha⟩ ha0⟩ |
| 99 | intro y hy |
| 100 | change y ∉ I.support |
| 101 | intro hys |
| 102 | have hz := (Scheme.IdealSheafData.mem_support_iff.mp hys) V |
| 103 | exact ((Scheme.mem_zeroLocus_iff X _ _).mp hz) a ha hy |
| 104 | |
| 105 | /-- Any open subset disjoint from the center is preserved by the blowup. -/ |
| 106 | theorem globalBlowup_isIso_on_open (O : X.Opens) (hO : O ≤ I.support.compl) : |
| 107 | IsIso (GlobalBlowup.Data.Construction.globalBlowupToBase I hI ∣_ O) := by |
| 108 | let : IsIso (GlobalBlowup.Data.Construction.globalBlowupToBase I hI ∣_ I.support.compl) := |
| 109 | globalBlowup_supportComplement_isIso I hI |
| 110 | exact isIso_restrict_of_le (GlobalBlowup.Data.Construction.globalBlowupToBase I hI) hO |
| 111 | |
| 112 | /-- A blowup whose center is contained in the singular locus preserves the |
| 113 | smooth locus of the given structural morphism. -/ |
| 114 | theorem globalBlowup_preserves_smoothLocus {S : Scheme.{u}} (f : X ⟶ S) |
| 115 | [LocallyOfFinitePresentation f] |
| 116 | (hcenter : (I.support : Set X) ⊆ (f.smoothLocus : Set X)ᶜ) : |
| 117 | IsIso (GlobalBlowup.Data.Construction.globalBlowupToBase I hI ∣_ f.smoothLocus) := by |
| 118 | apply globalBlowup_isIso_on_open I hI |
| 119 | intro x hx |
| 120 | exact fun hxs => hcenter hxs hx |
| 121 | |
| 122 | end |
| 123 | |
| 124 | end OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.Complement.Construction |