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.ChartLift |
| 2 | import Mathlib.RingTheory.Flat.Stability |
| 3 | import Mathlib.RingTheory.Flat.TorsionFree |
| 4 | import Mathlib.RingTheory.TensorProduct.Maps |
| 5 | import Mathlib.Algebra.Category.Ring.Constructions |
| 6 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 7 | |
| 8 | /-! # Chart Flat Base Change -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.ChartFlatBaseChange.Construction |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Flat base change of actual affine blowup chart rings. -/ |
| 15 | |
| 16 | open TensorProduct _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {R S : Type u} [CommRing R] [CommRing S] [Algebra R S] |
| 21 | |
| 22 | /-- Flat scalar extension preserves regular elements. -/ |
| 23 | theorem flat_algebraMap_regular [Module.Flat R S] (c : R) (hc : IsRegular c) : |
| 24 | IsRegular (algebraMap R S c) := by |
| 25 | have hs : IsSMulRegular S c := Module.Flat.isSMulRegular_of_isRegular hc |
| 26 | have hl : IsLeftRegular (algebraMap R S c) := by |
| 27 | change Function.Injective (fun x : S => algebraMap R S c * x) |
| 28 | simpa only [IsSMulRegular, Algebra.smul_def] using hs |
| 29 | exact ⟨hl, fun x y h => hl (by simpa only [mul_comm _ (algebraMap R S c)] using h)⟩ |
| 30 | |
| 31 | /-- The coefficient algebra structure used for tensoring an affine blowup chart. -/ |
| 32 | abbrev blowupChartAlgebra {A : Type u} [CommRing A] (I : Ideal A) (a : I) : |
| 33 | Algebra A (Blowup.Charts.Construction.blowupChart I a) := (Blowup.Charts.Construction.blowupChartConstants I a).toAlgebra |
| 34 | |
| 35 | attribute [local instance] blowupChartAlgebra |
| 36 | |
| 37 | variable (I : Ideal R) (a : I) |
| 38 | |
| 39 | abbrev blowupChartTensor := Blowup.Charts.Construction.blowupChart I a ⊗[R] S |
| 40 | |
| 41 | def blowupChartTensorLeft : Blowup.Charts.Construction.blowupChart I a →+* blowupChartTensor (S := S) I a := |
| 42 | Algebra.TensorProduct.includeLeftRingHom |
| 43 | |
| 44 | def blowupChartTensorRight : S →+* blowupChartTensor (S := S) I a := |
| 45 | Algebra.TensorProduct.includeRight.toRingHom |
| 46 | |
| 47 | theorem blowupChartTensor_compat (r : R) : |
| 48 | blowupChartTensorLeft (S := S) I a (Blowup.Charts.Construction.blowupChartConstants I a r) = |
| 49 | blowupChartTensorRight (S := S) I a (algebraMap R S r) := by |
| 50 | exact congrArg (fun f : R →+* blowupChartTensor (S := S) I a => f r) |
| 51 | (Algebra.TensorProduct.includeLeftRingHom_comp_algebraMap |
| 52 | (R := R) (A := Blowup.Charts.Construction.blowupChart I a) (B := S)) |
| 53 | |
| 54 | abbrev blowupBaseChangeElement : I.map (algebraMap R S) := |
| 55 | ⟨algebraMap R S a.val, Ideal.mem_map_of_mem (algebraMap R S) a.property⟩ |
| 56 | |
| 57 | abbrev blowupBaseChangedChart := |
| 58 | Blowup.Charts.Construction.blowupChart (I.map (algebraMap R S)) (blowupBaseChangeElement (S := S) I a) |
| 59 | |
| 60 | theorem blowupChartTensor_center : |
| 61 | (I.map (algebraMap R S)).map (blowupChartTensorRight (S := S) I a) = |
| 62 | Ideal.span {blowupChartTensorRight (S := S) I a (algebraMap R S a.val)} := by |
| 63 | have he : (blowupChartTensorRight (S := S) I a).comp (algebraMap R S) = |
| 64 | (blowupChartTensorLeft (S := S) I a).comp (Blowup.Charts.Construction.blowupChartConstants I a) := by |
| 65 | apply RingHom.ext |
| 66 | intro r |
| 67 | exact (blowupChartTensor_compat I a r).symm |
| 68 | rw [Ideal.map_map, he, ← Ideal.map_map, ExceptionalIdeal.Construction.blowupChart_extendedIdeal, Ideal.map_span, |
| 69 | Set.image_singleton, blowupChartTensor_compat] |
| 70 | |
| 71 | theorem blowupChartTensor_parameter_regular [Module.Flat R S] : |
| 72 | IsRegular (blowupChartTensorRight (S := S) I a (algebraMap R S a.val)) := by |
| 73 | have h := flat_algebraMap_regular (R := Blowup.Charts.Construction.blowupChart I a) (S := blowupChartTensor (S := S) I a) |
| 74 | (Blowup.Charts.Construction.blowupChartConstants I a a.val) (ExceptionalIdeal.Construction.blowupChart_exceptionalParameter_regular I a) |
| 75 | change IsRegular (blowupChartTensorLeft (S := S) I a (Blowup.Charts.Construction.blowupChartConstants I a a.val)) at h |
| 76 | rwa [blowupChartTensor_compat] at h |
| 77 | |
| 78 | /-- Flatness makes the chosen parameter regular on the tensor product, |
| 79 | so the chart universal property gives the reverse comparison map. -/ |
| 80 | def blowupChartToTensor [Module.Flat R S] : |
| 81 | blowupBaseChangedChart (S := S) I a →+* blowupChartTensor (S := S) I a := |
| 82 | ChartLift.Construction.blowupChartLift (I.map (algebraMap R S)) (blowupBaseChangeElement I a) |
| 83 | (blowupChartTensorRight (S := S) I a) (blowupChartTensor_center I a) |
| 84 | (blowupChartTensor_parameter_regular I a) |
| 85 | |
| 86 | theorem blowupChartToTensor_constants [Module.Flat R S] (s : S) : |
| 87 | blowupChartToTensor I a |
| 88 | (Blowup.Charts.Construction.blowupChartConstants (I.map (algebraMap R S)) (blowupBaseChangeElement I a) s) = |
| 89 | blowupChartTensorRight (S := S) I a s := |
| 90 | ChartLift.Construction.blowupChartLift_constants (I.map (algebraMap R S)) (blowupBaseChangeElement I a) |
| 91 | (blowupChartTensorRight (S := S) I a) (blowupChartTensor_center I a) |
| 92 | (blowupChartTensor_parameter_regular I a) s |
| 93 | |
| 94 | local instance : Algebra R (blowupBaseChangedChart (S := S) I a) := |
| 95 | ((Blowup.Charts.Construction.blowupChartConstants (I.map (algebraMap R S)) (blowupBaseChangeElement I a)).comp |
| 96 | (algebraMap R S)).toAlgebra |
| 97 | |
| 98 | /-- The coefficient-extension chart map as a base-algebra homomorphism. -/ |
| 99 | def blowupTensorChartMap : Blowup.Charts.Construction.blowupChart I a →ₐ[R] blowupBaseChangedChart (S := S) I a where |
| 100 | toRingHom := ChartLift.Construction.blowupChartMap I (algebraMap R S) a |
| 101 | commutes' r := ChartLift.Construction.blowupChartMap_constants I (algebraMap R S) a r |
| 102 | |
| 103 | def blowupBaseChangeConstants : S →ₐ[R] blowupBaseChangedChart (S := S) I a where |
| 104 | toRingHom := Blowup.Charts.Construction.blowupChartConstants (I.map (algebraMap R S)) (blowupBaseChangeElement I a) |
| 105 | commutes' _ := rfl |
| 106 | |
| 107 | /-- The forward comparison is the tensor product's universal map. -/ |
| 108 | def blowupTensorToChart : blowupChartTensor (S := S) I a →+* blowupBaseChangedChart (S := S) I a := |
| 109 | (Algebra.TensorProduct.lift (blowupTensorChartMap (S := S) I a) |
| 110 | (blowupBaseChangeConstants (S := S) I a) |
| 111 | (fun x y => mul_comm (blowupTensorChartMap (S := S) I a x) |
| 112 | (blowupBaseChangeConstants (S := S) I a y))).toRingHom |
| 113 | |
| 114 | theorem blowupTensorToChart_left (x : Blowup.Charts.Construction.blowupChart I a) : |
| 115 | blowupTensorToChart (S := S) I a (blowupChartTensorLeft (S := S) I a x) = |
| 116 | ChartLift.Construction.blowupChartMap I (algebraMap R S) a x := by |
| 117 | simp [blowupTensorToChart, blowupChartTensorLeft, Algebra.TensorProduct.lift_tmul, |
| 118 | blowupTensorChartMap] |
| 119 | exact mul_one (ChartLift.Construction.blowupChartMap I (algebraMap R S) a x) |
| 120 | |
| 121 | theorem blowupTensorToChart_right (s : S) : |
| 122 | blowupTensorToChart (S := S) I a (blowupChartTensorRight (S := S) I a s) = |
| 123 | Blowup.Charts.Construction.blowupChartConstants (I.map (algebraMap R S)) (blowupBaseChangeElement I a) s := by |
| 124 | simp [blowupTensorToChart, blowupChartTensorRight, Algebra.TensorProduct.lift_tmul, |
| 125 | blowupBaseChangeConstants] |
| 126 | exact one_mul (Blowup.Charts.Construction.blowupChartConstants (I.map (algebraMap R S)) (blowupBaseChangeElement I a) s) |
| 127 | |
| 128 | theorem blowupChartToTensor_chartMap [Module.Flat R S] : |
| 129 | (blowupChartToTensor (S := S) I a).comp (ChartLift.Construction.blowupChartMap I (algebraMap R S) a) = |
| 130 | blowupChartTensorLeft (S := S) I a := by |
| 131 | apply ChartLift.Construction.blowupChart_hom_ext I a |
| 132 | ((blowupChartTensorRight (S := S) I a).comp (algebraMap R S)) |
| 133 | (blowupChartTensor_parameter_regular I a) |
| 134 | · intro r |
| 135 | change blowupChartToTensor I a (ChartLift.Construction.blowupChartMap I (algebraMap R S) a |
| 136 | (Blowup.Charts.Construction.blowupChartConstants I a r)) = _ |
| 137 | rw [ChartLift.Construction.blowupChartMap_constants] |
| 138 | exact blowupChartToTensor_constants I a (algebraMap R S r) |
| 139 | · intro r |
| 140 | exact blowupChartTensor_compat I a r |
| 141 | |
| 142 | theorem blowupChartToTensor_tensorToChart [Module.Flat R S] : |
| 143 | (blowupChartToTensor (S := S) I a).comp (blowupTensorToChart (S := S) I a) = |
| 144 | RingHom.id (blowupChartTensor (S := S) I a) := by |
| 145 | apply Algebra.TensorProduct.ringHom_ext |
| 146 | · apply RingHom.ext |
| 147 | intro x |
| 148 | change blowupChartToTensor I a |
| 149 | (blowupTensorToChart I a (blowupChartTensorLeft (S := S) I a x)) = |
| 150 | blowupChartTensorLeft (S := S) I a x |
| 151 | rw [blowupTensorToChart_left] |
| 152 | exact congrArg (fun f : Blowup.Charts.Construction.blowupChart I a →+* blowupChartTensor (S := S) I a => f x) |
| 153 | (blowupChartToTensor_chartMap I a) |
| 154 | · apply RingHom.ext |
| 155 | intro s |
| 156 | change blowupChartToTensor I a |
| 157 | (blowupTensorToChart I a (blowupChartTensorRight (S := S) I a s)) = |
| 158 | blowupChartTensorRight (S := S) I a s |
| 159 | rw [blowupTensorToChart_right, blowupChartToTensor_constants] |
| 160 | |
| 161 | theorem blowupTensorToChart_chartToTensor [Module.Flat R S] : |
| 162 | (blowupTensorToChart (S := S) I a).comp (blowupChartToTensor (S := S) I a) = |
| 163 | RingHom.id (blowupBaseChangedChart (S := S) I a) := by |
| 164 | apply ChartLift.Construction.blowupChart_hom_ext (I.map (algebraMap R S)) (blowupBaseChangeElement I a) |
| 165 | (Blowup.Charts.Construction.blowupChartConstants (I.map (algebraMap R S)) (blowupBaseChangeElement I a)) |
| 166 | (ExceptionalIdeal.Construction.blowupChart_exceptionalParameter_regular (I.map (algebraMap R S)) (blowupBaseChangeElement I a)) |
| 167 | · intro s |
| 168 | change blowupTensorToChart I a (blowupChartToTensor I a |
| 169 | (Blowup.Charts.Construction.blowupChartConstants (I.map (algebraMap R S)) (blowupBaseChangeElement I a) s)) = _ |
| 170 | rw [blowupChartToTensor_constants, blowupTensorToChart_right] |
| 171 | · intro s |
| 172 | rfl |
| 173 | |
| 174 | /-- Flat base change of an actual blowup chart is its tensor product with |
| 175 | the new base ring. -/ |
| 176 | def blowupChartFlatBaseChangeEquiv [Module.Flat R S] : |
| 177 | blowupChartTensor (S := S) I a ≃+* blowupBaseChangedChart (S := S) I a := |
| 178 | RingEquiv.ofRingHom (blowupTensorToChart I a) (blowupChartToTensor I a) |
| 179 | (blowupTensorToChart_chartToTensor I a) (blowupChartToTensor_tensorToChart I a) |
| 180 | |
| 181 | /-- The coefficient-extension square of actual affine chart schemes is cartesian. -/ |
| 182 | theorem blowupChart_flat_isPullback [Module.Flat R S] : |
| 183 | IsPullback |
| 184 | (Spec.map (CommRingCat.ofHom (ChartLift.Construction.blowupChartMap I (algebraMap R S) a))) |
| 185 | (Spec.map (CommRingCat.ofHom (Blowup.Charts.Construction.blowupChartConstants (I.map (algebraMap R S)) |
| 186 | (blowupBaseChangeElement I a)))) |
| 187 | (Spec.map (CommRingCat.ofHom (Blowup.Charts.Construction.blowupChartConstants I a))) |
| 188 | (Spec.map (CommRingCat.ofHom (algebraMap R S))) := by |
| 189 | apply isPullback_SpecMap_of_isPushout |
| 190 | apply (CommRingCat.isPushout_tensorProduct R (Blowup.Charts.Construction.blowupChart I a) S).of_iso |
| 191 | (Iso.refl _) (Iso.refl _) (Iso.refl _) (blowupChartFlatBaseChangeEquiv (S := S) I a).toCommRingCatIso |
| 192 | · simp |
| 193 | · simp |
| 194 | · apply CommRingCat.hom_ext |
| 195 | apply RingHom.ext |
| 196 | intro x |
| 197 | exact blowupTensorToChart_left I a x |
| 198 | · apply CommRingCat.hom_ext |
| 199 | apply RingHom.ext |
| 200 | intro s |
| 201 | exact blowupTensorToChart_right I a s |
| 202 | |
| 203 | end |
| 204 | |
| 205 | end OAI.AlgebraicGeometry.Resolution.Blowups.ChartFlatBaseChange.Construction |