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.Geometry.Foundations.ConvexStdSimplexMetric |
| 2 | import OAI.AlgebraicGeometry.DivisorClass.Chern.SimplexLogarithms |
| 3 | import OAI.AlgebraicTopology.Cohomology.Singular.Augmentation |
| 4 | import OAI.AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality |
| 5 | |
| 6 | /-! # Winding Singular -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.WindingSingular |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! |
| 15 | # ChernClass: winding on genuine singular paths |
| 16 | |
| 17 | A logarithm lifted along a singular path has a well-defined increment. |
| 18 | Subtracting the principal endpoint logarithms gives an actual integer period. |
| 19 | The resulting rational singular cochain is closed, proved using a continuous |
| 20 | logarithm on each singular triangle. No winding normalization is assumed. |
| 21 | -/ |
| 22 | |
| 23 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 24 | open scoped Simplicial |
| 25 | |
| 26 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex |
| 27 | |
| 28 | set_option backward.isDefEq.respectTransparency false |
| 29 | set_option backward.isDefEq.respectTransparency.types false |
| 30 | set_option backward.defeqAttrib.useBackward true |
| 31 | |
| 32 | variable (X : TopCat.{0}) (g : C(X, ℂ)) (hg : ∀ x, g x ≠ 0) |
| 33 | |
| 34 | /-- Restriction of the function to an actual singular simplex. -/ |
| 35 | def simplexFunction {n : ℕ} (s : (TopCat.toSSet.obj X) _⦋n⦌) : |
| 36 | C(Convexity.StdSimplex ℝ (Fin (n + 1)), ℂ) := |
| 37 | g.comp (X.toSSetObjEquiv _ s) |
| 38 | |
| 39 | def singularSimplexLog {n : ℕ} (s : (TopCat.toSSet.obj X) _⦋n⦌) : |
| 40 | C(Convexity.StdSimplex ℝ (Fin (n + 1)), ℂ) := |
| 41 | SimplexLogarithms.simplexLogarithm n (simplexFunction X g s) (fun x => hg (X.toSSetObjEquiv _ s x)) |
| 42 | |
| 43 | theorem singularSimplexLog_exp {n : ℕ} (s : (TopCat.toSSet.obj X) _⦋n⦌) |
| 44 | (x : Convexity.StdSimplex ℝ (Fin (n + 1))) : |
| 45 | Complex.exp (singularSimplexLog X g hg s x) = simplexFunction X g s x := |
| 46 | SimplexLogarithms.exp_simplexLogarithm n _ _ x |
| 47 | |
| 48 | /-- The actual increment of a lifted logarithm from the first vertex to the last. -/ |
| 49 | def singularLogIncrement (s : (TopCat.toSSet.obj X) _⦋1⦌) : ℂ := |
| 50 | singularSimplexLog X g hg s (Convexity.StdSimplex.single 1) - |
| 51 | singularSimplexLog X g hg s (Convexity.StdSimplex.single 0) |
| 52 | |
| 53 | theorem singularLogIncrement_of_log (s : (TopCat.toSSet.obj X) _⦋1⦌) |
| 54 | (l : C(Convexity.StdSimplex ℝ (Fin 2), ℂ)) |
| 55 | (hl : ∀ x, Complex.exp (l x) = simplexFunction X g s x) : |
| 56 | singularLogIncrement X g hg s = l (Convexity.StdSimplex.single 1) - l (Convexity.StdSimplex.single 0) := |
| 57 | SimplexLogarithms.logarithm_increment_independent (singularSimplexLog X g hg s) l |
| 58 | (fun x => (singularSimplexLog_exp X g hg s x).trans (hl x).symm) _ _ |
| 59 | |
| 60 | theorem singularLogIncrement_exp (s : (TopCat.toSSet.obj X) _⦋1⦌) : |
| 61 | Complex.exp (singularLogIncrement X g hg s) = |
| 62 | simplexFunction X g s (Convexity.StdSimplex.single 1) / |
| 63 | simplexFunction X g s (Convexity.StdSimplex.single 0) := by |
| 64 | rw [singularLogIncrement, Complex.exp_sub, singularSimplexLog_exp, singularSimplexLog_exp] |
| 65 | |
| 66 | theorem singularLogIncrement_period (s : (TopCat.toSSet.obj X) _⦋1⦌) : |
| 67 | Complex.exp (singularLogIncrement X g hg s) * |
| 68 | Complex.exp (Complex.log (simplexFunction X g s (Convexity.StdSimplex.single 0))) = |
| 69 | Complex.exp (Complex.log (simplexFunction X g s (Convexity.StdSimplex.single 1))) := by |
| 70 | rw [singularLogIncrement_exp] |
| 71 | change _ / _ * Complex.exp (Complex.log (g _)) = Complex.exp (Complex.log (g _)) |
| 72 | rw [Complex.exp_log (hg _), Complex.exp_log (hg _)] |
| 73 | exact div_mul_cancel₀ _ (hg _) |
| 74 | |
| 75 | /-- The integer winding contribution of one singular path, rationalized. -/ |
| 76 | def singularWindingValue (s : (TopCat.toSSet.obj X) _⦋1⦌) : ℚ := |
| 77 | Logarithms.Construction.logarithmicDefect (singularLogIncrement X g hg s) |
| 78 | (Complex.log (simplexFunction X g s (Convexity.StdSimplex.single 0))) |
| 79 | (Complex.log (simplexFunction X g s (Convexity.StdSimplex.single 1))) |
| 80 | (singularLogIncrement_period X g hg s) |
| 81 | |
| 82 | /-- Recover the actual lifted increment from its rationalized integer period. -/ |
| 83 | theorem singularWindingValue_period (s : (TopCat.toSSet.obj X) _⦋1⦌) : |
| 84 | (singularWindingValue X g hg s : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) = |
| 85 | singularLogIncrement X g hg s + |
| 86 | Complex.log (simplexFunction X g s (Convexity.StdSimplex.single 0)) - |
| 87 | Complex.log (simplexFunction X g s (Convexity.StdSimplex.single 1)) := by |
| 88 | unfold singularWindingValue |
| 89 | push_cast |
| 90 | exact (Logarithms.Construction.logarithmicDefect_spec _ _ _ (singularLogIncrement_period X g hg s)).symm |
| 91 | |
| 92 | /-- One logarithm on a singular triangle computes every edge increment. -/ |
| 93 | theorem singularLogIncrement_face (s : (TopCat.toSSet.obj X) _⦋2⦌) (i : Fin 3) : |
| 94 | singularLogIncrement X g hg ((TopCat.toSSet.obj X).δ i s) = |
| 95 | singularSimplexLog X g hg s (Convexity.StdSimplex.single (i.succAbove 1)) - |
| 96 | singularSimplexLog X g hg s (Convexity.StdSimplex.single (i.succAbove 0)) := by |
| 97 | let l := (singularSimplexLog X g hg s).comp |
| 98 | ⟨Convexity.StdSimplex.map i.succAbove, Convexity.StdSimplex.continuous_map ℝ i.succAbove⟩ |
| 99 | have hl : ∀ x, Complex.exp (l x) = |
| 100 | simplexFunction X g ((TopCat.toSSet.obj X).δ i s) x := by |
| 101 | intro x |
| 102 | exact singularSimplexLog_exp X g hg s _ |
| 103 | rw [singularLogIncrement_of_log X g hg _ l hl] |
| 104 | simp only [l, ContinuousMap.comp_apply, ContinuousMap.coe_mk, Convexity.StdSimplex.map_single] |
| 105 | |
| 106 | /-- The integer periods sum to zero around every actual singular triangle. -/ |
| 107 | theorem singularWindingValue_triangle (s : (TopCat.toSSet.obj X) _⦋2⦌) : |
| 108 | singularWindingValue X g hg ((TopCat.toSSet.obj X).δ 0 s) - |
| 109 | singularWindingValue X g hg ((TopCat.toSSet.obj X).δ 1 s) + |
| 110 | singularWindingValue X g hg ((TopCat.toSSet.obj X).δ 2 s) = 0 := by |
| 111 | apply (Rat.cast_injective (α := ℂ)) |
| 112 | apply mul_right_cancel₀ Complex.two_pi_I_ne_zero |
| 113 | push_cast |
| 114 | rw [add_mul, sub_mul, singularWindingValue_period, singularWindingValue_period, |
| 115 | singularWindingValue_period, singularLogIncrement_face, singularLogIncrement_face, |
| 116 | singularLogIncrement_face] |
| 117 | simp only [simplexFunction, ContinuousMap.comp_apply, TopCat.toSSetObjEquiv_δ_apply, |
| 118 | Convexity.StdSimplex.map_single] |
| 119 | change (singularSimplexLog X g hg s (Convexity.StdSimplex.single 2) - |
| 120 | singularSimplexLog X g hg s (Convexity.StdSimplex.single 1) + |
| 121 | Complex.log (g (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 1))) - |
| 122 | Complex.log (g (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 2)))) - |
| 123 | (singularSimplexLog X g hg s (Convexity.StdSimplex.single 2) - |
| 124 | singularSimplexLog X g hg s (Convexity.StdSimplex.single 0) + |
| 125 | Complex.log (g (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 0))) - |
| 126 | Complex.log (g (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 2)))) + |
| 127 | (singularSimplexLog X g hg s (Convexity.StdSimplex.single 1) - |
| 128 | singularSimplexLog X g hg s (Convexity.StdSimplex.single 0) + |
| 129 | Complex.log (g (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 0))) - |
| 130 | Complex.log (g (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 1)))) = 0 * _ |
| 131 | ring |
| 132 | |
| 133 | /-- The cochain is defined on every genuine singular path. -/ |
| 134 | def singularWindingCochain : (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X).X 1 := |
| 135 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 1).inv |
| 136 | (singularWindingValue X g hg) |
| 137 | |
| 138 | theorem singularWindingCochain_value (s : (TopCat.toSSet.obj X) _⦋1⦌) : |
| 139 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 1).hom |
| 140 | (singularWindingCochain X g hg) s = singularWindingValue X g hg s := by |
| 141 | unfold singularWindingCochain |
| 142 | rw [Iso.inv_hom_id_apply] |
| 143 | |
| 144 | theorem singularWindingCochain_closed : |
| 145 | (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X).d 1 2 (singularWindingCochain X g hg) = 0 := by |
| 146 | apply (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 2).toLinearEquiv.injective |
| 147 | ext s |
| 148 | change (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 2).hom |
| 149 | ((AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X).d 1 2 (singularWindingCochain X g hg)) s = |
| 150 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 2).hom 0 s |
| 151 | rw [AlgebraicTopology.Cohomology.Singular.Formulas.degreewiseFunctionIso_coboundary, Fin.sum_univ_three] |
| 152 | simp only [Fin.val_zero, pow_zero, one_zsmul, |
| 153 | Fin.val_one, pow_one, neg_one_zsmul, Fin.val_two, neg_sq, one_pow, map_zero] |
| 154 | change (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 1).hom |
| 155 | (singularWindingCochain X g hg) ((TopCat.toSSet.obj X).δ 0 s) + |
| 156 | -(AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 1).hom |
| 157 | (singularWindingCochain X g hg) ((TopCat.toSSet.obj X).δ 1 s) + |
| 158 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 1).hom |
| 159 | (singularWindingCochain X g hg) ((TopCat.toSSet.obj X).δ 2 s) = 0 |
| 160 | rw [singularWindingCochain_value, singularWindingCochain_value, singularWindingCochain_value] |
| 161 | simpa only [sub_eq_add_neg] using singularWindingValue_triangle X g hg s |
| 162 | |
| 163 | def singularWindingCocycle : AlgebraicTopology.Cohomology.Singular.Representatives.singularCocycles (ModuleCat.of ℚ ℚ) X 1 := |
| 164 | ⟨singularWindingCochain X g hg, by |
| 165 | rw [AlgebraicTopology.Cohomology.Singular.Representatives.mem_cochainCocycles_iff] |
| 166 | exact singularWindingCochain_closed X g hg⟩ |
| 167 | |
| 168 | def singularWindingClass : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of ℚ ℚ) X 1 := |
| 169 | AlgebraicTopology.Cohomology.Singular.Representatives.singularClass (ModuleCat.of ℚ ℚ) X 1 (singularWindingCocycle X g hg) |
| 170 | |
| 171 | end |
| 172 | |
| 173 | section |
| 174 | |
| 175 | /-! |
| 176 | # ChernClass: naturality and local primitives of singular winding |
| 177 | |
| 178 | The path-lift construction commutes with every continuous map. On a domain |
| 179 | carrying one logarithm, the winding cocycle is the singular coboundary of the |
| 180 | actual integral difference from the principal pointwise logarithm. |
| 181 | -/ |
| 182 | |
| 183 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 184 | open scoped Simplicial |
| 185 | |
| 186 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex |
| 187 | |
| 188 | set_option backward.isDefEq.respectTransparency false |
| 189 | set_option backward.isDefEq.respectTransparency.types false |
| 190 | set_option backward.defeqAttrib.useBackward true |
| 191 | |
| 192 | section |
| 193 | |
| 194 | variable {X Y : TopCat.{0}} (f : Y ⟶ X) (g : C(X, ℂ)) (hg : ∀ x, g x ≠ 0) |
| 195 | |
| 196 | theorem singularLogIncrement_naturality (s : (TopCat.toSSet.obj Y) _⦋1⦌) : |
| 197 | singularLogIncrement X g hg ((TopCat.toSSet.map f).app _ s) = |
| 198 | singularLogIncrement Y (g.comp f.hom) (fun y => hg (f y)) s := by |
| 199 | exact singularLogIncrement_of_log X g hg _ |
| 200 | (singularSimplexLog Y (g.comp f.hom) (fun y => hg (f y)) s) |
| 201 | (singularSimplexLog_exp Y (g.comp f.hom) (fun y => hg (f y)) s) |
| 202 | |
| 203 | theorem singularWindingValue_naturality (s : (TopCat.toSSet.obj Y) _⦋1⦌) : |
| 204 | singularWindingValue X g hg ((TopCat.toSSet.map f).app _ s) = |
| 205 | singularWindingValue Y (g.comp f.hom) (fun y => hg (f y)) s := by |
| 206 | apply (Rat.cast_injective (α := ℂ)) |
| 207 | apply mul_right_cancel₀ Complex.two_pi_I_ne_zero |
| 208 | rw [singularWindingValue_period, singularWindingValue_period, singularLogIncrement_naturality] |
| 209 | rfl |
| 210 | |
| 211 | /-- Pullback of the actual winding cochain equals winding of the composite. -/ |
| 212 | theorem singularWindingCochain_naturality : |
| 213 | (AlgebraicTopology.Cohomology.Singular.Functor.singularPullback (ModuleCat.of ℚ ℚ) f).f 1 (singularWindingCochain X g hg) = |
| 214 | singularWindingCochain Y (g.comp f.hom) (fun y => hg (f y)) := by |
| 215 | apply (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj Y) (ModuleCat.of ℚ ℚ) 1).toLinearEquiv.injective |
| 216 | change (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj Y) (ModuleCat.of ℚ ℚ) 1).hom _ = |
| 217 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj Y) (ModuleCat.of ℚ ℚ) 1).hom _ |
| 218 | ext s |
| 219 | have h := AlgebraicTopology.Cohomology.Singular.Formulas.degreewiseFunctionIso_pullback (ModuleCat.of ℚ ℚ) (TopCat.toSSet.map f) |
| 220 | (singularWindingCochain X g hg) s |
| 221 | change (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj Y) (ModuleCat.of ℚ ℚ) 1).hom |
| 222 | ((AlgebraicTopology.Cohomology.Singular.Functor.singularPullback (ModuleCat.of ℚ ℚ) f).f 1 (singularWindingCochain X g hg)) s = |
| 223 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 1).hom |
| 224 | (singularWindingCochain X g hg) ((TopCat.toSSet.map f).app _ s) at h |
| 225 | rw [h, singularWindingCochain_value, singularWindingCochain_value] |
| 226 | exact singularWindingValue_naturality f g hg s |
| 227 | |
| 228 | /-- Naturality holds in the existing rational singular cohomology. -/ |
| 229 | theorem singularWindingClass_naturality : |
| 230 | AlgebraicTopology.Cohomology.Singular.Functor.singularCohomologyPullback (ModuleCat.of ℚ ℚ) f 1 (singularWindingClass X g hg) = |
| 231 | singularWindingClass Y (g.comp f.hom) (fun y => hg (f y)) := by |
| 232 | unfold singularWindingClass |
| 233 | rw [AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.singularCohomologyPullback_class] |
| 234 | congr 1 |
| 235 | apply Subtype.ext |
| 236 | exact singularWindingCochain_naturality f g hg |
| 237 | |
| 238 | /-- The endpoint of an actual singular edge is its indicated geometric vertex. -/ |
| 239 | theorem singularEdge_vertex (s : (TopCat.toSSet.obj X) _⦋1⦌) (i : Fin 2) : |
| 240 | TopCat.toSSetObj₀Equiv ((TopCat.toSSet.obj X).δ i s) = |
| 241 | X.toSSetObjEquiv _ s (Convexity.StdSimplex.single (i.succAbove 0)) := by |
| 242 | change X.toSSetObjEquiv _ ((TopCat.toSSet.obj X).δ i s) default = _ |
| 243 | rw [show (default : Convexity.StdSimplex ℝ (Fin 1)) = Convexity.StdSimplex.single 0 from Subsingleton.elim _ _, |
| 244 | TopCat.toSSetObjEquiv_δ_apply, Convexity.StdSimplex.map_single] |
| 245 | |
| 246 | end |
| 247 | |
| 248 | variable (X : TopCat.{0}) (g : C(X, ℂ)) (hg : ∀ x, g x ≠ 0) |
| 249 | variable (l : C(X, ℂ)) (hl : ∀ x, Complex.exp (l x) = g x) |
| 250 | |
| 251 | /-- An actual integer difference of logarithms at one point. -/ |
| 252 | def pointLogPeriod (x : X) : ℚ := |
| 253 | Logarithms.Construction.logarithmicDefect (l x) 0 (Complex.log (g x)) |
| 254 | (by rw [Complex.exp_zero, mul_one, hl, Complex.exp_log (hg x)]) |
| 255 | |
| 256 | theorem pointLogPeriod_spec (x : X) : |
| 257 | (pointLogPeriod X g hg l hl x : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) = |
| 258 | l x - Complex.log (g x) := by |
| 259 | unfold pointLogPeriod |
| 260 | push_cast |
| 261 | have h := Logarithms.Construction.logarithmicDefect_spec (l x) 0 (Complex.log (g x)) |
| 262 | (by rw [Complex.exp_zero, mul_one, hl, Complex.exp_log (hg x)]) |
| 263 | simpa only [add_zero] using h.symm |
| 264 | |
| 265 | /-- Principal pointwise logarithms need not be continuous; their difference |
| 266 | from a continuous branch is nevertheless an honest singular zero-cochain. -/ |
| 267 | def pointLogPrimitive : (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X).X 0 := |
| 268 | (AlgebraicTopology.Cohomology.Singular.Augmentation.singularZeroCochainPointIso (ModuleCat.of ℚ ℚ) X).inv (pointLogPeriod X g hg l hl) |
| 269 | |
| 270 | theorem pointLogPrimitive_value (x : X) : |
| 271 | (AlgebraicTopology.Cohomology.Singular.Augmentation.singularZeroCochainPointIso (ModuleCat.of ℚ ℚ) X).hom (pointLogPrimitive X g hg l hl) x = |
| 272 | pointLogPeriod X g hg l hl x := by |
| 273 | unfold pointLogPrimitive |
| 274 | rw [Iso.inv_hom_id_apply] |
| 275 | |
| 276 | /-- This is the actual local primitive, with its sign fixed by endpoint order. -/ |
| 277 | theorem pointLogPrimitive_d : |
| 278 | (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X).d 0 1 (pointLogPrimitive X g hg l hl) = |
| 279 | singularWindingCochain X g hg := by |
| 280 | apply (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 1).toLinearEquiv.injective |
| 281 | change (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 1).hom _ = |
| 282 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 1).hom _ |
| 283 | ext s |
| 284 | rw [AlgebraicTopology.Cohomology.Singular.Augmentation.singularZeroCoboundary_apply, pointLogPrimitive_value, pointLogPrimitive_value, |
| 285 | singularWindingCochain_value, singularEdge_vertex, singularEdge_vertex] |
| 286 | apply (Rat.cast_injective (α := ℂ)) |
| 287 | apply mul_right_cancel₀ Complex.two_pi_I_ne_zero |
| 288 | push_cast |
| 289 | rw [sub_mul, pointLogPeriod_spec, pointLogPeriod_spec, singularWindingValue_period] |
| 290 | have hi := singularLogIncrement_of_log X g hg s (l.comp (X.toSSetObjEquiv _ s)) |
| 291 | (fun x => hl (X.toSSetObjEquiv _ s x)) |
| 292 | rw [hi] |
| 293 | change (l (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 1)) - |
| 294 | Complex.log (g (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 1)))) - |
| 295 | (l (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 0)) - |
| 296 | Complex.log (g (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 0)))) = |
| 297 | (l (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 1)) - l (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 0))) + |
| 298 | Complex.log (g (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 0))) - |
| 299 | Complex.log (g (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 1))) |
| 300 | ring |
| 301 | |
| 302 | end |
| 303 | |
| 304 | /-! |
| 305 | # ChernClass: the actual cochain correction between two local equations |
| 306 | |
| 307 | If `f = exp(l) * g`, the pointwise integer logarithmic defect of `l`, |
| 308 | `log(g)`, and `log(f)` is a singular zero-cochain. Its differential is the |
| 309 | difference of the actual winding cochains. On triple overlaps its alternating |
| 310 | sum is exactly the integral Chern defect of the transition logarithms. |
| 311 | -/ |
| 312 | |
| 313 | open _root_.CategoryTheory |
| 314 | open scoped Simplicial |
| 315 | |
| 316 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex |
| 317 | |
| 318 | set_option backward.isDefEq.respectTransparency false |
| 319 | set_option backward.isDefEq.respectTransparency.types false |
| 320 | set_option backward.defeqAttrib.useBackward true |
| 321 | |
| 322 | section |
| 323 | |
| 324 | variable (X : TopCat.{0}) (f g : C(X, ℂ)) |
| 325 | variable (hf : ∀ x, f x ≠ 0) (hg : ∀ x, g x ≠ 0) |
| 326 | variable (l : C(X, ℂ)) (hl : ∀ x, Complex.exp (l x) * g x = f x) |
| 327 | |
| 328 | include hl in |
| 329 | /-- An actual lift of the logarithm of `g`, plus `l`, lifts the logarithm of `f`. -/ |
| 330 | theorem singularLogIncrement_gauge (s : (TopCat.toSSet.obj X) _⦋1⦌) : |
| 331 | singularLogIncrement X f hf s = singularLogIncrement X g hg s + |
| 332 | l (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 1)) - |
| 333 | l (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 0)) := by |
| 334 | let k := (l.comp (X.toSSetObjEquiv _ s)) + singularSimplexLog X g hg s |
| 335 | have hk : ∀ x, Complex.exp (k x) = simplexFunction X f s x := by |
| 336 | intro x |
| 337 | change Complex.exp (l (X.toSSetObjEquiv _ s x) + singularSimplexLog X g hg s x) = _ |
| 338 | rw [Complex.exp_add, singularSimplexLog_exp] |
| 339 | exact hl (X.toSSetObjEquiv _ s x) |
| 340 | rw [singularLogIncrement_of_log X f hf s k hk] |
| 341 | simp only [k, ContinuousMap.add_apply, ContinuousMap.comp_apply, singularLogIncrement] |
| 342 | ring |
| 343 | |
| 344 | /-- The integer discrepancy of the actual pointwise logarithms. -/ |
| 345 | def windingGaugePeriod (x : X) : ℚ := |
| 346 | Logarithms.Construction.logarithmicDefect (l x) (Complex.log (g x)) (Complex.log (f x)) |
| 347 | (by rw [Complex.exp_log (hg x), Complex.exp_log (hf x)]; exact hl x) |
| 348 | |
| 349 | theorem windingGaugePeriod_spec (x : X) : |
| 350 | (windingGaugePeriod X f g hf hg l hl x : ℂ) * (2 * (Real.pi : ℂ) * Complex.I) = |
| 351 | l x + Complex.log (g x) - Complex.log (f x) := by |
| 352 | unfold windingGaugePeriod |
| 353 | push_cast |
| 354 | exact (Logarithms.Construction.logarithmicDefect_spec _ _ _ _).symm |
| 355 | |
| 356 | /-- The pointwise discrepancy as a genuine singular zero-cochain. -/ |
| 357 | def windingGaugePrimitive : (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X).X 0 := |
| 358 | (AlgebraicTopology.Cohomology.Singular.Augmentation.singularZeroCochainPointIso (ModuleCat.of ℚ ℚ) X).inv |
| 359 | (windingGaugePeriod X f g hf hg l hl) |
| 360 | |
| 361 | theorem windingGaugePrimitive_value (x : X) : |
| 362 | (AlgebraicTopology.Cohomology.Singular.Augmentation.singularZeroCochainPointIso (ModuleCat.of ℚ ℚ) X).hom |
| 363 | (windingGaugePrimitive X f g hf hg l hl) x = windingGaugePeriod X f g hf hg l hl x := by |
| 364 | unfold windingGaugePrimitive |
| 365 | rw [Iso.inv_hom_id_apply] |
| 366 | |
| 367 | /-- This primitive computes the difference before passage to cohomology. -/ |
| 368 | theorem windingGaugePrimitive_d : |
| 369 | (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) X).d 0 1 (windingGaugePrimitive X f g hf hg l hl) = |
| 370 | singularWindingCochain X f hf - singularWindingCochain X g hg := by |
| 371 | apply (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 1).toLinearEquiv.injective |
| 372 | change (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 1).hom _ = |
| 373 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) 1).hom _ |
| 374 | ext s |
| 375 | rw [AlgebraicTopology.Cohomology.Singular.Augmentation.singularZeroCoboundary_apply, windingGaugePrimitive_value, windingGaugePrimitive_value, |
| 376 | map_sub] |
| 377 | dsimp only [Pi.sub_apply] |
| 378 | rw [singularWindingCochain_value, singularWindingCochain_value, |
| 379 | singularEdge_vertex, singularEdge_vertex] |
| 380 | apply (Rat.cast_injective (α := ℂ)) |
| 381 | apply mul_right_cancel₀ Complex.two_pi_I_ne_zero |
| 382 | push_cast |
| 383 | rw [sub_mul, sub_mul, windingGaugePeriod_spec, windingGaugePeriod_spec, |
| 384 | singularWindingValue_period, singularWindingValue_period, |
| 385 | singularLogIncrement_gauge X f g hf hg l hl] |
| 386 | simp only [simplexFunction, ContinuousMap.comp_apply] |
| 387 | change (l (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 1)) + |
| 388 | Complex.log (g (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 1))) - |
| 389 | Complex.log (f (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 1)))) - |
| 390 | (l (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 0)) + |
| 391 | Complex.log (g (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 0))) - |
| 392 | Complex.log (f (X.toSSetObjEquiv _ s (Convexity.StdSimplex.single 0)))) = _ |
| 393 | ring |
| 394 | |
| 395 | end |
| 396 | |
| 397 | variable (X : TopCat.{0}) (f₀ f₁ f₂ : C(X, ℂ)) |
| 398 | variable (h₀ : ∀ x, f₀ x ≠ 0) (h₁ : ∀ x, f₁ x ≠ 0) (h₂ : ∀ x, f₂ x ≠ 0) |
| 399 | variable (l₀₁ l₀₂ l₁₂ : C(X, ℂ)) |
| 400 | variable (h₀₁ : ∀ x, Complex.exp (l₀₁ x) * f₁ x = f₀ x) |
| 401 | variable (h₀₂ : ∀ x, Complex.exp (l₀₂ x) * f₂ x = f₀ x) |
| 402 | variable (h₁₂ : ∀ x, Complex.exp (l₁₂ x) * f₂ x = f₁ x) |
| 403 | |
| 404 | include h₂ h₀₁ h₀₂ h₁₂ in |
| 405 | /-- Actual equations force the multiplicative cocycle relation between their logarithms. -/ |
| 406 | theorem equationLog_cocycle (x : X) : |
| 407 | Complex.exp (l₀₁ x) * Complex.exp (l₁₂ x) = Complex.exp (l₀₂ x) := by |
| 408 | apply mul_right_cancel₀ (h₂ x) |
| 409 | rw [mul_assoc, h₁₂, h₀₁, h₀₂] |
| 410 | |
| 411 | /-- The triple-overlap correction is exactly the Chern logarithmic defect. -/ |
| 412 | theorem windingGaugePeriod_triangle (x : X) : |
| 413 | windingGaugePeriod X f₁ f₂ h₁ h₂ l₁₂ h₁₂ x - |
| 414 | windingGaugePeriod X f₀ f₂ h₀ h₂ l₀₂ h₀₂ x + |
| 415 | windingGaugePeriod X f₀ f₁ h₀ h₁ l₀₁ h₀₁ x = |
| 416 | (Logarithms.Construction.logarithmicDefect (l₀₁ x) (l₁₂ x) (l₀₂ x) |
| 417 | (equationLog_cocycle X f₀ f₁ f₂ h₂ l₀₁ l₀₂ l₁₂ h₀₁ h₀₂ h₁₂ x) : ℚ) := by |
| 418 | apply (Rat.cast_injective (α := ℂ)) |
| 419 | apply mul_right_cancel₀ Complex.two_pi_I_ne_zero |
| 420 | push_cast |
| 421 | rw [add_mul, sub_mul, windingGaugePeriod_spec, windingGaugePeriod_spec, |
| 422 | windingGaugePeriod_spec, ← Logarithms.Construction.logarithmicDefect_spec] |
| 423 | ring |
| 424 | |
| 425 | end |
| 426 | |
| 427 | end OAI.AlgebraicGeometry.DivisorClass.Chern.WindingSingular |