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.ReesGrading |
| 2 | |
| 3 | /-! # Charts -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.Charts.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Affine chart maps for the Rees blowup used in Blowups. -/ |
| 10 | |
| 11 | open _root_.Polynomial _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {R : Type u} [CommRing R] (I : Ideal R) |
| 16 | |
| 17 | /-- The Rees-algebra element `a t` associated to an element of the ideal. -/ |
| 18 | def reesGenerator (a : I) : reesAlgebra I := |
| 19 | ⟨monomial 1 a.val, reesAlgebra.monomial_mem.mpr (by simp)⟩ |
| 20 | |
| 21 | theorem reesGenerator_mem (a : I) : reesGenerator I a ∈ ReesGrading.Construction.reesGrade I 1 := |
| 22 | ReesGrading.Construction.monomial_mem_reesGrade I 1 a.val (by simp) |
| 23 | |
| 24 | /-- Evaluation at `t = 1` on the actual Rees algebra. -/ |
| 25 | def reesEvalOne : reesAlgebra I →+* R := |
| 26 | (Polynomial.evalRingHom 1).comp (reesAlgebra I).val.toRingHom |
| 27 | |
| 28 | @[simp] |
| 29 | theorem reesEvalOne_generator (a : I) : reesEvalOne I (reesGenerator I a) = a := by |
| 30 | simp [reesEvalOne, reesGenerator] |
| 31 | |
| 32 | theorem reesEvalOne_homogeneous (n : ℕ) (p : reesAlgebra I) |
| 33 | (hp : p ∈ ReesGrading.Construction.reesGrade I n) : reesEvalOne I p = p.val.coeff n := by |
| 34 | change Polynomial.eval 1 p.val = _ |
| 35 | rw [ReesGrading.Construction.reesGrade_eq_monomial I n p hp] |
| 36 | simp |
| 37 | |
| 38 | theorem reesEvalOne_powers_le (a : I) : |
| 39 | Submonoid.powers (reesGenerator I a) ≤ (Submonoid.powers a.val).comap (reesEvalOne I) := by |
| 40 | rintro _ ⟨n, rfl⟩ |
| 41 | change reesEvalOne I ((reesGenerator I a) ^ n) ∈ Submonoid.powers a.val |
| 42 | simp only [map_pow, reesEvalOne_generator] |
| 43 | exact ⟨n, rfl⟩ |
| 44 | |
| 45 | /-- The affine chart `D₊(a t)` in the Rees projective spectrum. -/ |
| 46 | abbrev blowupChart (a : I) := |
| 47 | HomogeneousLocalization.Away (ReesGrading.Construction.reesGrade I) (reesGenerator I a) |
| 48 | |
| 49 | /-- The coefficient-fraction map from the chart to `R[1/a]`. -/ |
| 50 | noncomputable def blowupChartToLocalization (a : I) : |
| 51 | blowupChart I a →+* Localization.Away a.val := |
| 52 | (IsLocalization.map (Localization.Away a.val) (reesEvalOne I) (reesEvalOne_powers_le I a)).comp |
| 53 | (algebraMap (blowupChart I a) (Localization.Away (reesGenerator I a))) |
| 54 | |
| 55 | /-- A homogeneous fraction in the Rees chart maps to the corresponding |
| 56 | coefficient fraction in the localization of the base ring. -/ |
| 57 | theorem blowupChartToLocalization_mk (a : I) (n : ℕ) |
| 58 | (p : reesAlgebra I) (hp : p ∈ ReesGrading.Construction.reesGrade I (n • 1)) : |
| 59 | blowupChartToLocalization I a |
| 60 | (HomogeneousLocalization.Away.mk (ReesGrading.Construction.reesGrade I) (reesGenerator_mem I a) n p hp) = |
| 61 | Localization.mk (p.val.coeff n) (⟨a.val ^ n, ⟨n, rfl⟩⟩ : Submonoid.powers a.val) := by |
| 62 | change IsLocalization.map (Localization.Away a.val) (reesEvalOne I) |
| 63 | (reesEvalOne_powers_le I a) |
| 64 | (Localization.mk p |
| 65 | (⟨(reesGenerator I a) ^ n, ⟨n, rfl⟩⟩ : Submonoid.powers (reesGenerator I a))) = _ |
| 66 | simp only [Localization.mk_eq_mk', IsLocalization.map_mk'] |
| 67 | congr 1 |
| 68 | · exact reesEvalOne_homogeneous I n p (by simpa using hp) |
| 69 | · apply Subtype.ext |
| 70 | simp |
| 71 | |
| 72 | /-- The coefficient-fraction map identifies the chart with a subring of |
| 73 | `R[1/a]`; no domain assumption on `R` is needed. -/ |
| 74 | theorem blowupChartToLocalization_injective (a : I) : |
| 75 | Function.Injective (blowupChartToLocalization I a) := by |
| 76 | intro x y hxy |
| 77 | obtain ⟨n, p, hp, rfl⟩ := |
| 78 | HomogeneousLocalization.Away.mk_surjective (ReesGrading.Construction.reesGrade I) (reesGenerator_mem I a) x |
| 79 | obtain ⟨m, q, hq, rfl⟩ := |
| 80 | HomogeneousLocalization.Away.mk_surjective (ReesGrading.Construction.reesGrade I) (reesGenerator_mem I a) y |
| 81 | rw [blowupChartToLocalization_mk, blowupChartToLocalization_mk, |
| 82 | Localization.mk_eq_mk_iff, Localization.r_iff_exists] at hxy |
| 83 | obtain ⟨⟨_, ⟨k, rfl⟩⟩, hk⟩ := hxy |
| 84 | change a.val ^ k * (a.val ^ m * p.val.coeff n) = |
| 85 | a.val ^ k * (a.val ^ n * q.val.coeff m) at hk |
| 86 | apply HomogeneousLocalization.val_injective |
| 87 | rw [HomogeneousLocalization.Away.val_mk, HomogeneousLocalization.Away.val_mk, |
| 88 | Localization.mk_eq_mk_iff, Localization.r_iff_exists] |
| 89 | refine ⟨⟨(reesGenerator I a) ^ k, ⟨k, rfl⟩⟩, ?_⟩ |
| 90 | apply Subtype.ext |
| 91 | change (monomial 1 a.val) ^ k * ((monomial 1 a.val) ^ m * p.val) = |
| 92 | (monomial 1 a.val) ^ k * ((monomial 1 a.val) ^ n * q.val) |
| 93 | rw [ReesGrading.Construction.reesGrade_eq_monomial I n p (by simpa using hp), |
| 94 | ReesGrading.Construction.reesGrade_eq_monomial I m q (by simpa using hq)] |
| 95 | simp only [monomial_pow, one_mul, monomial_mul_monomial] |
| 96 | rw [Nat.add_comm m n, hk] |
| 97 | |
| 98 | /-- The fraction `b / aⁿ` in the localization of the base ring. -/ |
| 99 | def baseFraction (a : R) (n : ℕ) (b : R) : Localization.Away a := |
| 100 | Localization.mk b (⟨a ^ n, ⟨n, rfl⟩⟩ : Submonoid.powers a) |
| 101 | |
| 102 | @[simp] |
| 103 | theorem baseFraction_zero (a b : R) : |
| 104 | baseFraction a 0 b = algebraMap R (Localization.Away a) b := by |
| 105 | have hden : (⟨a ^ 0, ⟨0, rfl⟩⟩ : Submonoid.powers a) = 1 := |
| 106 | Subtype.ext (pow_zero a) |
| 107 | unfold baseFraction |
| 108 | rw [hden] |
| 109 | rfl |
| 110 | |
| 111 | theorem baseFraction_add (a : R) (n : ℕ) (b c : R) : |
| 112 | baseFraction a n (b + c) = baseFraction a n b + baseFraction a n c := |
| 113 | (Localization.add_mk_self b _ c).symm |
| 114 | |
| 115 | theorem baseFraction_mul (a : R) (n m : ℕ) (b c : R) : |
| 116 | baseFraction a n b * baseFraction a m c = baseFraction a (n + m) (b * c) := by |
| 117 | simp only [baseFraction, Localization.mk_mul] |
| 118 | congr 1 |
| 119 | apply Subtype.ext |
| 120 | exact (pow_add a n m).symm |
| 121 | |
| 122 | /-- The fractions represented by an affine blowup chart are precisely those |
| 123 | whose degree-`n` numerator lies in the `n`th power of the center ideal. -/ |
| 124 | theorem mem_range_blowupChartToLocalization_iff (a : I) (z : Localization.Away a.val) : |
| 125 | z ∈ Set.range (blowupChartToLocalization I a) ↔ |
| 126 | ∃ (n : ℕ) (b : R), b ∈ I ^ n ∧ baseFraction a.val n b = z := by |
| 127 | constructor |
| 128 | · rintro ⟨x, rfl⟩ |
| 129 | obtain ⟨n, p, hp, rfl⟩ := |
| 130 | HomogeneousLocalization.Away.mk_surjective (ReesGrading.Construction.reesGrade I) (reesGenerator_mem I a) x |
| 131 | refine ⟨n, p.val.coeff n, p.property n, ?_⟩ |
| 132 | exact (blowupChartToLocalization_mk I a n p hp).symm |
| 133 | · rintro ⟨n, b, hb, rfl⟩ |
| 134 | let p : reesAlgebra I := ⟨monomial n b, reesAlgebra.monomial_mem.mpr hb⟩ |
| 135 | have hp : p ∈ ReesGrading.Construction.reesGrade I (n • 1) := by |
| 136 | simpa using ReesGrading.Construction.monomial_mem_reesGrade I n b hb |
| 137 | refine ⟨HomogeneousLocalization.Away.mk (ReesGrading.Construction.reesGrade I) (reesGenerator_mem I a) n p hp, ?_⟩ |
| 138 | rw [blowupChartToLocalization_mk] |
| 139 | simp [p, baseFraction] |
| 140 | |
| 141 | /-- The chart, viewed as an actual subalgebra of the localized base ring. -/ |
| 142 | def blowupChartImage (a : I) : Subalgebra R (Localization.Away a.val) where |
| 143 | carrier := Set.range (blowupChartToLocalization I a) |
| 144 | zero_mem' := ⟨0, map_zero _⟩ |
| 145 | one_mem' := ⟨1, map_one _⟩ |
| 146 | add_mem' := by |
| 147 | rintro _ _ ⟨x, rfl⟩ ⟨y, rfl⟩ |
| 148 | exact ⟨x + y, map_add _ x y⟩ |
| 149 | mul_mem' := by |
| 150 | rintro _ _ ⟨x, rfl⟩ ⟨y, rfl⟩ |
| 151 | exact ⟨x * y, map_mul _ x y⟩ |
| 152 | algebraMap_mem' r := by |
| 153 | apply (mem_range_blowupChartToLocalization_iff I a _).mpr |
| 154 | exact ⟨0, r, by simp, baseFraction_zero a.val r⟩ |
| 155 | |
| 156 | /-- The usual affine-chart description `R[I/a]` follows from the actual |
| 157 | homogeneous localization, including for base rings with zero divisors. -/ |
| 158 | theorem blowupChartImage_eq_adjoin (a : I) : |
| 159 | blowupChartImage I a = |
| 160 | Algebra.adjoin R (Set.range (fun b : I => baseFraction a.val 1 b.val)) := by |
| 161 | apply le_antisymm |
| 162 | · intro z hz |
| 163 | obtain ⟨n, b, hb, rfl⟩ := (mem_range_blowupChartToLocalization_iff I a z).mp hz |
| 164 | clear hz |
| 165 | induction n generalizing b with |
| 166 | | zero => |
| 167 | rw [baseFraction_zero] |
| 168 | exact Subalgebra.algebraMap_mem _ b |
| 169 | | succ n ih => |
| 170 | rw [pow_succ'] at hb |
| 171 | refine Submodule.smul_induction_on hb ?_ ?_ |
| 172 | · intro r hr s hs |
| 173 | change baseFraction a.val (n + 1) (r * s) ∈ _ |
| 174 | rw [Nat.add_comm n 1, ← baseFraction_mul] |
| 175 | exact Subalgebra.mul_mem _ (Algebra.subset_adjoin ⟨⟨r, hr⟩, rfl⟩) (ih s hs) |
| 176 | · intro r s hr hs |
| 177 | rw [baseFraction_add] |
| 178 | exact Subalgebra.add_mem _ hr hs |
| 179 | · apply Algebra.adjoin_le |
| 180 | rintro _ ⟨b, rfl⟩ |
| 181 | apply (mem_range_blowupChartToLocalization_iff I a _).mpr |
| 182 | exact ⟨1, b.val, by simp, rfl⟩ |
| 183 | |
| 184 | /-- The elements `a t`, for `a ∈ I`, generate the Rees algebra over `R`. -/ |
| 185 | theorem reesGenerators_adjoin : |
| 186 | Algebra.adjoin R (Set.range (reesGenerator I)) = ⊤ := by |
| 187 | apply Subalgebra.map_injective (f := (reesAlgebra I).val) Subtype.val_injective |
| 188 | rw [AlgHom.map_adjoin, Algebra.map_top, Subalgebra.range_val] |
| 189 | refine Eq.trans ?_ (adjoin_monomial_eq_reesAlgebra I) |
| 190 | congr 1 |
| 191 | ext p |
| 192 | constructor |
| 193 | · rintro ⟨q, ⟨a, rfl⟩, rfl⟩ |
| 194 | exact ⟨a.val, a.property, rfl⟩ |
| 195 | · rintro ⟨a, ha, rfl⟩ |
| 196 | exact ⟨reesGenerator I ⟨a, ha⟩, ⟨⟨a, ha⟩, rfl⟩, rfl⟩ |
| 197 | |
| 198 | /-- The same generators generate over the degree-zero coefficient ring. -/ |
| 199 | theorem reesGenerators_adjoin_zero : |
| 200 | Algebra.adjoin (ReesGrading.Construction.reesGrade I 0) (Set.range (reesGenerator I)) = ⊤ := by |
| 201 | have hle : Algebra.adjoin R (Set.range (reesGenerator I)) ≤ |
| 202 | (Algebra.adjoin (ReesGrading.Construction.reesGrade I 0) (Set.range (reesGenerator I))).restrictScalars R := |
| 203 | Algebra.adjoin_le (fun _ hx => Algebra.subset_adjoin (R := ReesGrading.Construction.reesGrade I 0) hx) |
| 204 | rw [reesGenerators_adjoin] at hle |
| 205 | apply top_le_iff.mp |
| 206 | intro p _ |
| 207 | exact hle (by trivial) |
| 208 | |
| 209 | /-- The degree-one affine charts cover the actual affine blowup. -/ |
| 210 | theorem affineBlowup_chart_cover : |
| 211 | (⨆ a : I, Proj.basicOpen (ReesGrading.Construction.reesGrade I) (reesGenerator I a)) = ⊤ := |
| 212 | Proj.iSup_basicOpen_eq_top' (ReesGrading.Construction.reesGrade I) (reesGenerator I) |
| 213 | (fun a => ⟨1, reesGenerator_mem I a⟩) (reesGenerators_adjoin_zero I) |
| 214 | |
| 215 | /-- The coefficient-ring morphism of a Rees blowup chart. -/ |
| 216 | def blowupChartConstants (a : I) : R →+* blowupChart I a := |
| 217 | (HomogeneousLocalization.fromZeroRingHom (ReesGrading.Construction.reesGrade I) |
| 218 | (Submonoid.powers (reesGenerator I a))).comp (algebraMap R (ReesGrading.Construction.reesGrade I 0)) |
| 219 | |
| 220 | @[simp] |
| 221 | theorem blowupChartToLocalization_constants (a : I) (r : R) : |
| 222 | blowupChartToLocalization I a (blowupChartConstants I a r) = |
| 223 | algebraMap R (Localization.Away a.val) r := by |
| 224 | change IsLocalization.map (Localization.Away a.val) (reesEvalOne I) |
| 225 | (reesEvalOne_powers_le I a) |
| 226 | (Localization.mk (algebraMap R (reesAlgebra I) r) |
| 227 | (1 : Submonoid.powers (reesGenerator I a))) = _ |
| 228 | rw [Localization.mk_one_eq_algebraMap, IsLocalization.map_eq] |
| 229 | congr 1 |
| 230 | simp [reesEvalOne] |
| 231 | |
| 232 | /-- A chart whose denominator is already a unit fills the whole localization. -/ |
| 233 | theorem blowupChartToLocalization_surjective_of_isUnit (a : I) (ha : IsUnit a.val) : |
| 234 | Function.Surjective (blowupChartToLocalization I a) := by |
| 235 | intro z |
| 236 | let e : R ≃ₐ[R] Localization.Away a.val := |
| 237 | IsLocalization.atUnit R (Localization.Away a.val) a.val ha |
| 238 | obtain ⟨r, hr⟩ := e.surjective z |
| 239 | have he : e r = algebraMap R (Localization.Away a.val) r := by |
| 240 | simpa using e.commutes r |
| 241 | change z ∈ Set.range (blowupChartToLocalization I a) |
| 242 | apply (mem_range_blowupChartToLocalization_iff I a z).mpr |
| 243 | exact ⟨0, r, by simp, (baseFraction_zero a.val r).trans (he.symm.trans hr)⟩ |
| 244 | |
| 245 | /-- When the denominator is a unit, the chart's coefficient map is bijective. -/ |
| 246 | theorem blowupChartConstants_bijective_of_isUnit (a : I) (ha : IsUnit a.val) : |
| 247 | Function.Bijective (blowupChartConstants I a) := by |
| 248 | let e : R ≃ₐ[R] Localization.Away a.val := |
| 249 | IsLocalization.atUnit R (Localization.Away a.val) a.val ha |
| 250 | have he (r : R) : e r = algebraMap R (Localization.Away a.val) r := by |
| 251 | simpa using e.commutes r |
| 252 | constructor |
| 253 | · intro r s hrs |
| 254 | apply e.injective |
| 255 | rw [he, he, ← blowupChartToLocalization_constants, ← blowupChartToLocalization_constants, hrs] |
| 256 | · intro x |
| 257 | obtain ⟨r, hr⟩ := e.surjective (blowupChartToLocalization I a x) |
| 258 | refine ⟨r, blowupChartToLocalization_injective I a ?_⟩ |
| 259 | rw [blowupChartToLocalization_constants, ← he, hr] |
| 260 | |
| 261 | /-- A unit in the center ideal gives a degree-one element dividing every |
| 262 | other degree-one Rees generator. -/ |
| 263 | theorem reesGenerator_dvd_of_isUnit (a : I) (ha : IsUnit a.val) (b : I) : |
| 264 | reesGenerator I a ∣ reesGenerator I b := by |
| 265 | obtain ⟨c, hc⟩ := (ha.dvd : a.val ∣ b.val) |
| 266 | refine ⟨algebraMap R (reesAlgebra I) c, ?_⟩ |
| 267 | apply Subtype.ext |
| 268 | change monomial 1 b.val = monomial 1 a.val * C c |
| 269 | rw [monomial_mul_C, ← hc] |
| 270 | |
| 271 | /-- The chart of a unit covers the whole Rees blowup. -/ |
| 272 | theorem affineBlowup_unit_chart_eq_top (a : I) (ha : IsUnit a.val) : |
| 273 | Proj.basicOpen (ReesGrading.Construction.reesGrade I) (reesGenerator I a) = ⊤ := by |
| 274 | apply top_le_iff.mp |
| 275 | rw [← affineBlowup_chart_cover I] |
| 276 | exact iSup_le (fun b => Proj.basicOpen_mono (ReesGrading.Construction.reesGrade I) (reesGenerator I a) (reesGenerator I b) |
| 277 | (reesGenerator_dvd_of_isUnit I a ha b)) |
| 278 | |
| 279 | /-- The structural morphism of a blowup on a standard chart is induced by |
| 280 | the coefficient-ring map already used to identify that chart. -/ |
| 281 | theorem affineBlowup_chart_structureMap (a : I) : |
| 282 | Proj.awayι (ReesGrading.Construction.reesGrade I) (reesGenerator I a) (reesGenerator_mem I a) (by decide) ≫ |
| 283 | ReesGrading.Construction.affineBlowupToSpec I = Spec.map (CommRingCat.ofHom (blowupChartConstants I a)) := by |
| 284 | rw [ReesGrading.Construction.affineBlowupToSpec, ← Category.assoc, Proj.awayι_toSpecZero, ← Spec.map_comp] |
| 285 | rfl |
| 286 | |
| 287 | /-- Blowing up an ideal containing a unit is an isomorphism. -/ |
| 288 | theorem affineBlowupToSpec_isIso_of_isUnit (a : I) (ha : IsUnit a.val) : |
| 289 | IsIso (ReesGrading.Construction.affineBlowupToSpec I) := by |
| 290 | let j : Spec (.of (blowupChart I a)) ⟶ ReesGrading.Construction.affineBlowup I := |
| 291 | Proj.awayι (ReesGrading.Construction.reesGrade I) (reesGenerator I a) (reesGenerator_mem I a) (by decide) |
| 292 | let : IsOpenImmersion j := by |
| 293 | dsimp [j] |
| 294 | infer_instance |
| 295 | let : IsIso j := isIso_of_isOpenImmersion_of_opensRange_eq_top j (by |
| 296 | dsimp only [j] |
| 297 | rw [Proj.opensRange_awayι] |
| 298 | exact affineBlowup_unit_chart_eq_top I a ha) |
| 299 | let φ : CommRingCat.of R ⟶ CommRingCat.of (blowupChart I a) := |
| 300 | CommRingCat.ofHom (blowupChartConstants I a) |
| 301 | let : IsIso φ := (ConcreteCategory.isIso_iff_bijective φ).mpr |
| 302 | (blowupChartConstants_bijective_of_isUnit I a ha) |
| 303 | have hj : j ≫ ReesGrading.Construction.affineBlowupToSpec I = Spec.map φ := affineBlowup_chart_structureMap I a |
| 304 | let : IsIso (j ≫ ReesGrading.Construction.affineBlowupToSpec I) := by |
| 305 | rw [hj] |
| 306 | infer_instance |
| 307 | exact IsIso.of_isIso_comp_left j (ReesGrading.Construction.affineBlowupToSpec I) |
| 308 | |
| 309 | end |
| 310 | |
| 311 | end OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.Charts.Construction |