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.ControlPrefix.ComparisonCoherence |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.ClosedCarrierCenters |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.GlobalBlowup.EtaleMap |
| 4 | |
| 5 | /-! # Comparison Factorization To -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Resolution.Blowups |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! A carrier comparison records the actual closed embeddings and the pushforward of each coefficient center. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | theorem ControlPrefix.ComparisonFactorizationTo.Construction.idealSheaf_map_comap_iso {X Y : Scheme} (q : Y ⟶ X) [IsIso q] (I : X.IdealSheafData) : |
| 18 | (I.comap q).map q = I := by |
| 19 | have h := congrArg (fun K : Y.IdealSheafData => K.comap (inv q)) (ClosedCarrierCenters.Construction.idealSheaf_closed_comap_map q (I.comap q)) |
| 20 | simpa only [← Scheme.IdealSheafData.comap_comp, IsIso.inv_hom_id, Scheme.IdealSheafData.comap_id] using h |
| 21 | |
| 22 | theorem ControlPrefix.ComparisonFactorizationTo.Construction.globalBlowupMapTo_isIso |
| 23 | {X Y : Scheme.{0}} [IsIntegral X] [IsLocallyNoetherian X] [IsIntegral Y] [IsLocallyNoetherian Y] |
| 24 | (q : Y ⟶ X) [IsIso q] (I : X.IdealSheafData) (K : Y.IdealSheafData) |
| 25 | (he : I.comap q = K) (hI : I ≠ ⊥) (hK : K ≠ ⊥) : IsIso (GlobalBlowup.SpecifiedMap.Construction.globalBlowupMapTo q I K he hI hK) := by |
| 26 | have hpb := GlobalBlowup.EtalePullback.Construction.globalBlowupMapTo_etale_isPullback q I K he hI hK |
| 27 | rw [← hpb.isoPullback_hom_fst] |
| 28 | infer_instance |
| 29 | |
| 30 | def Smooth.ControlPrefix.Construction.SmoothControlPrefix.CarrierComparison {b : ℕ} {X Y : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 31 | {J : X.IdealSheafData} {K : Y.IdealSheafData} (P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f J Y g K) : |
| 32 | ∀ {c : ℕ} {V W : Scheme} {h : V ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {k : W ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 33 | {L : V.IdealSheafData} {M : W.IdealSheafData}, |
| 34 | Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix c V h L W k M → (V ⟶ X) → (W ⟶ Y) → Prop := by |
| 35 | induction P with |
| 36 | | @stop X f hf J => |
| 37 | intro c V W h k L M Q q r |
| 38 | cases Q with |
| 39 | | stop => exact IsClosedImmersion q ∧ q ≫ f = h ∧ r = q |
| 40 | | blowup => exact False |
| 41 | | @blowup X hX hNX f J I hI hb hp hs hbl Y g K tail ih => |
| 42 | intro c V W h k L M Q q r |
| 43 | cases Q with |
| 44 | | stop => exact False |
| 45 | | blowup C hC hc hpC hsC hblC rest => |
| 46 | exact IsClosedImmersion q ∧ q ≫ f = h ∧ |
| 47 | ∃ he : I.comap q = C, C.map q = I ∧ ih rest (GlobalBlowup.SpecifiedMap.Construction.globalBlowupMapTo q I C he hI hC) r |
| 48 | |
| 49 | theorem Smooth.ControlPrefix.Construction.SmoothControlPrefix.CarrierComparison.stepCount_eq |
| 50 | {b : ℕ} {X Y : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 51 | {J : X.IdealSheafData} {K : Y.IdealSheafData} (P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f J Y g K) : |
| 52 | ∀ {c : ℕ} {V W : Scheme} {h : V ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {k : W ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 53 | {L : V.IdealSheafData} {M : W.IdealSheafData} |
| 54 | (Q : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix c V h L W k M) (q : V ⟶ X) (r : W ⟶ Y), |
| 55 | P.CarrierComparison Q q r → P.stepCount = Q.stepCount := by |
| 56 | induction P with |
| 57 | | stop => |
| 58 | intro c V W h k L M Q q r hc |
| 59 | cases Q with |
| 60 | | stop => rfl |
| 61 | | blowup => exact False.elim hc |
| 62 | | blowup I hI hb hp hs hbl tail ih => |
| 63 | intro c V W h k L M Q q r hc |
| 64 | cases Q with |
| 65 | | stop => exact False.elim hc |
| 66 | | blowup C hC hcC hpC hsC hblC rest => |
| 67 | obtain ⟨_, _, he, _, ht⟩ := hc |
| 68 | exact congrArg (fun n : ℕ => n + 1) (ih rest _ r ht) |
| 69 | |
| 70 | theorem Smooth.ControlPrefix.Construction.SmoothControlPrefix.CarrierComparison.endpoint |
| 71 | {b : ℕ} {X Y : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 72 | {J : X.IdealSheafData} {K : Y.IdealSheafData} (P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f J Y g K) : |
| 73 | ∀ {c : ℕ} {V W : Scheme} {h : V ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {k : W ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 74 | {L : V.IdealSheafData} {M : W.IdealSheafData} |
| 75 | (Q : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix c V h L W k M) (q : V ⟶ X) (r : W ⟶ Y), |
| 76 | P.CarrierComparison Q q r → IsClosedImmersion r ∧ r ≫ g = k ∧ r ≫ P.toBase = Q.toBase ≫ q := by |
| 77 | induction P with |
| 78 | | stop => |
| 79 | intro c V W h k L M Q q r hc |
| 80 | cases Q with |
| 81 | | stop => |
| 82 | obtain ⟨hq, hover, rfl⟩ := hc |
| 83 | exact ⟨hq, hover, by simp [Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.toBase]⟩ |
| 84 | | blowup => exact False.elim hc |
| 85 | | blowup I hI hb hp hs hbl tail ih => |
| 86 | intro c V W h k L M Q q r hc |
| 87 | cases Q with |
| 88 | | stop => exact False.elim hc |
| 89 | | blowup C hC hcC hpC hsC hblC rest => |
| 90 | obtain ⟨_, _, he, _, ht⟩ := hc |
| 91 | obtain ⟨hr, hover, hmap⟩ := ih rest _ r ht |
| 92 | refine ⟨hr, hover, ?_⟩ |
| 93 | change r ≫ (tail.toBase ≫ GlobalBlowup.Data.Construction.globalBlowupToBase I hI) = (rest.toBase ≫ GlobalBlowup.Data.Construction.globalBlowupToBase C hC) ≫ q |
| 94 | rw [← Category.assoc, hmap, Category.assoc, GlobalBlowup.SpecifiedMap.Construction.globalBlowupMapTo_over, Category.assoc] |
| 95 | |
| 96 | end |
| 97 | |
| 98 | section |
| 99 | |
| 100 | /-! Opaque equations for the comparison of two explicitly named blowup steps. -/ |
| 101 | |
| 102 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 103 | |
| 104 | theorem Smooth.ControlPrefix.Construction.SmoothControlPrefix.carrierComparison_blowup_iff |
| 105 | {b c : ℕ} {X Y V W : Scheme} [IsIntegral X] [IsLocallyNoetherian X] |
| 106 | [IsIntegral V] [IsLocallyNoetherian V] |
| 107 | {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {h : V ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {k : W ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 108 | {J : X.IdealSheafData} {K : Y.IdealSheafData} {L : V.IdealSheafData} {M : W.IdealSheafData} |
| 109 | (I : X.IdealSheafData) (hI : I ≠ ⊥) (hb : 0 < b) (hp : J ≤ I ^ b) |
| 110 | (hs : Smooth (I.subschemeι ≫ f)) (hbl : Smooth (GlobalBlowup.Data.Construction.globalBlowupToBase I hI ≫ f)) |
| 111 | (tail : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b (GlobalBlowup.Data.Construction.globalBlowup I hI) (GlobalBlowup.Data.Construction.globalBlowupToBase I hI ≫ f) |
| 112 | (GlobalControlled.Ideal.Construction.globalBlowupControlledIdeal I J hI b) Y g K) |
| 113 | (C : V.IdealSheafData) (hC : C ≠ ⊥) (hc : 0 < c) (hpC : L ≤ C ^ c) |
| 114 | (hsC : Smooth (C.subschemeι ≫ h)) (hblC : Smooth (GlobalBlowup.Data.Construction.globalBlowupToBase C hC ≫ h)) |
| 115 | (rest : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix c (GlobalBlowup.Data.Construction.globalBlowup C hC) (GlobalBlowup.Data.Construction.globalBlowupToBase C hC ≫ h) |
| 116 | (GlobalControlled.Ideal.Construction.globalBlowupControlledIdeal C L hC c) W k M) (q : V ⟶ X) (r : W ⟶ Y) : |
| 117 | (Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.blowup I hI hb hp hs hbl tail).CarrierComparison (Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.blowup C hC hc hpC hsC hblC rest) q r ↔ |
| 118 | IsClosedImmersion q ∧ q ≫ f = h ∧ ∃ he : I.comap q = C, C.map q = I ∧ |
| 119 | tail.CarrierComparison rest (GlobalBlowup.SpecifiedMap.Construction.globalBlowupMapTo q I C he hI hC) r := Iff.rfl |
| 120 | |
| 121 | theorem Smooth.ControlPrefix.Construction.SmoothControlPrefix.etaleComparison_blowup_iff |
| 122 | {b : ℕ} {X Y V W : Scheme} [IsIntegral X] [IsLocallyNoetherian X] |
| 123 | [IsIntegral V] [IsLocallyNoetherian V] |
| 124 | {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {h : V ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {k : W ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 125 | {J : X.IdealSheafData} {K : Y.IdealSheafData} {L : V.IdealSheafData} {M : W.IdealSheafData} |
| 126 | (I : X.IdealSheafData) (hI : I ≠ ⊥) (hb : 0 < b) (hp : J ≤ I ^ b) |
| 127 | (hs : Smooth (I.subschemeι ≫ f)) (hbl : Smooth (GlobalBlowup.Data.Construction.globalBlowupToBase I hI ≫ f)) |
| 128 | (tail : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b (GlobalBlowup.Data.Construction.globalBlowup I hI) (GlobalBlowup.Data.Construction.globalBlowupToBase I hI ≫ f) |
| 129 | (GlobalControlled.Ideal.Construction.globalBlowupControlledIdeal I J hI b) Y g K) |
| 130 | (C : V.IdealSheafData) (hC : C ≠ ⊥) (hc : 0 < b) (hpC : L ≤ C ^ b) |
| 131 | (hsC : Smooth (C.subschemeι ≫ h)) (hblC : Smooth (GlobalBlowup.Data.Construction.globalBlowupToBase C hC ≫ h)) |
| 132 | (rest : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b (GlobalBlowup.Data.Construction.globalBlowup C hC) (GlobalBlowup.Data.Construction.globalBlowupToBase C hC ≫ h) |
| 133 | (GlobalControlled.Ideal.Construction.globalBlowupControlledIdeal C L hC b) W k M) (q : V ⟶ X) (r : W ⟶ Y) : |
| 134 | (Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.blowup I hI hb hp hs hbl tail).EtaleComparison (Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.blowup C hC hc hpC hsC hblC rest) q r ↔ |
| 135 | Etale q ∧ q ≫ f = h ∧ J.comap q = L ∧ ∃ he : I.comap q = C, |
| 136 | tail.EtaleComparison rest (GlobalBlowup.SpecifiedMap.Construction.globalBlowupMapTo q I C he hI hC) r := Iff.rfl |
| 137 | |
| 138 | end |
| 139 | |
| 140 | section |
| 141 | |
| 142 | /-! Separate base and induction steps for factorization of actual program comparisons. -/ |
| 143 | |
| 144 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 145 | |
| 146 | def Smooth.ControlPrefix.Construction.SmoothControlPrefix.ComparisonFactorization |
| 147 | {b : ℕ} {X Y : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 148 | {J : X.IdealSheafData} {K : Y.IdealSheafData} (P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f J Y g K) : Prop := |
| 149 | ∀ {V W S T : Scheme} {v : V ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {w : W ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 150 | {s : S ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {t : T ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 151 | {L : V.IdealSheafData} {M : W.IdealSheafData} {A : S.IdealSheafData} {B : T.IdealSheafData} |
| 152 | (Q : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b V v L W w M) (R : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b S s A T t B) |
| 153 | (j : V ⟶ X) (r : W ⟶ Y) (q : S ⟶ X) (u : T ⟶ Y), |
| 154 | P.EtaleComparison Q j r → P.EtaleComparison R q u → |
| 155 | ∀ (a : S ⟶ V) [Etale a], a ≫ j = q → ∃ z : T ⟶ W, Q.EtaleComparison R a z |
| 156 | |
| 157 | theorem Smooth.ControlPrefix.Construction.SmoothControlPrefix.comparisonFactorization_stop {b : ℕ} {X : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} [Smooth f] |
| 158 | {J : X.IdealSheafData} : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.ComparisonFactorization (.stop : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f J X f J) := by |
| 159 | intro V W S T v w s t L M A B Q R j r q u hQ hR a _ hfactor |
| 160 | subst q |
| 161 | cases Q with |
| 162 | | blowup => exact False.elim hQ |
| 163 | | stop => |
| 164 | cases R with |
| 165 | | blowup => exact False.elim hR |
| 166 | | stop => |
| 167 | refine ⟨a, inferInstance, ?_, ?_, rfl⟩ |
| 168 | · rw [← hQ.2.1, ← Category.assoc] |
| 169 | exact hR.2.1 |
| 170 | · rw [← hQ.2.2.1, ← Scheme.IdealSheafData.comap_comp] |
| 171 | exact hR.2.2.1 |
| 172 | |
| 173 | theorem Smooth.ControlPrefix.Construction.SmoothControlPrefix.globalBlowupMapTo_factor |
| 174 | {X V S : Scheme} [IsIntegral X] [IsLocallyNoetherian X] |
| 175 | [IsIntegral V] [IsLocallyNoetherian V] [IsIntegral S] [IsLocallyNoetherian S] |
| 176 | (j : V ⟶ X) (a : S ⟶ V) (q : S ⟶ X) (hfactor : a ≫ j = q) |
| 177 | (I : X.IdealSheafData) (C : V.IdealSheafData) (E : S.IdealSheafData) |
| 178 | (heC : I.comap j = C) (he : C.comap a = E) (heE : I.comap q = E) |
| 179 | (hI : I ≠ ⊥) (hC : C ≠ ⊥) (hE : E ≠ ⊥) : |
| 180 | GlobalBlowup.SpecifiedMap.Construction.globalBlowupMapTo a C E he hC hE ≫ GlobalBlowup.SpecifiedMap.Construction.globalBlowupMapTo j I C heC hI hC = |
| 181 | GlobalBlowup.SpecifiedMap.Construction.globalBlowupMapTo q I E heE hI hE := by |
| 182 | subst q |
| 183 | exact GlobalBlowup.MapComposition.Construction.globalBlowupMapTo_comp j a I C E heC he heE hI hC hE |
| 184 | |
| 185 | end |
| 186 | |
| 187 | /-! A separately checked tail comparison supplies the comparison of the two displayed first steps. -/ |
| 188 | |
| 189 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 190 | |
| 191 | theorem Smooth.ControlPrefix.Construction.SmoothControlPrefix.comparisonFactorization_of_tail |
| 192 | {b : ℕ} {V S W T : Scheme} [IsIntegral V] [IsLocallyNoetherian V] [IsIntegral S] [IsLocallyNoetherian S] |
| 193 | {v : V ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {s : S ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {w : W ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {t : T ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 194 | {L : V.IdealSheafData} {A : S.IdealSheafData} {M : W.IdealSheafData} {B : T.IdealSheafData} |
| 195 | (C : V.IdealSheafData) (hC : C ≠ ⊥) (hbC : 0 < b) (hpC : L ≤ C ^ b) |
| 196 | (hsC : Smooth (C.subschemeι ≫ v)) (hblC : Smooth (GlobalBlowup.Data.Construction.globalBlowupToBase C hC ≫ v)) |
| 197 | (rest : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b (GlobalBlowup.Data.Construction.globalBlowup C hC) (GlobalBlowup.Data.Construction.globalBlowupToBase C hC ≫ v) |
| 198 | (GlobalControlled.Ideal.Construction.globalBlowupControlledIdeal C L hC b) W w M) |
| 199 | (E : S.IdealSheafData) (hE : E ≠ ⊥) (hbE : 0 < b) (hpE : A ≤ E ^ b) |
| 200 | (hsE : Smooth (E.subschemeι ≫ s)) (hblE : Smooth (GlobalBlowup.Data.Construction.globalBlowupToBase E hE ≫ s)) |
| 201 | (last : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b (GlobalBlowup.Data.Construction.globalBlowup E hE) (GlobalBlowup.Data.Construction.globalBlowupToBase E hE ≫ s) |
| 202 | (GlobalControlled.Ideal.Construction.globalBlowupControlledIdeal E A hE b) T t B) |
| 203 | (a : S ⟶ V) [Etale a] (hf : a ≫ v = s) (hJ : L.comap a = A) (he : C.comap a = E) |
| 204 | (hnext : ∃ z : T ⟶ W, rest.EtaleComparison last (GlobalBlowup.SpecifiedMap.Construction.globalBlowupMapTo a C E he hC hE) z) : |
| 205 | ∃ z : T ⟶ W, (Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.blowup C hC hbC hpC hsC hblC rest).EtaleComparison |
| 206 | (Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.blowup E hE hbE hpE hsE hblE last) a z := by |
| 207 | exact ⟨Classical.choose hnext, |
| 208 | (Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.etaleComparison_blowup_iff C hC hbC hpC hsC hblC rest E hE hbE hpE hsE hblE last |
| 209 | a (Classical.choose hnext)).mpr ⟨inferInstance, hf, hJ, he, Classical.choose_spec hnext⟩⟩ |
| 210 | |
| 211 | end |
| 212 | |
| 213 | end OAI.AlgebraicGeometry.Resolution.Blowups |