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.Divisors.LineBundles.DVRResidueOf |
| 2 | |
| 3 | /-! # DVR Residue Regular Steinberg -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.DVRResidueRegularSteinberg.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! |
| 12 | # LineBundleCycles: residue quotient laws and the proper-component case |
| 13 | |
| 14 | The actual residue quotient is multiplicative in each argument and |
| 15 | inverts when the arguments are exchanged. If the first rational |
| 16 | function is already a local unit, its residue quotient is simply its |
| 17 | residue raised to the second function's actual order. |
| 18 | -/ |
| 19 | |
| 20 | variable {R : Type*} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 21 | variable {K : Type*} [Field K] [Algebra R K] [IsFractionRing R K] |
| 22 | variable (π : R) (hπ : Irreducible π) |
| 23 | |
| 24 | theorem dvrBalancedUnit_swap (g h : Kˣ) : |
| 25 | DVRResidueOf.BundleCycles.dvrBalancedUnit π hπ h g = (DVRResidueOf.BundleCycles.dvrBalancedUnit π hπ g h)⁻¹ := by |
| 26 | unfold DVRResidueOf.BundleCycles.dvrBalancedUnit |
| 27 | rw [inv_div] |
| 28 | |
| 29 | theorem dvrBalancedUnit_mul_left (g h k : Kˣ) : |
| 30 | DVRResidueOf.BundleCycles.dvrBalancedUnit π hπ (g * h) k = DVRResidueOf.BundleCycles.dvrBalancedUnit π hπ g k * DVRResidueOf.BundleCycles.dvrBalancedUnit π hπ h k := by |
| 31 | simp only [DVRResidueOf.BundleCycles.dvrBalancedUnit, DVRResidueOf.BundleCycles.dvrUnitPart_mul, Units.val_mul, |
| 32 | FractionOrderLaws.BundleCycles.fractionFieldOrder_mul R (g : K) (h : K) g.ne_zero h.ne_zero, mul_zpow] |
| 33 | rw [zpow_add] |
| 34 | exact (div_mul_div_comm _ _ _ _).symm |
| 35 | |
| 36 | theorem dvrBalancedUnit_mul_right (g h k : Kˣ) : |
| 37 | DVRResidueOf.BundleCycles.dvrBalancedUnit π hπ g (h * k) = DVRResidueOf.BundleCycles.dvrBalancedUnit π hπ g h * DVRResidueOf.BundleCycles.dvrBalancedUnit π hπ g k := by |
| 38 | simp only [DVRResidueOf.BundleCycles.dvrBalancedUnit, DVRResidueOf.BundleCycles.dvrUnitPart_mul, Units.val_mul, |
| 39 | FractionOrderLaws.BundleCycles.fractionFieldOrder_mul R (h : K) (k : K) h.ne_zero k.ne_zero, mul_zpow] |
| 40 | rw [zpow_add] |
| 41 | exact (div_mul_div_comm _ _ _ _).symm |
| 42 | |
| 43 | theorem dvrResidueQuotient_mul_left (g h k : Kˣ) : |
| 44 | DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ (g * h) k = DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g k * DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ h k := by |
| 45 | unfold DVRResidueOf.BundleCycles.dvrResidueQuotient |
| 46 | rw [dvrBalancedUnit_mul_left, map_mul] |
| 47 | |
| 48 | theorem dvrResidueQuotient_mul_right (g h k : Kˣ) : |
| 49 | DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g (h * k) = DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g h * DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g k := by |
| 50 | unfold DVRResidueOf.BundleCycles.dvrResidueQuotient |
| 51 | rw [dvrBalancedUnit_mul_right, map_mul] |
| 52 | |
| 53 | theorem dvrResidueQuotient_swap (g h : Kˣ) : |
| 54 | DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ h g = (DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g h)⁻¹ := by |
| 55 | unfold DVRResidueOf.BundleCycles.dvrResidueQuotient |
| 56 | rw [dvrBalancedUnit_swap, map_inv] |
| 57 | |
| 58 | theorem fractionFieldOrder_localUnit (u : Rˣ) : SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (algebraMap R K u) = 0 := by |
| 59 | unfold SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder |
| 60 | rw [Ring.ordFrac_of_isUnit u.isUnit] |
| 61 | rfl |
| 62 | |
| 63 | theorem dvrUnitPart_localUnit (u : Rˣ) : |
| 64 | DVRUnit.BundleCycles.dvrUnitPart π hπ (Units.map (algebraMap R K).toMonoidHom u) = u := by |
| 65 | apply DVRUnit.BundleCycles.dvrUnitPart_unique |
| 66 | change algebraMap R K (u : R) = u • (algebraMap R K π) ^ SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (algebraMap R K u) |
| 67 | rw [fractionFieldOrder_localUnit, zpow_zero] |
| 68 | simp only [Units.smul_def, Algebra.smul_def, mul_one] |
| 69 | |
| 70 | /-- On a proper component the residue quotient recovers the ordinary restricted rational function. -/ |
| 71 | theorem dvrResidueQuotient_localUnit (u : Rˣ) (h : Kˣ) : |
| 72 | DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ (Units.map (algebraMap R K).toMonoidHom u) h = |
| 73 | (Units.map (IsLocalRing.residue R).toMonoidHom u) ^ SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (h : K) := by |
| 74 | unfold DVRResidueOf.BundleCycles.dvrResidueQuotient DVRResidueOf.BundleCycles.dvrBalancedUnit |
| 75 | rw [dvrUnitPart_localUnit] |
| 76 | change Units.map (IsLocalRing.residue R).toMonoidHom |
| 77 | (u ^ SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (h : K) / |
| 78 | DVRUnit.BundleCycles.dvrUnitPart π hπ h ^ SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (algebraMap R K u)) = _ |
| 79 | rw [fractionFieldOrder_localUnit, zpow_zero, div_one, map_zpow] |
| 80 | |
| 81 | end |
| 82 | |
| 83 | section |
| 84 | |
| 85 | /-! |
| 86 | # LineBundleCycles: actual regular representatives from nonnegative local order |
| 87 | |
| 88 | The unit/uniformizer factorization constructs a local-ring representative |
| 89 | of a rational function of nonnegative order. Positive order forces its |
| 90 | residue to vanish. These are used in the residue-symbol relations. |
| 91 | -/ |
| 92 | |
| 93 | variable {R : Type*} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 94 | variable {K : Type*} [Field K] [Algebra R K] [IsFractionRing R K] |
| 95 | variable (π : R) (hπ : Irreducible π) |
| 96 | |
| 97 | include π hπ |
| 98 | |
| 99 | theorem dvr_exists_regularRepresentative (g : Kˣ) (hg : 0 ≤ SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K)) : |
| 100 | ∃ a : R, algebraMap R K a = g := by |
| 101 | let n := (SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K)).toNat |
| 102 | have hn : (n : ℤ) = SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K) := Int.toNat_of_nonneg hg |
| 103 | refine ⟨(DVRUnit.BundleCycles.dvrUnitPart π hπ g : R) * π ^ n, ?_⟩ |
| 104 | have hs := DVRUnit.BundleCycles.dvrUnitPart_spec π hπ g |
| 105 | rw [← hn, zpow_natCast] at hs |
| 106 | simpa only [map_mul, map_pow, Units.smul_def, Algebra.smul_def] using hs.symm |
| 107 | |
| 108 | theorem dvr_uniformizer_residue : IsLocalRing.residue R π = 0 := |
| 109 | (IsLocalRing.residue_eq_zero_iff π).mpr hπ.not_isUnit |
| 110 | |
| 111 | theorem dvr_regularRepresentative_residue_zero (g : Kˣ) |
| 112 | (hg : 0 < SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K)) (a : R) (ha : algebraMap R K a = g) : |
| 113 | IsLocalRing.residue R a = 0 := by |
| 114 | let n := (SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K)).toNat |
| 115 | have hn : (n : ℤ) = SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K) := Int.toNat_of_nonneg hg.le |
| 116 | have hnpos : n ≠ 0 := by omega |
| 117 | have he : a = (DVRUnit.BundleCycles.dvrUnitPart π hπ g : R) * π ^ n := by |
| 118 | apply IsFractionRing.injective R K |
| 119 | rw [ha] |
| 120 | have hs := DVRUnit.BundleCycles.dvrUnitPart_spec π hπ g |
| 121 | rw [← hn, zpow_natCast] at hs |
| 122 | simpa only [map_mul, map_pow, Units.smul_def, Algebra.smul_def] using hs |
| 123 | rw [he, map_mul, map_pow, dvr_uniformizer_residue π hπ, zero_pow hnpos, mul_zero] |
| 124 | |
| 125 | theorem dvrUnitPart_of_order_zero (g : Kˣ) (hg : SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K) = 0) : |
| 126 | algebraMap R K (DVRUnit.BundleCycles.dvrUnitPart π hπ g : R) = g := by |
| 127 | have hs := DVRUnit.BundleCycles.dvrUnitPart_spec π hπ g |
| 128 | rw [hg, zpow_zero] at hs |
| 129 | simpa only [Units.smul_def, Algebra.smul_def, mul_one] using hs.symm |
| 130 | |
| 131 | end |
| 132 | |
| 133 | section |
| 134 | |
| 135 | /-! |
| 136 | # LineBundleCycles: the actual residue quotient is a homomorphism in either argument |
| 137 | |
| 138 | This packages the checked product laws so inverses and quotients can be |
| 139 | used directly when reducing common-component symbol identities. |
| 140 | -/ |
| 141 | |
| 142 | variable {R : Type*} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 143 | variable {K : Type*} [Field K] [Algebra R K] [IsFractionRing R K] |
| 144 | variable (π : R) (hπ : Irreducible π) |
| 145 | |
| 146 | theorem dvrResidueQuotient_self (g : Kˣ) : DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g g = 1 := by |
| 147 | unfold DVRResidueOf.BundleCycles.dvrResidueQuotient DVRResidueOf.BundleCycles.dvrBalancedUnit |
| 148 | simp |
| 149 | |
| 150 | theorem dvrResidueQuotient_one_left (g : Kˣ) : DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ 1 g = 1 := by |
| 151 | unfold DVRResidueOf.BundleCycles.dvrResidueQuotient DVRResidueOf.BundleCycles.dvrBalancedUnit |
| 152 | simp only [DVRResidueOf.BundleCycles.dvrUnitPart_one, one_zpow, Units.val_one, FractionOrderLaws.BundleCycles.fractionFieldOrder_one, |
| 153 | zpow_zero, div_one, map_one] |
| 154 | |
| 155 | theorem dvrResidueQuotient_one_right (g : Kˣ) : DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g 1 = 1 := by |
| 156 | rw [dvrResidueQuotient_swap, dvrResidueQuotient_one_left, inv_one] |
| 157 | |
| 158 | def dvrResidueQuotientLeftHom (h : Kˣ) : Kˣ →* (IsLocalRing.ResidueField R)ˣ where |
| 159 | toFun g := DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g h |
| 160 | map_one' := dvrResidueQuotient_one_left π hπ h |
| 161 | map_mul' g k := dvrResidueQuotient_mul_left π hπ g k h |
| 162 | |
| 163 | def dvrResidueQuotientRightHom (g : Kˣ) : Kˣ →* (IsLocalRing.ResidueField R)ˣ where |
| 164 | toFun h := DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g h |
| 165 | map_one' := dvrResidueQuotient_one_right π hπ g |
| 166 | map_mul' h k := dvrResidueQuotient_mul_right π hπ g h k |
| 167 | |
| 168 | theorem dvrResidueQuotient_inv_left (g h : Kˣ) : |
| 169 | DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g⁻¹ h = (DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g h)⁻¹ := |
| 170 | map_inv (dvrResidueQuotientLeftHom π hπ h) g |
| 171 | |
| 172 | theorem dvrResidueQuotient_div_right (g h k : Kˣ) : |
| 173 | DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g (h / k) = |
| 174 | DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g h / DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g k := |
| 175 | map_div (dvrResidueQuotientRightHom π hπ g) h k |
| 176 | |
| 177 | end |
| 178 | |
| 179 | section |
| 180 | |
| 181 | /-! |
| 182 | # LineBundleCycles: the Steinberg residue identity for actual regular representatives |
| 183 | |
| 184 | If two nonzero regular functions add to one, one is a local unit. Their |
| 185 | actual residue quotient is one, by reducing the equation in the residue |
| 186 | field. This is the regular case of the symbol relation used in reciprocity. |
| 187 | -/ |
| 188 | |
| 189 | variable {R : Type*} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 190 | variable {K : Type*} [Field K] [Algebra R K] [IsFractionRing R K] |
| 191 | variable (π : R) (hπ : Irreducible π) |
| 192 | |
| 193 | theorem dvrResidueQuotient_unit_add_one (u : Rˣ) (a : R) (h : Kˣ) |
| 194 | (ha : algebraMap R K a = h) (hsum : (u : R) + a = 1) : |
| 195 | DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ (Units.map (algebraMap R K).toMonoidHom u) h = 1 := by |
| 196 | rw [dvrResidueQuotient_localUnit] |
| 197 | by_cases hu : IsUnit a |
| 198 | · obtain ⟨v, hv⟩ := hu |
| 199 | have ho : SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (h : K) = 0 := by |
| 200 | rw [← ha, ← hv] |
| 201 | exact fractionFieldOrder_localUnit v |
| 202 | rw [ho, zpow_zero] |
| 203 | · have hz : IsLocalRing.residue R a = 0 := (IsLocalRing.residue_eq_zero_iff a).mpr hu |
| 204 | have hr : Units.map (IsLocalRing.residue R).toMonoidHom u = 1 := by |
| 205 | apply Units.ext |
| 206 | change IsLocalRing.residue R (u : R) = 1 |
| 207 | have he := congrArg (IsLocalRing.residue R) hsum |
| 208 | simpa only [map_add, map_one, hz, add_zero] using he |
| 209 | rw [hr, one_zpow] |
| 210 | |
| 211 | theorem dvrResidueQuotient_regular_add_one (g h : Kˣ) (a b : R) |
| 212 | (ha : algebraMap R K a = g) (hb : algebraMap R K b = h) |
| 213 | (hsum : (g : K) + (h : K) = 1) : DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g h = 1 := by |
| 214 | have hab : a + b = 1 := by |
| 215 | apply IsFractionRing.injective R K |
| 216 | rw [map_add, map_one, ha, hb, hsum] |
| 217 | have hu : IsUnit (a + b) := hab.symm ▸ isUnit_one |
| 218 | rcases IsLocalRing.isUnit_or_isUnit_of_isUnit_add hu with hau | hbu |
| 219 | · obtain ⟨u, hu⟩ := hau |
| 220 | have hg : g = Units.map (algebraMap R K).toMonoidHom u := |
| 221 | Units.ext ((congrArg (algebraMap R K) hu).trans ha).symm |
| 222 | rw [hg] |
| 223 | exact dvrResidueQuotient_unit_add_one π hπ u b h hb (hu.symm ▸ hab) |
| 224 | · obtain ⟨u, hu⟩ := hbu |
| 225 | have hh : h = Units.map (algebraMap R K).toMonoidHom u := |
| 226 | Units.ext ((congrArg (algebraMap R K) hu).trans hb).symm |
| 227 | rw [dvrResidueQuotient_swap, hh, |
| 228 | dvrResidueQuotient_unit_add_one π hπ u a g ha (by rw [hu, add_comm, hab]), inv_one] |
| 229 | |
| 230 | end |
| 231 | |
| 232 | /-! |
| 233 | # LineBundleCycles: the residue quotient for a Steinberg pair, including poles |
| 234 | |
| 235 | For g+h=1 the unsigned residue quotient is one when g is regular. |
| 236 | For a pole, invert g to reduce to the regular case; the result is the |
| 237 | residue of -1 raised to the actual order of g. In either case this is a |
| 238 | constant sign, which has zero principal divisor on the geometric support. |
| 239 | -/ |
| 240 | |
| 241 | variable {R : Type*} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 242 | variable {K : Type*} [Field K] [Algebra R K] [IsFractionRing R K] |
| 243 | variable (π : R) (hπ : Irreducible π) |
| 244 | |
| 245 | theorem dvrResidueQuotient_add_one_of_nonneg (g h : Kˣ) |
| 246 | (hsum : (g : K) + (h : K) = 1) (hg : 0 ≤ SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K)) : |
| 247 | DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g h = 1 := by |
| 248 | obtain ⟨a, ha⟩ := dvr_exists_regularRepresentative π hπ g hg |
| 249 | have hb : algebraMap R K (1 - a) = h := by |
| 250 | rw [map_sub, map_one, ha] |
| 251 | exact sub_eq_iff_eq_add.mpr (hsum.symm.trans (add_comm _ _)) |
| 252 | exact dvrResidueQuotient_regular_add_one π hπ g h a (1 - a) ha hb hsum |
| 253 | |
| 254 | theorem dvrResidueQuotient_add_one_of_neg (g h : Kˣ) |
| 255 | (hsum : (g : K) + (h : K) = 1) (hg : SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K) < 0) : |
| 256 | DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g h = |
| 257 | (Units.map (IsLocalRing.residue R).toMonoidHom (-1 : Rˣ)) ^ SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K) := by |
| 258 | let w := Units.map (algebraMap R K).toMonoidHom (-1 : Rˣ) |
| 259 | let k := w * h / g |
| 260 | have hinv : SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R ((g⁻¹ : Kˣ) : K) = -SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K) := |
| 261 | congrArg Multiplicative.toAdd (map_inv (FractionOrderLaws.BundleCycles.fractionFieldOrderHom (K := K) R) g) |
| 262 | have hw : (w : K) = -1 := by |
| 263 | change algebraMap R K (-1) = -1 |
| 264 | rw [map_neg, map_one] |
| 265 | have hsum' : ((g⁻¹ : Kˣ) : K) + (k : K) = 1 := by |
| 266 | simp only [k, Units.val_inv_eq_inv_val, Units.val_div_eq_div_val, Units.val_mul, hw] |
| 267 | field_simp |
| 268 | linear_combination -hsum |
| 269 | have hz := dvrResidueQuotient_add_one_of_nonneg π hπ g⁻¹ k hsum' (by rw [hinv]; omega) |
| 270 | rw [dvrResidueQuotient_inv_left, inv_eq_one] at hz |
| 271 | change DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g (w * h / g) = 1 at hz |
| 272 | rw [dvrResidueQuotient_div_right, dvrResidueQuotient_mul_right, |
| 273 | dvrResidueQuotient_self, div_one] at hz |
| 274 | rw [dvrResidueQuotient_swap π hπ w g, dvrResidueQuotient_localUnit] at hz |
| 275 | exact (inv_mul_eq_one.mp hz).symm |
| 276 | |
| 277 | end |
| 278 | |
| 279 | end OAI.AlgebraicGeometry.Divisors.LineBundles.DVRResidueRegularSteinberg.BundleCycles |