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.DivisorClass.Chern.Cech.Obj |
| 2 | import OAI.AlgebraicGeometry.DivisorClass.Chern.Logarithms |
| 3 | |
| 4 | /-! # Log Cech -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.LogCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! |
| 13 | # ChernClass: rational singular classes of continuous logarithmic transition data |
| 14 | |
| 15 | The inputs are continuous logarithms on pairwise cover intersections whose |
| 16 | exponentials satisfy the multiplicative cocycle identity. Their actual |
| 17 | logarithmic defects give a locally constant rational Cech cocycle and hence |
| 18 | a class in the existing rational singular cohomology. |
| 19 | |
| 20 | This module does not assume a Chern class, a divisor compatibility statement, |
| 21 | or the Lefschetz theorem. Producing this cover data from every algebraic line |
| 22 | bundle, and comparing it to the divisor-class construction, are separate steps. |
| 23 | -/ |
| 24 | |
| 25 | open _root_.CategoryTheory Opposite _root_.TopologicalSpace |
| 26 | open OAI.AlgebraicGeometry.DivisorClass.Chern.Logarithms.Construction |
| 27 | open scoped BigOperators |
| 28 | |
| 29 | set_option backward.isDefEq.respectTransparency false |
| 30 | set_option backward.isDefEq.respectTransparency.types false |
| 31 | set_option backward.defeqAttrib.useBackward true |
| 32 | |
| 33 | namespace RationalCech |
| 34 | |
| 35 | /-- Continuous complex functions, as a presheaf of rational vector spaces. -/ |
| 36 | abbrev continuousComplexPresheaf (X : TopCat.{0}) : X.Presheaf (ModuleCat.{0} ℚ) where |
| 37 | obj U := ModuleCat.of ℚ C(U.unop, ℂ) |
| 38 | map i := ModuleCat.ofHom { |
| 39 | toFun := fun f => f.comp ⟨i.unop, (Opens.isOpenEmbedding_of_le i.unop.le).continuous⟩ |
| 40 | map_add' := fun _ _ => rfl |
| 41 | map_smul' := fun _ _ => rfl } |
| 42 | map_id _ := by ext f x; rfl |
| 43 | map_comp _ _ := by ext f x; rfl |
| 44 | |
| 45 | /-- Multiplication of a rational local constant by the exponential period 2πi. -/ |
| 46 | def periodMap (X : TopCat.{0}) : |
| 47 | Cech.Obj.RationalCech.locallyConstantPresheaf X ⟶ continuousComplexPresheaf X where |
| 48 | app U := ModuleCat.ofHom { |
| 49 | toFun := fun c => { |
| 50 | toFun := fun x => (c x : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) |
| 51 | continuous_toFun := (c.isLocallyConstant.comp |
| 52 | (fun q : ℚ => (q : ℂ) * (2 * (Real.pi : ℂ) * Complex.I))).continuous } |
| 53 | map_add' := by |
| 54 | intro c d |
| 55 | ext x |
| 56 | change ((c x + d x : ℚ) : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) = |
| 57 | (c x : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) + |
| 58 | (d x : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) |
| 59 | push_cast |
| 60 | ring |
| 61 | map_smul' := by |
| 62 | intro q c |
| 63 | ext x |
| 64 | change ((q * c x : ℚ) : ℂ) * _ = (q : ℂ) * ((c x : ℂ) * _) |
| 65 | push_cast |
| 66 | ring } |
| 67 | naturality _ _ _ := by ext c; rfl |
| 68 | |
| 69 | theorem periodMap_injective (X : TopCat.{0}) (U : Opens X) : |
| 70 | Function.Injective ((periodMap X).app (op U)) := by |
| 71 | intro c d h |
| 72 | apply LocallyConstant.ext |
| 73 | intro x |
| 74 | have he := congrArg (fun f : C(U, ℂ) => f x) h |
| 75 | change (c x : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) = |
| 76 | (d x : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) at he |
| 77 | have hc := mul_right_cancel₀ Complex.two_pi_I_ne_zero he |
| 78 | exact_mod_cast hc |
| 79 | |
| 80 | variable {ι : Type} (X : TopCat.{0}) (U : ι → Opens X) |
| 81 | |
| 82 | theorem periodCechMap_injective (n : ℕ) : |
| 83 | Function.Injective (Rational.Cech.RationalCech.cechCoefficientMap U (periodMap X) n) := by |
| 84 | intro c d h |
| 85 | funext a |
| 86 | exact periodMap_injective X _ (congrFun h a) |
| 87 | |
| 88 | /-- Continuous logarithms on each ordered pairwise intersection. -/ |
| 89 | abbrev LogCechCochain := Rational.Cech.RationalCech.CechCochain (continuousComplexPresheaf X) U 1 |
| 90 | |
| 91 | /-- Restrict the indicated edge logarithm to a triple intersection. -/ |
| 92 | abbrev edgeLog (l : LogCechCochain X U) (j : Fin 3) : |
| 93 | Rational.Cech.RationalCech.CechCochain (continuousComplexPresheaf X) U 2 := |
| 94 | Rational.Cech.RationalCech.cechPrecomp (continuousComplexPresheaf X) U j.succAbove l |
| 95 | |
| 96 | /-- The exponentials of the supplied logarithms form a transition cocycle. -/ |
| 97 | def ExponentialCocycle (l : LogCechCochain X U) : Prop := |
| 98 | ∀ (a : Fin 3 → ι) (x : AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a), |
| 99 | Complex.exp (edgeLog X U l 2 a x) * Complex.exp (edgeLog X U l 0 a x) = |
| 100 | Complex.exp (edgeLog X U l 1 a x) |
| 101 | |
| 102 | /-- Rationalized integral logarithmic defects on triple intersections. -/ |
| 103 | def logDefectCech (l : LogCechCochain X U) (h : ExponentialCocycle X U l) : |
| 104 | Rational.Cech.RationalCech.CechCochain (Cech.Obj.RationalCech.locallyConstantPresheaf X) U 2 := |
| 105 | fun a => { |
| 106 | toFun := fun x => (Logarithms.Construction.logarithmicDefect |
| 107 | (edgeLog X U l 2 a x) (edgeLog X U l 0 a x) (edgeLog X U l 1 a x) (h a x) : ℚ) |
| 108 | isLocallyConstant := (Logarithms.Construction.isLocallyConstant_logarithmicDefect |
| 109 | (edgeLog X U l 2 a) (edgeLog X U l 0 a) (edgeLog X U l 1 a) (h a)).comp |
| 110 | (fun n : ℤ => (n : ℚ)) } |
| 111 | |
| 112 | /-- The rational defect is exactly the Cech coboundary of the logarithms divided by 2πi. -/ |
| 113 | theorem periodMap_logDefectCech (l : LogCechCochain X U) |
| 114 | (h : ExponentialCocycle X U l) : |
| 115 | Rational.Cech.RationalCech.cechCoefficientMap U (periodMap X) 2 (logDefectCech X U l h) = |
| 116 | Rational.Cech.RationalCech.cechDelta (continuousComplexPresheaf X) U 1 l := by |
| 117 | funext a |
| 118 | apply ContinuousMap.ext |
| 119 | intro x |
| 120 | have hd := Logarithms.Construction.logarithmicDefect_spec |
| 121 | (edgeLog X U l 2 a x) (edgeLog X U l 0 a x) (edgeLog X U l 1 a x) (h a x) |
| 122 | change (((Logarithms.Construction.logarithmicDefect _ _ _ (h a x) : ℤ) : ℚ) : ℂ) * _ = _ |
| 123 | push_cast |
| 124 | rw [← hd, Rational.Cech.RationalCech.cechDelta_apply, Fin.sum_univ_three] |
| 125 | change edgeLog X U l 2 a x + edgeLog X U l 0 a x - edgeLog X U l 1 a x = |
| 126 | (1 : ℤ) • edgeLog X U l 0 a x + (-1 : ℤ) • edgeLog X U l 1 a x + |
| 127 | (1 : ℤ) • edgeLog X U l 2 a x |
| 128 | simp only [one_zsmul, neg_one_zsmul] |
| 129 | ring |
| 130 | |
| 131 | /-- Closedness follows from the actual Cech differential squared being zero. -/ |
| 132 | theorem logDefectCech_closed (l : LogCechCochain X U) |
| 133 | (h : ExponentialCocycle X U l) : |
| 134 | Rational.Cech.RationalCech.cechDelta (Cech.Obj.RationalCech.locallyConstantPresheaf X) U 2 (logDefectCech X U l h) = 0 := by |
| 135 | apply periodCechMap_injective X U 3 |
| 136 | rw [map_zero, Rational.Cech.RationalCech.cechCoefficientMap_delta, periodMap_logDefectCech, Rational.Cech.RationalCech.cechDelta_squared] |
| 137 | |
| 138 | /-- The actual logarithmic defect as a cocycle of the rational Cech complex. -/ |
| 139 | def logDefectCocycle (l : LogCechCochain X U) (h : ExponentialCocycle X U l) : |
| 140 | AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles (Rational.Cech.RationalCech.cechComplex (Cech.Obj.RationalCech.locallyConstantPresheaf X) U) 2 := |
| 141 | ⟨logDefectCech X U l h, by |
| 142 | rw [AlgebraicTopology.Cohomology.Singular.Representatives.mem_cochainCocycles_iff, Rational.Cech.RationalCech.cechComplex_d] |
| 143 | exact logDefectCech_closed X U l h⟩ |
| 144 | |
| 145 | /-- The rational singular cohomology class obtained from logarithmic transition data. -/ |
| 146 | def logarithmicSingularClass (hcover : ∀ x : X, ∃ i, x ∈ U i) |
| 147 | (l : LogCechCochain X U) (h : ExponentialCocycle X U l) : |
| 148 | AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of ℚ ℚ) X 2 := |
| 149 | Cech.Obj.RationalCech.singularClassOfCechCocycle X U hcover 2 (logDefectCocycle X U l h) |
| 150 | |
| 151 | /-- Two logarithms of the same transition differ by a locally constant integer period. -/ |
| 152 | def logDifferenceCech (l l' : LogCechCochain X U) |
| 153 | (he : ∀ (a : Fin 2 → ι) (x : AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a), |
| 154 | Complex.exp (l a x) = Complex.exp (l' a x)) : |
| 155 | Rational.Cech.RationalCech.CechCochain (Cech.Obj.RationalCech.locallyConstantPresheaf X) U 1 := |
| 156 | fun a => { |
| 157 | toFun := fun x => (Logarithms.Construction.logarithmicDefect (l a x) 0 (l' a x) |
| 158 | (by simpa only [Complex.exp_zero, mul_one] using he a x) : ℚ) |
| 159 | isLocallyConstant := (Logarithms.Construction.isLocallyConstant_logarithmicDefect |
| 160 | (l a) 0 (l' a) (fun x => by |
| 161 | simpa only [ContinuousMap.zero_apply, Complex.exp_zero, mul_one] using he a x)).comp |
| 162 | (fun n : ℤ => (n : ℚ)) } |
| 163 | |
| 164 | theorem periodMap_logDifferenceCech (l l' : LogCechCochain X U) |
| 165 | (he : ∀ (a : Fin 2 → ι) (x : AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a), |
| 166 | Complex.exp (l a x) = Complex.exp (l' a x)) : |
| 167 | Rational.Cech.RationalCech.cechCoefficientMap U (periodMap X) 1 (logDifferenceCech X U l l' he) = l - l' := by |
| 168 | funext a |
| 169 | apply ContinuousMap.ext |
| 170 | intro x |
| 171 | have h := Logarithms.Construction.logarithmicDefect_spec (l a x) 0 (l' a x) |
| 172 | (by simpa only [Complex.exp_zero, mul_one] using he a x) |
| 173 | change (((Logarithms.Construction.logarithmicDefect _ _ _ _ : ℤ) : ℚ) : ℂ) * _ = l a x - l' a x |
| 174 | push_cast |
| 175 | simpa only [add_zero] using h.symm |
| 176 | |
| 177 | /-- Changing logarithms changes the actual defect cocycle by an actual Cech coboundary. -/ |
| 178 | theorem logDefectCech_sub_is_boundary (l l' : LogCechCochain X U) |
| 179 | (h : ExponentialCocycle X U l) (h' : ExponentialCocycle X U l') |
| 180 | (he : ∀ (a : Fin 2 → ι) (x : AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a), |
| 181 | Complex.exp (l a x) = Complex.exp (l' a x)) : |
| 182 | Rational.Cech.RationalCech.cechDelta (Cech.Obj.RationalCech.locallyConstantPresheaf X) U 1 (logDifferenceCech X U l l' he) = |
| 183 | logDefectCech X U l h - logDefectCech X U l' h' := by |
| 184 | apply periodCechMap_injective X U 2 |
| 185 | rw [Rational.Cech.RationalCech.cechCoefficientMap_delta, periodMap_logDifferenceCech, map_sub, map_sub, |
| 186 | periodMap_logDefectCech, periodMap_logDefectCech] |
| 187 | |
| 188 | /-- The rational singular class is independent of the choice of continuous logarithms |
| 189 | on a fixed cover for the same exponential transition functions. -/ |
| 190 | theorem logarithmicSingularClass_log_independent |
| 191 | (hcover : ∀ x : X, ∃ i, x ∈ U i) |
| 192 | (l l' : LogCechCochain X U) |
| 193 | (h : ExponentialCocycle X U l) (h' : ExponentialCocycle X U l') |
| 194 | (he : ∀ (a : Fin 2 → ι) (x : AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a), |
| 195 | Complex.exp (l a x) = Complex.exp (l' a x)) : |
| 196 | logarithmicSingularClass X U hcover l h = |
| 197 | logarithmicSingularClass X U hcover l' h' := by |
| 198 | apply Cech.Obj.RationalCech.singularClassOfCechCocycle_eq_of_boundary X U hcover 1 |
| 199 | (logDefectCocycle X U l h) (logDefectCocycle X U l' h') |
| 200 | (logDifferenceCech X U l l' he) |
| 201 | exact logDefectCech_sub_is_boundary X U l l' h h' he |
| 202 | |
| 203 | end RationalCech |
| 204 | |
| 205 | end |
| 206 | |
| 207 | /-! Negating actual logarithms negates their original rational singular class. -/ |
| 208 | |
| 209 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 210 | set_option backward.isDefEq.respectTransparency false |
| 211 | set_option backward.isDefEq.respectTransparency.types false |
| 212 | set_option backward.defeqAttrib.useBackward true |
| 213 | |
| 214 | namespace RationalCech |
| 215 | variable {ι : Type} (X : TopCat.{0}) (U : ι → Opens X) |
| 216 | |
| 217 | theorem exponentialCocycle_neg (l : LogCechCochain X U) (h : ExponentialCocycle X U l) : |
| 218 | ExponentialCocycle X U (-l) := by |
| 219 | intro a x |
| 220 | change Complex.exp (-edgeLog X U l 2 a x) * Complex.exp (-edgeLog X U l 0 a x) = |
| 221 | Complex.exp (-edgeLog X U l 1 a x) |
| 222 | rw [Complex.exp_neg, Complex.exp_neg, Complex.exp_neg, ← mul_inv, h a x] |
| 223 | |
| 224 | theorem logDefectCech_neg (l : LogCechCochain X U) (h : ExponentialCocycle X U l) : |
| 225 | logDefectCech X U (-l) (exponentialCocycle_neg X U l h) = -logDefectCech X U l h := by |
| 226 | apply periodCechMap_injective X U 2 |
| 227 | rw [periodMap_logDefectCech, map_neg, map_neg, periodMap_logDefectCech] |
| 228 | |
| 229 | theorem logDefectCocycle_neg (l : LogCechCochain X U) (h : ExponentialCocycle X U l) : |
| 230 | logDefectCocycle X U (-l) (exponentialCocycle_neg X U l h) = -logDefectCocycle X U l h := by |
| 231 | apply Subtype.ext |
| 232 | exact logDefectCech_neg X U l h |
| 233 | |
| 234 | theorem logarithmicSingularClass_neg (hU : ∀ x : X, ∃ i, x ∈ U i) |
| 235 | (l : LogCechCochain X U) (h : ExponentialCocycle X U l) : |
| 236 | logarithmicSingularClass X U hU (-l) (exponentialCocycle_neg X U l h) = |
| 237 | -logarithmicSingularClass X U hU l h := by |
| 238 | unfold logarithmicSingularClass |
| 239 | rw [logDefectCocycle_neg X U l h] |
| 240 | simp only [Cech.Obj.RationalCech.singularClassOfCechCocycle, map_neg] |
| 241 | |
| 242 | end RationalCech |
| 243 | |
| 244 | end |
| 245 | |
| 246 | end OAI.AlgebraicGeometry.DivisorClass.Chern.LogCech |