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.ComplexPoints.Analytic.ProjectiveCharts |
| 2 | import Mathlib.Topology.Algebra.Group.Quotient |
| 3 | import Mathlib.Analysis.Calculus.FDeriv.Basic |
| 4 | import Mathlib.Analysis.Calculus.FDeriv.Mul |
| 5 | import Mathlib.LinearAlgebra.SesquilinearForm.Star |
| 6 | import Mathlib.Analysis.SpecialFunctions.Complex.Log |
| 7 | import Mathlib.Analysis.SpecialFunctions.ExpDeriv |
| 8 | import OAI.AlgebraicGeometry.ComplexMultiplication.LatticeGaussian |
| 9 | import Mathlib.Analysis.Calculus.SmoothSeries |
| 10 | import Mathlib.Analysis.Complex.CauchyIntegral |
| 11 | import Mathlib.Analysis.Analytic.IsolatedZeros |
| 12 | import Mathlib.Analysis.Normed.Group.Tannery |
| 13 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveZeroLocus |
| 14 | import Mathlib.Analysis.Calculus.ContDiff.RCLike |
| 15 | import Mathlib.Analysis.Calculus.InverseFunctionTheorem.FDeriv |
| 16 | import Mathlib.MeasureTheory.Integral.DominatedConvergence |
| 17 | import Mathlib.MeasureTheory.Measure.Haar.Basic |
| 18 | import Mathlib.MeasureTheory.Group.Integral |
| 19 | import Mathlib.Analysis.Calculus.ParametricIntervalIntegral |
| 20 | import Mathlib.Analysis.Calculus.Deriv.Star |
| 21 | import Mathlib.Analysis.Calculus.FDeriv.Symmetric |
| 22 | import Mathlib.MeasureTheory.Integral.Prod |
| 23 | import Mathlib.Topology.MetricSpace.Pseudo.Lemmas |
| 24 | import Mathlib.Topology.Connected.TotallyDisconnected |
| 25 | |
| 26 | /-! # Projectivity Criterion -/ |
| 27 | |
| 28 | namespace OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion |
| 29 | |
| 30 | noncomputable section |
| 31 | |
| 32 | /-! |
| 33 | # RiemannProjectivity: the Riemann projectivity criterion |
| 34 | |
| 35 | This file proves the criterion in `Statements/RiemannProjectivity.lean` without importing that |
| 36 | statement stub. Positive integral Hermitian data give convergent theta sections |
| 37 | separating points and tangent vectors, hence a finite closed holomorphic |
| 38 | projective embedding. Conversely, projective curvature gives a positive |
| 39 | Hermitian form whose lattice periods are integral by local Stokes and grid |
| 40 | boundary cancellation. Averaging over the torus preserves those periods. |
| 41 | |
| 42 | The final theorem `Hodge.RiemannProjectivity.riemann_projectivity_criterion` has exactly the |
| 43 | hypotheses and conclusion of the committed specification. Its axiom audit uses |
| 44 | only `propext`, `Classical.choice`, and `Quot.sound`. |
| 45 | -/ |
| 46 | |
| 47 | namespace Construction |
| 48 | section |
| 49 | |
| 50 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 51 | |
| 52 | variable (H : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ) |
| 53 | |
| 54 | theorem hermitian_add_left (u v w : V) : H (u + v) w = H u w + H v w := by |
| 55 | simp |
| 56 | |
| 57 | theorem hermitian_smul_left (a : ℂ) (u v : V) : |
| 58 | H (a • u) v = star a * H u v := by |
| 59 | simp |
| 60 | |
| 61 | theorem hermitian_imaginary_self |
| 62 | (hsym : ∀ u v : V, H v u = star (H u v)) (u : V) : |
| 63 | (H u u).im = 0 := by |
| 64 | have h := congrArg Complex.im (hsym u u) |
| 65 | simp only [Complex.star_def, Complex.conj_im] at h |
| 66 | linarith |
| 67 | |
| 68 | theorem hermitian_imaginary_swap |
| 69 | (hsym : ∀ u v : V, H v u = star (H u v)) (u v : V) : |
| 70 | (H v u).im = -(H u v).im := by |
| 71 | rw [hsym] |
| 72 | rfl |
| 73 | |
| 74 | theorem hermitian_imaginary_mul_I (u v : V) : |
| 75 | (H u (Complex.I • v)).im = (H u v).re := by |
| 76 | simp [map_smul, Complex.mul_im] |
| 77 | |
| 78 | theorem hermitian_complex_invariant (u v : V) : |
| 79 | H (Complex.I • u) (Complex.I • v) = H u v := by |
| 80 | simp [map_smul, ← mul_assoc] |
| 81 | |
| 82 | theorem hermitian_riemann_positive |
| 83 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (u : V) (hu : u ≠ 0) : |
| 84 | 0 < (H u (Complex.I • u)).im := by |
| 85 | rw [hermitian_imaginary_mul_I] |
| 86 | exact hpos u hu |
| 87 | |
| 88 | theorem hermitian_skew |
| 89 | (hsym : ∀ u v : V, H v u = star (H u v)) (u v : V) : |
| 90 | H u v - H v u = 2 * Complex.I * ((H u v).im : ℂ) := by |
| 91 | rw [hsym u v] |
| 92 | apply Complex.ext |
| 93 | · simp |
| 94 | · simp only [Complex.sub_im, Complex.star_def, Complex.conj_im, |
| 95 | Complex.mul_im, Complex.mul_re, Complex.re_ofNat, Complex.im_ofNat, |
| 96 | Complex.I_re, Complex.I_im, Complex.ofReal_re, Complex.ofReal_im] |
| 97 | ring |
| 98 | |
| 99 | /-- The doubled polarization has a factor of automorphy without a choice of |
| 100 | semicharacter. Its definition uses the original Hermitian form. -/ |
| 101 | def doubledAutomorphy (l z : V) : ℂ := |
| 102 | Complex.exp (2 * (Real.pi : ℂ) * H l z + (Real.pi : ℂ) * H l l) |
| 103 | |
| 104 | theorem doubledAutomorphy_ne_zero (l z : V) : doubledAutomorphy H l z ≠ 0 := |
| 105 | Complex.exp_ne_zero _ |
| 106 | |
| 107 | @[simp] |
| 108 | theorem doubledAutomorphy_zero (z : V) : doubledAutomorphy H 0 z = 1 := by |
| 109 | simp [doubledAutomorphy] |
| 110 | |
| 111 | /-- Integrality of the original form, rather than a projectivity assumption, |
| 112 | proves the lattice translation cocycle identity. -/ |
| 113 | theorem doubledAutomorphy_add |
| 114 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 115 | (Λ : AddSubgroup V) |
| 116 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 117 | (l m z : V) (hl : l ∈ Λ) (hm : m ∈ Λ) : |
| 118 | doubledAutomorphy H (l + m) z = |
| 119 | doubledAutomorphy H l (z + m) * doubledAutomorphy H m z := by |
| 120 | obtain ⟨n, hn⟩ := hint l hl m hm |
| 121 | have hs := hermitian_skew H hsym l m |
| 122 | rw [hn] at hs |
| 123 | push_cast at hs |
| 124 | simp only [doubledAutomorphy, map_add, LinearMap.add_apply] |
| 125 | rw [← Complex.exp_add] |
| 126 | apply Complex.exp_eq_exp_iff_exists_int.mpr |
| 127 | refine ⟨-n, ?_⟩ |
| 128 | push_cast |
| 129 | linear_combination -(Real.pi : ℂ) * hs |
| 130 | |
| 131 | theorem doubledAutomorphy_differentiable [FiniteDimensional ℂ V] (l : V) : |
| 132 | Differentiable ℂ (doubledAutomorphy H l) := by |
| 133 | have hH : Differentiable ℂ (H l) := (H l).toContinuousLinearMap.differentiable |
| 134 | exact ((hH.const_mul _).add_const _).cexp |
| 135 | |
| 136 | section Bounds |
| 137 | |
| 138 | variable [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] |
| 139 | [FiniteDimensional ℝ V] [FiniteDimensional ℂ V] |
| 140 | |
| 141 | /-- The given sesquilinear form as a continuous real bilinear map. -/ |
| 142 | def hermitianBilin : V →L[ℝ] V →L[ℝ] ℂ := |
| 143 | (show V →ₗ[ℝ] (V →L[ℝ] ℂ) from |
| 144 | { toFun := fun x => (H x).toContinuousLinearMap.restrictScalars ℝ |
| 145 | map_add' := by |
| 146 | intro x y |
| 147 | ext z |
| 148 | exact hermitian_add_left H x y z |
| 149 | map_smul' := by |
| 150 | intro r x |
| 151 | ext y |
| 152 | change H (r • x) y = r • H x y |
| 153 | have hr : (r : ℂ) • x = r • x := algebraMap_smul ℂ r x |
| 154 | rw [← hr, Complex.real_smul, hermitian_smul_left] |
| 155 | simp }).toContinuousLinearMap |
| 156 | |
| 157 | @[simp] |
| 158 | theorem hermitianBilin_apply (u v : V) : hermitianBilin H u v = H u v := rfl |
| 159 | |
| 160 | omit [FiniteDimensional ℝ V] [FiniteDimensional ℂ V] in |
| 161 | theorem hermitian_real_smul_self (r : ℝ) (u : V) : |
| 162 | (H (r • u) (r • u)).re = r ^ 2 * (H u u).re := by |
| 163 | have hr : (r : ℂ) • u = r • u := algebraMap_smul ℂ r u |
| 164 | rw [← hr, hermitian_smul_left, map_smul] |
| 165 | simp [Complex.mul_re, pow_two, mul_assoc] |
| 166 | |
| 167 | theorem hermitian_self_re_continuous : Continuous (fun u : V => (H u u).re) := |
| 168 | Complex.continuous_re.comp ((hermitianBilin H).continuous₂.comp |
| 169 | (continuous_id.prodMk continuous_id)) |
| 170 | |
| 171 | /-- Strict positivity yields Gaussian decay in the original ambient norm. -/ |
| 172 | theorem hermitian_exists_lower_bound |
| 173 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) : |
| 174 | ∃ c : ℝ, 0 < c ∧ ∀ u : V, c * ‖u‖ ^ 2 ≤ (H u u).re := by |
| 175 | classical |
| 176 | by_cases hV : ∃ u : V, u ≠ 0 |
| 177 | · let : ProperSpace V := FiniteDimensional.proper ℝ V |
| 178 | have normalize_mem (u : V) (hu : u ≠ 0) : |
| 179 | ‖u‖⁻¹ • u ∈ Metric.sphere (0 : V) 1 := by |
| 180 | simp [norm_smul, hu] |
| 181 | obtain ⟨u, hu⟩ := hV |
| 182 | obtain ⟨v, hv, hmin⟩ := (isCompact_sphere (0 : V) 1).exists_isMinOn |
| 183 | ⟨‖u‖⁻¹ • u, normalize_mem u hu⟩ (hermitian_self_re_continuous H).continuousOn |
| 184 | have hv0 : v ≠ 0 := by |
| 185 | intro hv0 |
| 186 | simp [hv0] at hv |
| 187 | refine ⟨(H v v).re, hpos v hv0, fun x => ?_⟩ |
| 188 | by_cases hx : x = 0 |
| 189 | · simp [hx] |
| 190 | · have hb := hmin (normalize_mem x hx) |
| 191 | change (H v v).re ≤ (H (‖x‖⁻¹ • x) (‖x‖⁻¹ • x)).re at hb |
| 192 | rw [hermitian_real_smul_self] at hb |
| 193 | have hn : ‖x‖ ≠ 0 := norm_ne_zero_iff.mpr hx |
| 194 | have hb' := mul_le_mul_of_nonneg_left hb (sq_nonneg ‖x‖) |
| 195 | have hid : ‖x‖ ^ 2 * (‖x‖⁻¹ ^ 2 * (H x x).re) = (H x x).re := by |
| 196 | field_simp |
| 197 | rw [hid] at hb' |
| 198 | simpa [mul_comm] using hb' |
| 199 | · refine ⟨1, zero_lt_one, fun u => ?_⟩ |
| 200 | have hu : u = 0 := by simpa using not_exists.mp hV u |
| 201 | simp [hu] |
| 202 | |
| 203 | theorem hermitian_norm_le (u v : V) : |
| 204 | ‖H u v‖ ≤ ‖hermitianBilin H‖ * ‖u‖ * ‖v‖ := |
| 205 | ((hermitianBilin H u).le_opNorm v).trans |
| 206 | (mul_le_mul_of_nonneg_right ((hermitianBilin H).le_opNorm u) (norm_nonneg v)) |
| 207 | |
| 208 | theorem hermitian_linear_norm_le (u : V) : |
| 209 | ‖(H u).toContinuousLinearMap‖ ≤ ‖hermitianBilin H‖ * ‖u‖ := by |
| 210 | let f : V →L[ℂ] ℂ := (H u).toContinuousLinearMap |
| 211 | change ‖f‖ ≤ ‖hermitianBilin H‖ * ‖u‖ |
| 212 | apply f.opNorm_le_bound (M := ‖hermitianBilin H‖ * ‖u‖) |
| 213 | (mul_nonneg (norm_nonneg (hermitianBilin H)) (norm_nonneg u)) |
| 214 | exact hermitian_norm_le H u |
| 215 | |
| 216 | end Bounds |
| 217 | |
| 218 | /-- The inverse factor of automorphy is the summand of the theta series. -/ |
| 219 | def thetaTerm (l z : V) : ℂ := |
| 220 | Complex.exp (-(2 * (Real.pi : ℂ) * H l z + (Real.pi : ℂ) * H l l)) |
| 221 | |
| 222 | theorem thetaTerm_eq_inverse (l z : V) : |
| 223 | thetaTerm H l z = (doubledAutomorphy H l z)⁻¹ := Complex.exp_neg _ |
| 224 | |
| 225 | @[simp] |
| 226 | theorem thetaTerm_zero (z : V) : thetaTerm H 0 z = 1 := by |
| 227 | simp [thetaTerm] |
| 228 | |
| 229 | theorem thetaTerm_norm (l z : V) : |
| 230 | ‖thetaTerm H l z‖ = |
| 231 | Real.exp (-2 * Real.pi * (H l z).re - Real.pi * (H l l).re) := by |
| 232 | rw [thetaTerm, Complex.norm_exp] |
| 233 | congr 1 |
| 234 | simp only [Complex.neg_re, Complex.add_re, Complex.mul_re, Complex.ofReal_re, |
| 235 | Complex.ofReal_im, Complex.mul_im, Complex.re_ofNat, Complex.im_ofNat] |
| 236 | ring |
| 237 | |
| 238 | theorem hermitian_self_eq_real |
| 239 | (hsym : ∀ u v : V, H v u = star (H u v)) (u : V) : |
| 240 | H u u = ((H u u).re : ℂ) := by |
| 241 | apply Complex.ext |
| 242 | · rfl |
| 243 | · exact hermitian_imaginary_self H hsym u |
| 244 | |
| 245 | theorem thetaTerm_at_zero |
| 246 | (hsym : ∀ u v : V, H v u = star (H u v)) (l : V) : |
| 247 | thetaTerm H l 0 = (Real.exp (-Real.pi * (H l l).re) : ℂ) := by |
| 248 | rw [thetaTerm, map_zero, mul_zero, zero_add, hermitian_self_eq_real H hsym l, |
| 249 | Complex.ofReal_re, ← Complex.ofReal_mul, ← Complex.ofReal_neg, Complex.ofReal_exp] |
| 250 | congr 1 |
| 251 | push_cast |
| 252 | ring |
| 253 | |
| 254 | /-- A theta series indexed by the original additive lattice. -/ |
| 255 | def theta (Λ : AddSubgroup V) (z : V) : ℂ := ∑' l : Λ, thetaTerm H l z |
| 256 | |
| 257 | theorem thetaTerm_translation |
| 258 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 259 | (Λ : AddSubgroup V) |
| 260 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 261 | (l m : Λ) (z : V) : |
| 262 | thetaTerm H l (z + m) = doubledAutomorphy H m z * thetaTerm H (l + m) z := by |
| 263 | rw [thetaTerm_eq_inverse, thetaTerm_eq_inverse, |
| 264 | doubledAutomorphy_add H hsym Λ hint l m z l.property m.property, |
| 265 | mul_inv_rev, ← mul_assoc, mul_inv_cancel₀ (doubledAutomorphy_ne_zero H m z), one_mul] |
| 266 | |
| 267 | theorem theta_translation |
| 268 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 269 | (Λ : AddSubgroup V) |
| 270 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 271 | (m : Λ) (z : V) : |
| 272 | theta H Λ (z + m) = doubledAutomorphy H m z * theta H Λ z := by |
| 273 | unfold theta |
| 274 | simp_rw [thetaTerm_translation H hsym Λ hint] |
| 275 | rw [tsum_mul_left] |
| 276 | congr 1 |
| 277 | exact (Equiv.addRight m).tsum_eq (fun l : Λ => thetaTerm H l z) |
| 278 | |
| 279 | section ThetaAnalytic |
| 280 | |
| 281 | variable [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] |
| 282 | [FiniteDimensional ℝ V] [FiniteDimensional ℂ V] |
| 283 | (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 284 | |
| 285 | def thetaMajorant (c R : ℝ) (l : Λ) : ℝ := |
| 286 | Real.exp (-(Real.pi * c) * ‖l‖ ^ 2 + |
| 287 | (2 * Real.pi * ‖hermitianBilin H‖ * R) * ‖l‖) |
| 288 | |
| 289 | theorem thetaMajorant_summable (c R : ℝ) (hc : 0 < c) : |
| 290 | Summable (thetaMajorant H Λ c R) := by |
| 291 | let : DiscreteTopology Λ.toIntSubmodule := inferInstanceAs (DiscreteTopology Λ) |
| 292 | exact AlgebraicGeometry.ComplexMultiplication.LatticeGaussian.CM.lattice_gaussian_summable Λ.toIntSubmodule _ _ (mul_pos Real.pi_pos hc) |
| 293 | |
| 294 | omit [DiscreteTopology Λ] in |
| 295 | theorem thetaTerm_norm_le (c R : ℝ) |
| 296 | (hbound : ∀ u : V, c * ‖u‖ ^ 2 ≤ (H u u).re) |
| 297 | (l : Λ) (z : V) (hz : ‖z‖ ≤ R) : |
| 298 | ‖thetaTerm H l z‖ ≤ thetaMajorant H Λ c R l := by |
| 299 | rw [thetaTerm_norm, thetaMajorant] |
| 300 | apply Real.exp_le_exp.mpr |
| 301 | have hh : -(H l z).re ≤ ‖hermitianBilin H‖ * ‖(l : V)‖ * R := by |
| 302 | calc |
| 303 | -(H l z).re ≤ ‖H l z‖ := |
| 304 | (neg_le_abs _).trans (Complex.abs_re_le_norm _) |
| 305 | _ ≤ ‖hermitianBilin H‖ * ‖(l : V)‖ * ‖z‖ := hermitian_norm_le H l z |
| 306 | _ ≤ ‖hermitianBilin H‖ * ‖(l : V)‖ * R := by gcongr |
| 307 | have h1 := mul_le_mul_of_nonneg_left hh (show 0 ≤ 2 * Real.pi by positivity) |
| 308 | have h2 := mul_le_mul_of_nonneg_left (hbound l) Real.pi_pos.le |
| 309 | change -2 * Real.pi * (H l z).re - Real.pi * (H l l).re ≤ |
| 310 | -(Real.pi * c) * ‖(l : V)‖ ^ 2 + |
| 311 | (2 * Real.pi * ‖hermitianBilin H‖ * R) * ‖(l : V)‖ |
| 312 | nlinarith |
| 313 | |
| 314 | theorem thetaTerm_summable |
| 315 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (z : V) : |
| 316 | Summable (fun l : Λ => thetaTerm H l z) := by |
| 317 | obtain ⟨c, hc, hbound⟩ := hermitian_exists_lower_bound H hpos |
| 318 | exact (thetaMajorant_summable H Λ c ‖z‖ hc).of_norm_bounded |
| 319 | (fun l => thetaTerm_norm_le H Λ c ‖z‖ hbound l z le_rfl) |
| 320 | |
| 321 | theorem theta_at_zero_re_ge_one |
| 322 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 323 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) : |
| 324 | 1 ≤ (theta H Λ 0).re := by |
| 325 | have hs := Complex.hasSum_re (thetaTerm_summable H Λ hpos 0).hasSum |
| 326 | rw [theta, Complex.re_tsum (thetaTerm_summable H Λ hpos 0)] |
| 327 | have hn : ∀ l : Λ, 0 ≤ (thetaTerm H l 0).re := by |
| 328 | intro l |
| 329 | rw [thetaTerm_at_zero H hsym, Complex.ofReal_re] |
| 330 | exact (Real.exp_pos _).le |
| 331 | simpa only [AddSubgroup.coe_zero, thetaTerm_zero, Complex.one_re] using |
| 332 | (Summable.le_tsum hs.summable (0 : Λ) (fun l _ => hn l)) |
| 333 | |
| 334 | theorem theta_at_zero_ne_zero |
| 335 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 336 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) : theta H Λ 0 ≠ 0 := by |
| 337 | intro h |
| 338 | have hp := theta_at_zero_re_ge_one H Λ hsym hpos |
| 339 | rw [h, Complex.zero_re] at hp |
| 340 | norm_num at hp |
| 341 | |
| 342 | def thetaTermDerivative (l z : V) : V →L[ℂ] ℂ := |
| 343 | thetaTerm H l z • ((-2 * (Real.pi : ℂ)) • (H l).toContinuousLinearMap) |
| 344 | |
| 345 | omit [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] [FiniteDimensional ℝ V] in |
| 346 | theorem thetaTerm_hasFDerivAt (l z : V) : |
| 347 | HasFDerivAt (thetaTerm H l) (thetaTermDerivative H l z) z := by |
| 348 | have h := (((H l).toContinuousLinearMap.hasFDerivAt (x := z)).const_smul |
| 349 | (-2 * (Real.pi : ℂ))).add_const (-(Real.pi : ℂ) * H l l) |
| 350 | convert! h.cexp using 1 |
| 351 | · funext w |
| 352 | unfold thetaTerm |
| 353 | congr 1 |
| 354 | change -(2 * (Real.pi : ℂ) * H l w + (Real.pi : ℂ) * H l l) = |
| 355 | (-2 * (Real.pi : ℂ)) * H l w + (-(Real.pi : ℂ)) * H l l |
| 356 | ring |
| 357 | · unfold thetaTermDerivative thetaTerm |
| 358 | congr 2 |
| 359 | change -(2 * (Real.pi : ℂ) * H l z + (Real.pi : ℂ) * H l l) = |
| 360 | (-2 * (Real.pi : ℂ)) * H l z + (-(Real.pi : ℂ)) * H l l |
| 361 | ring |
| 362 | |
| 363 | def thetaDerivativeMajorant (c R : ℝ) (l : Λ) : ℝ := |
| 364 | (2 * Real.pi * ‖hermitianBilin H‖) * (‖l‖ * thetaMajorant H Λ c R l) |
| 365 | |
| 366 | theorem thetaDerivativeMajorant_summable (c R : ℝ) (hc : 0 < c) : |
| 367 | Summable (thetaDerivativeMajorant H Λ c R) := by |
| 368 | let : DiscreteTopology Λ.toIntSubmodule := inferInstanceAs (DiscreteTopology Λ) |
| 369 | have hs : Summable (fun l : Λ => ‖l‖ ^ 1 * |
| 370 | Real.exp (-(Real.pi * c) * ‖l‖ ^ 2 + |
| 371 | (2 * Real.pi * ‖hermitianBilin H‖ * R) * ‖l‖)) := |
| 372 | AlgebraicGeometry.ComplexMultiplication.LatticeGaussian.CM.lattice_gaussian_poly_summable Λ.toIntSubmodule |
| 373 | (Real.pi * c) (2 * Real.pi * ‖hermitianBilin H‖ * R) |
| 374 | (mul_pos Real.pi_pos hc) 1 |
| 375 | have h := hs.mul_left (2 * Real.pi * ‖hermitianBilin H‖) |
| 376 | change Summable (fun l : Λ => (2 * Real.pi * ‖hermitianBilin H‖) * |
| 377 | (‖l‖ * Real.exp (-(Real.pi * c) * ‖l‖ ^ 2 + |
| 378 | (2 * Real.pi * ‖hermitianBilin H‖ * R) * ‖l‖))) |
| 379 | simpa only [pow_one] using h |
| 380 | |
| 381 | omit [DiscreteTopology Λ] in |
| 382 | theorem thetaTermDerivative_norm_le (c R : ℝ) |
| 383 | (hbound : ∀ u : V, c * ‖u‖ ^ 2 ≤ (H u u).re) |
| 384 | (l : Λ) (z : V) (hz : ‖z‖ ≤ R) : |
| 385 | ‖thetaTermDerivative H l z‖ ≤ thetaDerivativeMajorant H Λ c R l := by |
| 386 | rw [thetaTermDerivative, norm_smul, norm_smul] |
| 387 | have hc : ‖(-2 * (Real.pi : ℂ))‖ = 2 * Real.pi := by simp |
| 388 | rw [hc] |
| 389 | calc |
| 390 | ‖thetaTerm H l z‖ * (2 * Real.pi * ‖(H l).toContinuousLinearMap‖) ≤ |
| 391 | thetaMajorant H Λ c R l * (2 * Real.pi * (‖hermitianBilin H‖ * ‖(l : V)‖)) := by |
| 392 | gcongr |
| 393 | · exact (Real.exp_pos _).le |
| 394 | · exact thetaTerm_norm_le H Λ c R hbound l z hz |
| 395 | · exact hermitian_linear_norm_le H l |
| 396 | _ = thetaDerivativeMajorant H Λ c R l := by |
| 397 | unfold thetaDerivativeMajorant |
| 398 | change _ = (2 * Real.pi * ‖hermitianBilin H‖) * (‖(l : V)‖ * thetaMajorant H Λ c R l) |
| 399 | ring |
| 400 | |
| 401 | /-- Gaussian derivative estimates prove holomorphicity of the actual series. -/ |
| 402 | theorem theta_hasFDerivAt |
| 403 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (z : V) : |
| 404 | HasFDerivAt (theta H Λ) (∑' l : Λ, thetaTermDerivative H l z) z := by |
| 405 | obtain ⟨c, hc, hbound⟩ := hermitian_exists_lower_bound H hpos |
| 406 | let R : ℝ := ‖z‖ + 1 |
| 407 | have hR : 0 < R := by dsimp [R]; positivity |
| 408 | have hz : z ∈ Metric.ball (0 : V) R := by |
| 409 | simp only [Metric.mem_ball, dist_zero_right] |
| 410 | dsimp [R] |
| 411 | linarith |
| 412 | exact hasFDerivAt_tsum_of_isPreconnected |
| 413 | (thetaDerivativeMajorant_summable H Λ c R hc) Metric.isOpen_ball |
| 414 | (convex_ball (0 : V) R).isPreconnected |
| 415 | (fun l w _ => thetaTerm_hasFDerivAt H l w) |
| 416 | (fun l w hw => thetaTermDerivative_norm_le H Λ c R hbound l w |
| 417 | (show ‖w‖ < R by simpa only [Metric.mem_ball, dist_zero_right] using hw).le) |
| 418 | (Metric.mem_ball_self hR) (thetaTerm_summable H Λ hpos 0) hz |
| 419 | |
| 420 | theorem theta_differentiable |
| 421 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) : Differentiable ℂ (theta H Λ) := |
| 422 | fun z => (theta_hasFDerivAt H Λ hpos z).differentiableAt |
| 423 | |
| 424 | end ThetaAnalytic |
| 425 | |
| 426 | /-- The right-hand data of RiemannProjectivity produce a nonzero entire theta function with |
| 427 | the required lattice automorphy, without additional real-space hypotheses. -/ |
| 428 | theorem exists_nonzero_holomorphic_theta [FiniteDimensional ℂ V] |
| 429 | (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 430 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 431 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 432 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) : |
| 433 | ∃ t : V → ℂ, Differentiable ℂ t ∧ t 0 ≠ 0 ∧ |
| 434 | ∀ (l : Λ) (z : V), t (z + l) = doubledAutomorphy H l z * t z := by |
| 435 | let : FiniteDimensional ℝ V := Module.Finite.trans ℂ V |
| 436 | exact ⟨theta H Λ, theta_differentiable H Λ hpos, theta_at_zero_ne_zero H Λ hsym hpos, |
| 437 | theta_translation H hsym Λ hint⟩ |
| 438 | |
| 439 | section Products |
| 440 | |
| 441 | variable [FiniteDimensional ℂ V] (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 442 | |
| 443 | /-- Three translates whose translation parameters sum to zero have the same |
| 444 | cubed multiplier. The two parameters are free. -/ |
| 445 | def thetaTriple (a b z : V) : ℂ := |
| 446 | theta H Λ (z - a) * theta H Λ (z - b) * theta H Λ (z + a + b) |
| 447 | |
| 448 | theorem thetaTriple_differentiable |
| 449 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (a b : V) : |
| 450 | Differentiable ℂ (thetaTriple H Λ a b) := by |
| 451 | let : FiniteDimensional ℝ V := Module.Finite.trans ℂ V |
| 452 | exact ((theta_differentiable H Λ hpos |>.comp (differentiable_id.sub_const a)).mul |
| 453 | (theta_differentiable H Λ hpos |>.comp (differentiable_id.sub_const b))).mul |
| 454 | (theta_differentiable H Λ hpos |>.comp |
| 455 | ((differentiable_id.add_const a).add_const b)) |
| 456 | |
| 457 | omit [FiniteDimensional ℂ V] in |
| 458 | theorem doubledAutomorphy_triple (l a b z : V) : |
| 459 | doubledAutomorphy H l (z - a) * doubledAutomorphy H l (z - b) * |
| 460 | doubledAutomorphy H l (z + a + b) = doubledAutomorphy H l z ^ 3 := by |
| 461 | simp only [doubledAutomorphy, ← Complex.exp_add, ← Complex.exp_nat_mul] |
| 462 | congr 1 |
| 463 | simp only [map_sub, map_add] |
| 464 | ring |
| 465 | |
| 466 | omit [FiniteDimensional ℂ V] [DiscreteTopology Λ] in |
| 467 | theorem thetaTriple_translation |
| 468 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 469 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 470 | (a b : V) (l : Λ) (z : V) : |
| 471 | thetaTriple H Λ a b (z + l) = doubledAutomorphy H l z ^ 3 * thetaTriple H Λ a b z := by |
| 472 | unfold thetaTriple |
| 473 | rw [show z + (l : V) - a = (z - a) + l by abel, |
| 474 | show z + (l : V) - b = (z - b) + l by abel, |
| 475 | show z + (l : V) + a + b = (z + a + b) + l by abel, |
| 476 | theta_translation H hsym Λ hint, theta_translation H hsym Λ hint, |
| 477 | theta_translation H hsym Λ hint] |
| 478 | calc |
| 479 | _ = (doubledAutomorphy H l (z - a) * doubledAutomorphy H l (z - b) * |
| 480 | doubledAutomorphy H l (z + a + b)) * |
| 481 | (theta H Λ (z - a) * theta H Λ (z - b) * theta H Λ (z + a + b)) := by ring |
| 482 | _ = _ := by rw [doubledAutomorphy_triple] |
| 483 | |
| 484 | /-- The identity theorem on a complex line shows that the triple family has |
| 485 | no common zero. This does not assert separation of points or tangent vectors. -/ |
| 486 | theorem exists_thetaTriple_ne_zero |
| 487 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 488 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (z : V) : |
| 489 | ∃ a b : V, thetaTriple H Λ a b z ≠ 0 := by |
| 490 | let : FiniteDimensional ℝ V := Module.Finite.trans ℂ V |
| 491 | by_contra! hzero |
| 492 | let f : ℂ → ℂ := fun t => theta H Λ (z - t • z) |
| 493 | let g : ℂ → ℂ := fun t => theta H Λ (z + t • z + t • z) |
| 494 | have hf : Differentiable ℂ f := (theta_differentiable H Λ hpos).comp |
| 495 | ((differentiable_const z).sub (differentiable_id.smul_const z)) |
| 496 | have hg : Differentiable ℂ g := (theta_differentiable H Λ hpos).comp |
| 497 | (((differentiable_const z).add (differentiable_id.smul_const z)).add |
| 498 | (differentiable_id.smul_const z)) |
| 499 | have hff : Differentiable ℂ (fun t => f t * f t) := hf.mul hf |
| 500 | have hfg : ∀ t ∈ (Set.univ : Set ℂ), (f t * f t) * g t = 0 := |
| 501 | fun t _ => hzero (t • z) (t • z) |
| 502 | have hff' : AnalyticOnNhd ℂ (fun t => f t * f t) Set.univ := |
| 503 | fun t _ => hff.analyticAt t |
| 504 | have hg' : AnalyticOnNhd ℂ g Set.univ := fun t _ => hg.analyticAt t |
| 505 | rcases hff'.eq_zero_or_eq_zero_of_mul_eq_zero hg' hfg isPreconnected_univ with h | h |
| 506 | · have hz := h 1 (Set.mem_univ _) |
| 507 | have hn := theta_at_zero_ne_zero H Λ hsym hpos |
| 508 | simp [f, hn] at hz |
| 509 | · have hz := h (-(1 / 2 : ℂ)) (Set.mem_univ _) |
| 510 | have he : z + (-(1 / 2 : ℂ)) • z + (-(1 / 2 : ℂ)) • z = 0 := by module |
| 511 | apply theta_at_zero_ne_zero H Λ hsym hpos |
| 512 | simpa only [g, he] using hz |
| 513 | |
| 514 | omit [FiniteDimensional ℂ V] [DiscreteTopology Λ] in |
| 515 | theorem thetaTriple_ne_zero_of_mk_eq |
| 516 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 517 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 518 | (a b x y : V) |
| 519 | (hxy : (QuotientAddGroup.mk x : V ⧸ Λ) = QuotientAddGroup.mk y) |
| 520 | (hx : thetaTriple H Λ a b x ≠ 0) : thetaTriple H Λ a b y ≠ 0 := by |
| 521 | have hl : x - y ∈ Λ := QuotientAddGroup.eq_iff_sub_mem.mp hxy |
| 522 | let l : Λ := ⟨x - y, hl⟩ |
| 523 | have he : y + (l : V) = x := by dsimp [l]; abel |
| 524 | have ht := thetaTriple_translation H Λ hsym hint a b l y |
| 525 | rw [he] at ht |
| 526 | intro hy |
| 527 | exact hx (by rw [ht, hy, mul_zero]) |
| 528 | |
| 529 | /-- Compactness extracts a finite family of entire functions with a common |
| 530 | multiplier and no common zero. The embedding requirements remain separate. -/ |
| 531 | theorem exists_finite_thetaTriples [CompactSpace (V ⧸ Λ)] |
| 532 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 533 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 534 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) : |
| 535 | ∃ s : Finset (V × V), ∀ z : V, ∃ ab ∈ s, thetaTriple H Λ ab.1 ab.2 z ≠ 0 := by |
| 536 | classical |
| 537 | let U (ab : V × V) : Set (V ⧸ Λ) := |
| 538 | QuotientAddGroup.mk '' {z : V | thetaTriple H Λ ab.1 ab.2 z ≠ 0} |
| 539 | have hopen (ab : V × V) : IsOpen (U ab) := |
| 540 | QuotientAddGroup.isOpenMap_coe _ |
| 541 | (isOpen_ne_fun (thetaTriple_differentiable H Λ hpos ab.1 ab.2).continuous continuous_const) |
| 542 | have hcover : (Set.univ : Set (V ⧸ Λ)) ⊆ ⋃ ab, U ab := by |
| 543 | intro q _ |
| 544 | obtain ⟨z, rfl⟩ := QuotientAddGroup.mk_surjective q |
| 545 | obtain ⟨a, b, h⟩ := exists_thetaTriple_ne_zero H Λ hsym hpos z |
| 546 | exact Set.mem_iUnion.mpr ⟨(a, b), z, h, rfl⟩ |
| 547 | obtain ⟨s, hs⟩ := isCompact_univ.elim_finite_subcover U hopen hcover |
| 548 | refine ⟨s, fun z => ?_⟩ |
| 549 | have hz := hs (Set.mem_univ (QuotientAddGroup.mk z : V ⧸ Λ)) |
| 550 | obtain ⟨ab, hab, w, hw, hwz⟩ := |
| 551 | (show ∃ ab ∈ s, ∃ w, thetaTriple H Λ ab.1 ab.2 w ≠ 0 ∧ |
| 552 | (QuotientAddGroup.mk w : V ⧸ Λ) = QuotientAddGroup.mk z from by |
| 553 | simpa only [Set.mem_iUnion, Set.mem_image, Set.mem_ofPred_eq, exists_prop, U] using hz) |
| 554 | exact ⟨ab, hab, thetaTriple_ne_zero_of_mk_eq H Λ hsym hint ab.1 ab.2 w z hwz hw⟩ |
| 555 | |
| 556 | end Products |
| 557 | |
| 558 | section Powers |
| 559 | |
| 560 | open Filter _root_.Topology |
| 561 | |
| 562 | def powerHermitian (n : ℕ) : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ := (n : ℂ) • H |
| 563 | |
| 564 | @[simp] |
| 565 | theorem powerHermitian_apply (n : ℕ) (u v : V) : |
| 566 | powerHermitian H n u v = (n : ℂ) * H u v := rfl |
| 567 | |
| 568 | theorem powerHermitian_symm |
| 569 | (hsym : ∀ u v : V, H v u = star (H u v)) (n : ℕ) (u v : V) : |
| 570 | powerHermitian H n v u = star (powerHermitian H n u v) := by |
| 571 | simp [hsym u v] |
| 572 | |
| 573 | theorem powerHermitian_positive |
| 574 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (n : ℕ) (hn : 0 < n) |
| 575 | (u : V) (hu : u ≠ 0) : 0 < (powerHermitian H n u u).re := by |
| 576 | simp only [powerHermitian_apply, Complex.mul_re, Complex.natCast_re, Complex.natCast_im, |
| 577 | zero_mul, sub_zero] |
| 578 | exact mul_pos (by exact_mod_cast hn) (hpos u hu) |
| 579 | |
| 580 | theorem hermitian_self_nonneg |
| 581 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (u : V) : 0 ≤ (H u u).re := by |
| 582 | by_cases hu : u = 0 |
| 583 | · simp [hu] |
| 584 | · exact (hpos u hu).le |
| 585 | |
| 586 | theorem hermitian_self_add_re |
| 587 | (hsym : ∀ u v : V, H v u = star (H u v)) (u v : V) : |
| 588 | (H (u + v) (u + v)).re = (H u u).re + 2 * (H v u).re + (H v v).re := by |
| 589 | simp only [map_add, LinearMap.add_apply, Complex.add_re] |
| 590 | have h := congrArg Complex.re (hsym u v) |
| 591 | simp only [Complex.star_def, Complex.conj_re] at h |
| 592 | linarith |
| 593 | |
| 594 | theorem powerTerm_norm (n : ℕ) (l z : V) : |
| 595 | ‖thetaTerm (powerHermitian H n) l z‖ = |
| 596 | Real.exp ((n : ℝ) * (-2 * Real.pi * (H l z).re - Real.pi * (H l l).re)) := by |
| 597 | rw [thetaTerm_norm] |
| 598 | simp only [powerHermitian_apply, Complex.mul_re, Complex.natCast_re, Complex.natCast_im, |
| 599 | zero_mul, sub_zero] |
| 600 | congr 1 |
| 601 | ring |
| 602 | |
| 603 | theorem doubledAutomorphy_power (n : ℕ) (l z : V) : |
| 604 | doubledAutomorphy (powerHermitian H n) l z = doubledAutomorphy H l z ^ n := by |
| 605 | simp only [doubledAutomorphy, powerHermitian_apply, ← Complex.exp_nat_mul] |
| 606 | congr 1 |
| 607 | ring |
| 608 | |
| 609 | theorem powerHermitian_integral (Λ : AddSubgroup V) |
| 610 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 611 | (n : ℕ) (u : V) (hu : u ∈ Λ) (v : V) (hv : v ∈ Λ) : |
| 612 | ∃ m : ℤ, (powerHermitian H n u v).im = (m : ℝ) := by |
| 613 | obtain ⟨m, hm⟩ := hint u hu v hv |
| 614 | refine ⟨(n : ℤ) * m, ?_⟩ |
| 615 | simp [Complex.mul_im, hm] |
| 616 | |
| 617 | def powerMetricNorm (Λ : AddSubgroup V) (n : ℕ) (z : V) : ℝ := |
| 618 | ‖theta (powerHermitian H n) Λ z‖ * Real.exp (-Real.pi * (n : ℝ) * (H z z).re) |
| 619 | |
| 620 | def powerGaussian (Λ : AddSubgroup V) (n : ℕ) (z : V) (l : Λ) : ℝ := |
| 621 | Real.exp (-Real.pi * (n : ℝ) * (H (z + l) (z + l)).re) |
| 622 | |
| 623 | theorem powerTerm_weighted_norm |
| 624 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 625 | (Λ : AddSubgroup V) (n : ℕ) (z : V) (l : Λ) : |
| 626 | ‖thetaTerm (powerHermitian H n) l z‖ * |
| 627 | Real.exp (-Real.pi * (n : ℝ) * (H z z).re) = powerGaussian H Λ n z l := by |
| 628 | rw [powerTerm_norm, powerGaussian, ← Real.exp_add, hermitian_self_add_re H hsym] |
| 629 | congr 1 |
| 630 | ring |
| 631 | |
| 632 | theorem powerMetricNorm_nonneg (Λ : AddSubgroup V) (n : ℕ) (z : V) : |
| 633 | 0 ≤ powerMetricNorm H Λ n z := mul_nonneg (norm_nonneg _) (Real.exp_pos _).le |
| 634 | |
| 635 | theorem powerGaussian_le_one |
| 636 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 637 | (Λ : AddSubgroup V) (n : ℕ) (hn : 0 < n) (z : V) (l : Λ) : |
| 638 | powerGaussian H Λ n z l ≤ powerGaussian H Λ 1 z l := by |
| 639 | unfold powerGaussian |
| 640 | apply Real.exp_le_exp.mpr |
| 641 | have hn' : (1 : ℝ) ≤ n := by exact_mod_cast hn |
| 642 | have hq := hermitian_self_nonneg H hpos (z + l) |
| 643 | have hp := mul_nonneg Real.pi_pos.le hq |
| 644 | norm_num only [Nat.cast_one, mul_one] |
| 645 | nlinarith [mul_nonneg (sub_nonneg.mpr hn') hp] |
| 646 | |
| 647 | variable [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] |
| 648 | [FiniteDimensional ℝ V] [FiniteDimensional ℂ V] |
| 649 | (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 650 | |
| 651 | theorem powerTerm_summable |
| 652 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (n : ℕ) (hn : 0 < n) (z : V) : |
| 653 | Summable (fun l : Λ => thetaTerm (powerHermitian H n) l z) := |
| 654 | thetaTerm_summable _ Λ (powerHermitian_positive H hpos n hn) z |
| 655 | |
| 656 | theorem powerTheta_differentiable |
| 657 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (n : ℕ) (hn : 0 < n) : |
| 658 | Differentiable ℂ (theta (powerHermitian H n) Λ) := |
| 659 | theta_differentiable _ Λ (powerHermitian_positive H hpos n hn) |
| 660 | |
| 661 | theorem powerGaussian_summable |
| 662 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 663 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (n : ℕ) (hn : 0 < n) (z : V) : |
| 664 | Summable (powerGaussian H Λ n z) := by |
| 665 | convert! (powerTerm_summable H Λ hpos n hn z).norm.mul_right |
| 666 | (Real.exp (-Real.pi * (n : ℝ) * (H z z).re)) using 1 |
| 667 | funext l |
| 668 | exact (powerTerm_weighted_norm H hsym Λ n z l).symm |
| 669 | |
| 670 | theorem powerMetricNorm_le_gaussian |
| 671 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 672 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (n : ℕ) (hn : 0 < n) (z : V) : |
| 673 | powerMetricNorm H Λ n z ≤ ∑' l, powerGaussian H Λ n z l := by |
| 674 | unfold powerMetricNorm theta |
| 675 | calc |
| 676 | _ ≤ (∑' l : Λ, ‖thetaTerm (powerHermitian H n) l z‖) * |
| 677 | Real.exp (-Real.pi * (n : ℝ) * (H z z).re) := |
| 678 | mul_le_mul_of_nonneg_right |
| 679 | (norm_tsum_le_tsum_norm (powerTerm_summable H Λ hpos n hn z).norm) (Real.exp_pos _).le |
| 680 | _ = _ := by |
| 681 | rw [← tsum_mul_right] |
| 682 | exact tsum_congr (fun l => powerTerm_weighted_norm H hsym Λ n z l) |
| 683 | |
| 684 | omit [DiscreteTopology Λ] in |
| 685 | theorem powerGaussian_le_majorant |
| 686 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 687 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 688 | (c R : ℝ) (hbound : ∀ u : V, c * ‖u‖ ^ 2 ≤ (H u u).re) |
| 689 | (n : ℕ) (hn : 0 < n) (z : V) (hz : ‖z‖ ≤ R) (l : Λ) : |
| 690 | powerGaussian H Λ n z l ≤ thetaMajorant H Λ c R l := by |
| 691 | apply (powerGaussian_le_one H hpos Λ n hn z l).trans |
| 692 | rw [← powerTerm_weighted_norm H hsym] |
| 693 | have ht : thetaTerm (powerHermitian H 1) l z = thetaTerm H l z := by |
| 694 | simp [powerHermitian] |
| 695 | rw [ht] |
| 696 | apply le_trans _ (thetaTerm_norm_le H Λ c R hbound l z hz) |
| 697 | apply mul_le_of_le_one_right (norm_nonneg _) |
| 698 | apply Real.exp_le_one_iff.mpr |
| 699 | have hp := mul_nonneg Real.pi_pos.le (hermitian_self_nonneg H hpos z) |
| 700 | norm_num only [Nat.cast_one, mul_one] |
| 701 | linarith |
| 702 | |
| 703 | omit [DiscreteTopology Λ] in |
| 704 | theorem powerGaussian_moving_tendsto_zero |
| 705 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 706 | (w : ℕ → V) (z : V) (hw : Tendsto w atTop (𝓝 z)) (hz : z ∉ Λ) (l : Λ) : |
| 707 | Tendsto (fun n : ℕ => powerGaussian H Λ n (w n) l) atTop (𝓝 0) := by |
| 708 | have hne : z + (l : V) ≠ 0 := by |
| 709 | intro h |
| 710 | have he : z = -(l : V) := eq_neg_of_add_eq_zero_left h |
| 711 | exact hz (he.symm ▸ Λ.neg_mem l.property) |
| 712 | let q : ℝ := (H (z + l) (z + l)).re |
| 713 | have hq : 0 < q := hpos (z + l) hne |
| 714 | have ht := (hermitian_self_re_continuous H).continuousAt.tendsto.comp |
| 715 | (hw.add_const (l : V)) |
| 716 | have hb : ∀ᶠ n in atTop, q / 2 ≤ (H (w n + l) (w n + l)).re := |
| 717 | (ht.eventually (lt_mem_nhds (show q / 2 < q by linarith))).mono (fun _ h => h.le) |
| 718 | have ha : Real.exp (-Real.pi * q / 2) < 1 := by |
| 719 | apply Real.exp_lt_one_iff.mpr |
| 720 | nlinarith [mul_pos Real.pi_pos hq] |
| 721 | apply squeeze_zero' (Eventually.of_forall (fun _ => (Real.exp_pos _).le)) |
| 722 | _ (tendsto_pow_atTop_nhds_zero_of_lt_one (Real.exp_pos _).le ha) |
| 723 | filter_upwards [hb] with n hn |
| 724 | change Real.exp (-Real.pi * (n : ℝ) * (H (w n + l) (w n + l)).re) ≤ |
| 725 | Real.exp (-Real.pi * q / 2) ^ n |
| 726 | rw [← Real.exp_nat_mul] |
| 727 | apply Real.exp_le_exp.mpr |
| 728 | have h := mul_le_mul_of_nonneg_left hn |
| 729 | (mul_nonneg Real.pi_pos.le (Nat.cast_nonneg n : (0 : ℝ) ≤ n)) |
| 730 | nlinarith |
| 731 | |
| 732 | theorem powerMetricNorm_moving_tendsto_zero |
| 733 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 734 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 735 | (w : ℕ → V) (z : V) (hw : Tendsto w atTop (𝓝 z)) (hz : z ∉ Λ) : |
| 736 | Tendsto (fun n : ℕ => powerMetricNorm H Λ n (w n)) atTop (𝓝 0) := by |
| 737 | obtain ⟨c, hc, hbound⟩ := hermitian_exists_lower_bound H hpos |
| 738 | let R : ℝ := ‖z‖ + 1 |
| 739 | have hb : ∀ᶠ n in atTop, ‖w n‖ ≤ R := |
| 740 | (hw.norm.eventually (gt_mem_nhds (show ‖z‖ < R by dsimp [R]; linarith))).mono |
| 741 | (fun _ h => h.le) |
| 742 | have h := tendsto_tsum_of_dominated_convergence (thetaMajorant_summable H Λ c R hc) |
| 743 | (fun l => powerGaussian_moving_tendsto_zero H Λ hpos w z hw hz l) |
| 744 | (show ∀ᶠ n : ℕ in atTop, ∀ l : Λ, |
| 745 | ‖powerGaussian H Λ n (w n) l‖ ≤ thetaMajorant H Λ c R l from by |
| 746 | filter_upwards [eventually_ge_atTop 1, hb] with n hn hR l |
| 747 | rw [Real.norm_eq_abs, abs_of_nonneg |
| 748 | (show 0 ≤ powerGaussian H Λ n (w n) l from (Real.exp_pos _).le)] |
| 749 | exact powerGaussian_le_majorant H Λ hsym hpos c R hbound n hn (w n) hR l) |
| 750 | simp only [tsum_zero] at h |
| 751 | apply squeeze_zero' (Eventually.of_forall (fun n => powerMetricNorm_nonneg H Λ n (w n))) _ h |
| 752 | filter_upwards [eventually_ge_atTop 1] with n hn |
| 753 | exact powerMetricNorm_le_gaussian H Λ hsym hpos n hn (w n) |
| 754 | |
| 755 | omit [DiscreteTopology Λ] in |
| 756 | theorem powerTerm_small_norm_le (n : ℕ) (C : ℝ) (l z : V) (hz : (n : ℝ) * ‖z‖ ≤ C) : |
| 757 | ‖thetaTerm (powerHermitian H n) l z‖ ≤ |
| 758 | Real.exp (-(n : ℝ) * Real.pi * (H l l).re + |
| 759 | 2 * Real.pi * ‖hermitianBilin H‖ * ‖l‖ * C) := by |
| 760 | rw [powerTerm_norm] |
| 761 | apply Real.exp_le_exp.mpr |
| 762 | have hl : (n : ℝ) * (-(H l z).re) ≤ ‖hermitianBilin H‖ * ‖l‖ * C := by |
| 763 | calc |
| 764 | (n : ℝ) * (-(H l z).re) ≤ (n : ℝ) * ‖H l z‖ := |
| 765 | mul_le_mul_of_nonneg_left ((neg_le_abs _).trans (Complex.abs_re_le_norm _)) |
| 766 | (Nat.cast_nonneg n) |
| 767 | _ ≤ (n : ℝ) * (‖hermitianBilin H‖ * ‖l‖ * ‖z‖) := by |
| 768 | gcongr |
| 769 | exact hermitian_norm_le H l z |
| 770 | _ = (‖hermitianBilin H‖ * ‖l‖) * ((n : ℝ) * ‖z‖) := by ring |
| 771 | _ ≤ _ := mul_le_mul_of_nonneg_left hz |
| 772 | (mul_nonneg (norm_nonneg (hermitianBilin H)) (norm_nonneg l)) |
| 773 | have h := mul_le_mul_of_nonneg_left hl (show 0 ≤ 2 * Real.pi by positivity) |
| 774 | nlinarith |
| 775 | |
| 776 | omit [DiscreteTopology Λ] in |
| 777 | theorem powerTerm_small_norm_le_majorant |
| 778 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 779 | (c C : ℝ) (hbound : ∀ u : V, c * ‖u‖ ^ 2 ≤ (H u u).re) |
| 780 | (n : ℕ) (hn : 0 < n) (l : Λ) (z : V) (hz : (n : ℝ) * ‖z‖ ≤ C) : |
| 781 | ‖thetaTerm (powerHermitian H n) l z‖ ≤ thetaMajorant H Λ c C l := by |
| 782 | apply (powerTerm_small_norm_le H n C l z hz).trans |
| 783 | rw [thetaMajorant] |
| 784 | apply Real.exp_le_exp.mpr |
| 785 | have hn' : (1 : ℝ) ≤ n := by exact_mod_cast hn |
| 786 | have hq : c * ‖(l : V)‖ ^ 2 ≤ (n : ℝ) * (H l l).re := |
| 787 | (hbound l).trans (le_mul_of_one_le_left (hermitian_self_nonneg H hpos l) hn') |
| 788 | have h := mul_le_mul_of_nonneg_left hq Real.pi_pos.le |
| 789 | change -(n : ℝ) * Real.pi * (H l l).re + 2 * Real.pi * ‖hermitianBilin H‖ * ‖(l : V)‖ * C ≤ |
| 790 | -(Real.pi * c) * ‖(l : V)‖ ^ 2 + (2 * Real.pi * ‖hermitianBilin H‖ * C) * ‖(l : V)‖ |
| 791 | nlinarith |
| 792 | |
| 793 | omit [DiscreteTopology Λ] in |
| 794 | theorem powerTerm_small_tendsto_zero |
| 795 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 796 | (w : ℕ → V) (C : ℝ) (hw : ∀ᶠ n : ℕ in atTop, (n : ℝ) * ‖w n‖ ≤ C) |
| 797 | (l : V) (hl : l ≠ 0) : |
| 798 | Tendsto (fun n : ℕ => thetaTerm (powerHermitian H n) l (w n)) atTop (𝓝 0) := by |
| 799 | have hq := hpos l hl |
| 800 | have ha : Real.exp (-Real.pi * (H l l).re) < 1 := by |
| 801 | apply Real.exp_lt_one_iff.mpr |
| 802 | nlinarith [mul_pos Real.pi_pos hq] |
| 803 | have ht := (tendsto_pow_atTop_nhds_zero_of_lt_one (Real.exp_pos _).le ha).mul_const |
| 804 | (Real.exp (2 * Real.pi * ‖hermitianBilin H‖ * ‖l‖ * C)) |
| 805 | rw [zero_mul] at ht |
| 806 | apply tendsto_zero_iff_norm_tendsto_zero.mpr |
| 807 | apply squeeze_zero' (Eventually.of_forall (fun _ => norm_nonneg _)) _ ht |
| 808 | filter_upwards [hw] with n hn |
| 809 | rw [← Real.exp_nat_mul, ← Real.exp_add] |
| 810 | convert! powerTerm_small_norm_le H n C l (w n) hn using 1 |
| 811 | congr 1 |
| 812 | ring |
| 813 | |
| 814 | theorem powerTheta_small_tendsto_one |
| 815 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 816 | (w : ℕ → V) (C : ℝ) (hw : ∀ᶠ n : ℕ in atTop, (n : ℝ) * ‖w n‖ ≤ C) : |
| 817 | Tendsto (fun n : ℕ => theta (powerHermitian H n) Λ (w n)) atTop (𝓝 1) := by |
| 818 | classical |
| 819 | obtain ⟨c, hc, hbound⟩ := hermitian_exists_lower_bound H hpos |
| 820 | have ht : ∀ l : Λ, Tendsto (fun n : ℕ => thetaTerm (powerHermitian H n) l (w n)) |
| 821 | atTop (𝓝 (if l = 0 then (1 : ℂ) else 0)) := by |
| 822 | intro l |
| 823 | by_cases hl : l = 0 |
| 824 | · simp only [hl, AddSubgroup.coe_zero, thetaTerm_zero, ↓reduceIte] |
| 825 | exact tendsto_const_nhds |
| 826 | · rw [ite_eq_right hl] |
| 827 | exact powerTerm_small_tendsto_zero H hpos w C hw l (fun h => hl (Subtype.ext h)) |
| 828 | have h := tendsto_tsum_of_dominated_convergence (thetaMajorant_summable H Λ c C hc) ht |
| 829 | (show ∀ᶠ n : ℕ in atTop, ∀ l : Λ, |
| 830 | ‖thetaTerm (powerHermitian H n) l (w n)‖ ≤ thetaMajorant H Λ c C l from by |
| 831 | filter_upwards [eventually_ge_atTop 1, hw] with n hn hC l |
| 832 | exact powerTerm_small_norm_le_majorant H Λ hpos c C hbound n hn l (w n) hC) |
| 833 | simpa only [theta, tsum_ite_eq] using h |
| 834 | |
| 835 | theorem powerMetricNorm_small_tendsto_one |
| 836 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 837 | (w : ℕ → V) (C : ℝ) (hw : ∀ᶠ n : ℕ in atTop, (n : ℝ) * ‖w n‖ ≤ C) |
| 838 | (hw0 : Tendsto w atTop (𝓝 0)) : |
| 839 | Tendsto (fun n : ℕ => powerMetricNorm H Λ n (w n)) atTop (𝓝 1) := by |
| 840 | have ht : Tendsto (fun n : ℕ => (‖hermitianBilin H‖ * C) * ‖w n‖) atTop (𝓝 0) := by |
| 841 | simpa only [norm_zero, mul_zero] using hw0.norm.const_mul (‖hermitianBilin H‖ * C) |
| 842 | have hq : Tendsto (fun n : ℕ => (n : ℝ) * (H (w n) (w n)).re) atTop (𝓝 0) := by |
| 843 | apply squeeze_zero' (Eventually.of_forall (fun n => |
| 844 | mul_nonneg (Nat.cast_nonneg n) (hermitian_self_nonneg H hpos (w n)))) _ ht |
| 845 | filter_upwards [hw] with n hn |
| 846 | calc |
| 847 | (n : ℝ) * (H (w n) (w n)).re ≤ (n : ℝ) * ‖H (w n) (w n)‖ := |
| 848 | mul_le_mul_of_nonneg_left ((le_abs_self _).trans (Complex.abs_re_le_norm _)) |
| 849 | (Nat.cast_nonneg n) |
| 850 | _ ≤ (n : ℝ) * (‖hermitianBilin H‖ * ‖w n‖ * ‖w n‖) := by |
| 851 | gcongr |
| 852 | exact hermitian_norm_le H (w n) (w n) |
| 853 | _ = (‖hermitianBilin H‖ * ‖w n‖) * ((n : ℝ) * ‖w n‖) := by ring |
| 854 | _ ≤ (‖hermitianBilin H‖ * ‖w n‖) * C := |
| 855 | mul_le_mul_of_nonneg_left hn |
| 856 | (mul_nonneg (norm_nonneg (hermitianBilin H)) (norm_nonneg (w n))) |
| 857 | _ = _ := by ring |
| 858 | have he : Tendsto (fun n : ℕ => Real.exp (-Real.pi * (n : ℝ) * (H (w n) (w n)).re)) |
| 859 | atTop (𝓝 1) := by |
| 860 | have h := Real.continuous_exp.continuousAt.tendsto.comp (hq.const_mul (-Real.pi)) |
| 861 | convert! h using 1 |
| 862 | all_goals simp only [Function.comp_def, ← mul_assoc, mul_zero, Real.exp_zero] |
| 863 | have h := (powerTheta_small_tendsto_one H Λ hpos w C hw).norm.mul he |
| 864 | simpa only [powerMetricNorm, norm_one, one_mul] using h |
| 865 | |
| 866 | end Powers |
| 867 | |
| 868 | section LatticeApproximation |
| 869 | |
| 870 | open Filter _root_.Topology |
| 871 | |
| 872 | variable (Λ : AddSubgroup V) [CompactSpace (V ⧸ Λ)] |
| 873 | |
| 874 | omit [NormedSpace ℂ V] in |
| 875 | /-- Compactness of the quotient gives a uniform distance bound to the lattice. -/ |
| 876 | theorem exists_rounding_bound : |
| 877 | ∃ C : ℝ, 0 ≤ C ∧ ∀ z : V, ∃ l : Λ, ‖z - l‖ ≤ C := by |
| 878 | classical |
| 879 | let U (z : V) : Set (V ⧸ Λ) := QuotientAddGroup.mk '' Metric.ball z 1 |
| 880 | have hopen (z : V) : IsOpen (U z) := QuotientAddGroup.isOpenMap_coe _ Metric.isOpen_ball |
| 881 | have hcover : (Set.univ : Set (V ⧸ Λ)) ⊆ ⋃ z, U z := by |
| 882 | intro q _ |
| 883 | obtain ⟨z, rfl⟩ := QuotientAddGroup.mk_surjective q |
| 884 | exact Set.mem_iUnion.mpr ⟨z, z, Metric.mem_ball_self zero_lt_one, rfl⟩ |
| 885 | obtain ⟨s, hs⟩ := isCompact_univ.elim_finite_subcover U hopen hcover |
| 886 | refine ⟨(∑ z ∈ s, ‖z‖) + 1, by positivity, fun z => ?_⟩ |
| 887 | have hz := hs (Set.mem_univ (QuotientAddGroup.mk z : V ⧸ Λ)) |
| 888 | obtain ⟨c, hc, w, hw, hwz⟩ := |
| 889 | (show ∃ c ∈ s, ∃ w ∈ Metric.ball c 1, |
| 890 | (QuotientAddGroup.mk w : V ⧸ Λ) = QuotientAddGroup.mk z from by |
| 891 | simpa only [Set.mem_iUnion, Set.mem_image, exists_prop, U] using hz) |
| 892 | have hl : z - w ∈ Λ := QuotientAddGroup.eq_iff_sub_mem.mp hwz.symm |
| 893 | refine ⟨⟨z - w, hl⟩, ?_⟩ |
| 894 | change ‖z - (z - w)‖ ≤ _ |
| 895 | rw [sub_sub_cancel] |
| 896 | have hc' : ‖c‖ ≤ ∑ x ∈ s, ‖x‖ := Finset.single_le_sum (fun x _ => norm_nonneg x) hc |
| 897 | have hw' : ‖w - c‖ < 1 := by simpa only [Metric.mem_ball, dist_eq_norm] using hw |
| 898 | have hn := norm_add_le (w - c) c |
| 899 | rw [sub_add_cancel] at hn |
| 900 | linarith |
| 901 | |
| 902 | def roundingBound : ℝ := (exists_rounding_bound Λ).choose |
| 903 | |
| 904 | omit [NormedSpace ℂ V] in |
| 905 | theorem roundingBound_nonneg : 0 ≤ roundingBound Λ := (exists_rounding_bound Λ).choose_spec.1 |
| 906 | |
| 907 | def roundToLattice (z : V) : Λ := ((exists_rounding_bound Λ).choose_spec.2 z).choose |
| 908 | |
| 909 | omit [NormedSpace ℂ V] in |
| 910 | theorem roundToLattice_norm_le (z : V) : ‖z - roundToLattice Λ z‖ ≤ roundingBound Λ := |
| 911 | ((exists_rounding_bound Λ).choose_spec.2 z).choose_spec |
| 912 | |
| 913 | def divisionApproximation (n : ℕ) (z : V) : V := |
| 914 | (n : ℝ)⁻¹ • (roundToLattice Λ ((n : ℝ) • z) : V) |
| 915 | |
| 916 | theorem divisionApproximation_smul (n : ℕ) (hn : 0 < n) (z : V) : |
| 917 | (n : ℝ) • divisionApproximation Λ n z = roundToLattice Λ ((n : ℝ) • z) := by |
| 918 | have hn' : (n : ℝ) ≠ 0 := by exact_mod_cast hn.ne' |
| 919 | simp only [divisionApproximation, smul_smul, mul_inv_cancel₀ hn', one_smul] |
| 920 | |
| 921 | theorem divisionApproximation_mem (n : ℕ) (hn : 0 < n) (z : V) : |
| 922 | n • divisionApproximation Λ n z ∈ Λ := by |
| 923 | rw [← Nat.cast_smul_eq_nsmul ℝ, divisionApproximation_smul Λ n hn z] |
| 924 | exact (roundToLattice Λ ((n : ℝ) • z)).property |
| 925 | |
| 926 | theorem divisionApproximation_scaled_error (n : ℕ) (hn : 0 < n) (z : V) : |
| 927 | (n : ℝ) * ‖z - divisionApproximation Λ n z‖ ≤ roundingBound Λ := by |
| 928 | have he : (n : ℝ) • (z - divisionApproximation Λ n z) = |
| 929 | (n : ℝ) • z - roundToLattice Λ ((n : ℝ) • z) := by |
| 930 | rw [smul_sub, divisionApproximation_smul Λ n hn z] |
| 931 | have h := roundToLattice_norm_le Λ ((n : ℝ) • z) |
| 932 | rw [← he, norm_smul, Real.norm_eq_abs, abs_of_nonneg (Nat.cast_nonneg n)] at h |
| 933 | exact h |
| 934 | |
| 935 | theorem divisionApproximation_error_tendsto_zero (z : V) : |
| 936 | Tendsto (fun n : ℕ => z - divisionApproximation Λ n z) atTop (𝓝 0) := by |
| 937 | apply tendsto_zero_iff_norm_tendsto_zero.mpr |
| 938 | apply squeeze_zero' (Eventually.of_forall (fun _ => norm_nonneg _)) |
| 939 | _ (tendsto_const_div_atTop_nhds_zero_nat (roundingBound Λ)) |
| 940 | filter_upwards [eventually_ge_atTop 1] with n hn |
| 941 | have hn' : (0 : ℝ) < n := by exact_mod_cast (show 0 < n from hn) |
| 942 | apply (le_div_iff₀ hn').mpr |
| 943 | simpa only [mul_comm] using divisionApproximation_scaled_error Λ n hn z |
| 944 | |
| 945 | theorem divisionApproximation_tendsto (z : V) : |
| 946 | Tendsto (fun n : ℕ => divisionApproximation Λ n z) atTop (𝓝 z) := by |
| 947 | have h := (tendsto_const_nhds (x := z)).sub (divisionApproximation_error_tendsto_zero Λ z) |
| 948 | simpa only [sub_sub_cancel, sub_zero] using h |
| 949 | |
| 950 | end LatticeApproximation |
| 951 | |
| 952 | section CenteredPowers |
| 953 | |
| 954 | open Filter _root_.Topology |
| 955 | |
| 956 | theorem hermitian_nsmul_left (n : ℕ) (u z : V) : H (n • u) z = (n : ℂ) * H u z := by |
| 957 | simp |
| 958 | |
| 959 | def centerFactor (n : ℕ) (u z : V) : ℂ := |
| 960 | Complex.exp ((n : ℂ) * (2 * (Real.pi : ℂ) * H u z - (Real.pi : ℂ) * H u u)) |
| 961 | |
| 962 | def centeredTheta (Λ : AddSubgroup V) (n : ℕ) (u z : V) : ℂ := |
| 963 | centerFactor H n u z * theta (powerHermitian H n) Λ (z - u) |
| 964 | |
| 965 | theorem centerFactor_ne_zero (n : ℕ) (u z : V) : centerFactor H n u z ≠ 0 := |
| 966 | Complex.exp_ne_zero _ |
| 967 | |
| 968 | theorem centerFactor_norm (n : ℕ) (u z : V) : |
| 969 | ‖centerFactor H n u z‖ = |
| 970 | Real.exp ((n : ℝ) * (2 * Real.pi * (H u z).re - Real.pi * (H u u).re)) := by |
| 971 | rw [centerFactor, Complex.norm_exp] |
| 972 | congr 1 |
| 973 | simp |
| 974 | |
| 975 | theorem hermitian_self_sub_re |
| 976 | (hsym : ∀ u v : V, H v u = star (H u v)) (z u : V) : |
| 977 | (H (z - u) (z - u)).re = (H z z).re - 2 * (H u z).re + (H u u).re := by |
| 978 | have h := congrArg Complex.re (hsym u z) |
| 979 | simp only [Complex.star_def, Complex.conj_re] at h |
| 980 | simp only [map_sub, LinearMap.sub_apply, Complex.sub_re] |
| 981 | linarith |
| 982 | |
| 983 | theorem centeredTheta_weighted_norm |
| 984 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 985 | (Λ : AddSubgroup V) (n : ℕ) (u z : V) : |
| 986 | ‖centeredTheta H Λ n u z‖ * Real.exp (-Real.pi * (n : ℝ) * (H z z).re) = |
| 987 | powerMetricNorm H Λ n (z - u) := by |
| 988 | rw [centeredTheta, norm_mul, centerFactor_norm, powerMetricNorm] |
| 989 | rw [mul_comm (Real.exp _), mul_assoc, ← Real.exp_add] |
| 990 | congr 1 |
| 991 | rw [hermitian_self_sub_re H hsym] |
| 992 | congr 1 |
| 993 | ring |
| 994 | |
| 995 | theorem centerFactor_translation |
| 996 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 997 | (Λ : AddSubgroup V) |
| 998 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 999 | (n : ℕ) (u z : V) (hu : n • u ∈ Λ) (l : Λ) : |
| 1000 | centerFactor H n u (z + l) * doubledAutomorphy H l (z - u) ^ n = |
| 1001 | doubledAutomorphy H l z ^ n * centerFactor H n u z := by |
| 1002 | obtain ⟨k, hk⟩ := hint l l.property (n • u) hu |
| 1003 | have hs := hermitian_skew H hsym l (n • u) |
| 1004 | rw [hk, hermitian_nsmul_left, map_nsmul, nsmul_eq_mul] at hs |
| 1005 | push_cast at hs |
| 1006 | simp only [centerFactor, doubledAutomorphy, ← Complex.exp_nat_mul, |
| 1007 | ← Complex.exp_add, map_add, map_sub] |
| 1008 | apply Complex.exp_eq_exp_iff_exists_int.mpr |
| 1009 | refine ⟨-(2 * k), ?_⟩ |
| 1010 | push_cast |
| 1011 | linear_combination -2 * (Real.pi : ℂ) * hs |
| 1012 | |
| 1013 | theorem centeredTheta_translation |
| 1014 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1015 | (Λ : AddSubgroup V) |
| 1016 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 1017 | (n : ℕ) (u z : V) (hu : n • u ∈ Λ) (l : Λ) : |
| 1018 | centeredTheta H Λ n u (z + l) = doubledAutomorphy H l z ^ n * centeredTheta H Λ n u z := by |
| 1019 | unfold centeredTheta |
| 1020 | rw [show z + (l : V) - u = (z - u) + l by abel, |
| 1021 | theta_translation _ (powerHermitian_symm H hsym n) Λ (powerHermitian_integral H Λ hint n), |
| 1022 | doubledAutomorphy_power, ← mul_assoc, centerFactor_translation H hsym Λ hint n u z hu l, |
| 1023 | mul_assoc] |
| 1024 | |
| 1025 | variable [FiniteDimensional ℂ V] |
| 1026 | |
| 1027 | theorem centerFactor_differentiable (n : ℕ) (u : V) : Differentiable ℂ (centerFactor H n u) := |
| 1028 | (((((H u).toContinuousLinearMap.differentiable).const_mul _).sub_const _).const_mul _).cexp |
| 1029 | |
| 1030 | theorem centeredTheta_differentiable (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 1031 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (n : ℕ) (hn : 0 < n) (u : V) : |
| 1032 | Differentiable ℂ (centeredTheta H Λ n u) := by |
| 1033 | let : FiniteDimensional ℝ V := Module.Finite.trans ℂ V |
| 1034 | exact (centerFactor_differentiable H n u).mul |
| 1035 | ((powerTheta_differentiable H Λ hpos n hn).comp (differentiable_id.sub_const u)) |
| 1036 | |
| 1037 | variable (Λ : AddSubgroup V) [DiscreteTopology Λ] [CompactSpace (V ⧸ Λ)] |
| 1038 | |
| 1039 | def peakTheta (n : ℕ) (p z : V) : ℂ := centeredTheta H Λ n (divisionApproximation Λ n p) z |
| 1040 | |
| 1041 | theorem peakTheta_differentiable |
| 1042 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (n : ℕ) (hn : 0 < n) (p : V) : |
| 1043 | Differentiable ℂ (peakTheta H Λ n p) := centeredTheta_differentiable H Λ hpos n hn _ |
| 1044 | |
| 1045 | omit [FiniteDimensional ℂ V] [DiscreteTopology Λ] in |
| 1046 | theorem peakTheta_translation |
| 1047 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1048 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 1049 | (n : ℕ) (hn : 0 < n) (p z : V) (l : Λ) : |
| 1050 | peakTheta H Λ n p (z + l) = doubledAutomorphy H l z ^ n * peakTheta H Λ n p z := |
| 1051 | centeredTheta_translation H hsym Λ hint n _ z (divisionApproximation_mem Λ n hn p) l |
| 1052 | |
| 1053 | def peakMetricNorm (n : ℕ) (p z : V) : ℝ := |
| 1054 | ‖peakTheta H Λ n p z‖ * Real.exp (-Real.pi * (n : ℝ) * (H z z).re) |
| 1055 | |
| 1056 | omit [FiniteDimensional ℂ V] [DiscreteTopology Λ] in |
| 1057 | theorem peakMetricNorm_eq |
| 1058 | (hsym : ∀ u v : V, H v u = star (H u v)) (n : ℕ) (p z : V) : |
| 1059 | peakMetricNorm H Λ n p z = powerMetricNorm H Λ n (z - divisionApproximation Λ n p) := |
| 1060 | centeredTheta_weighted_norm H hsym Λ n _ z |
| 1061 | |
| 1062 | theorem peakMetricNorm_tendsto_one |
| 1063 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1064 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (p : V) : |
| 1065 | Tendsto (fun n : ℕ => peakMetricNorm H Λ n p p) atTop (𝓝 1) := by |
| 1066 | let : FiniteDimensional ℝ V := Module.Finite.trans ℂ V |
| 1067 | simp_rw [peakMetricNorm_eq H Λ hsym] |
| 1068 | apply powerMetricNorm_small_tendsto_one H Λ hpos _ (roundingBound Λ) _ |
| 1069 | (divisionApproximation_error_tendsto_zero Λ p) |
| 1070 | filter_upwards [eventually_ge_atTop 1] with n hn |
| 1071 | exact divisionApproximation_scaled_error Λ n hn p |
| 1072 | |
| 1073 | theorem peakMetricNorm_tendsto_zero |
| 1074 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1075 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (p z : V) (hz : z - p ∉ Λ) : |
| 1076 | Tendsto (fun n : ℕ => peakMetricNorm H Λ n p z) atTop (𝓝 0) := by |
| 1077 | let : FiniteDimensional ℝ V := Module.Finite.trans ℂ V |
| 1078 | simp_rw [peakMetricNorm_eq H Λ hsym] |
| 1079 | exact powerMetricNorm_moving_tendsto_zero H Λ hsym hpos _ (z - p) |
| 1080 | ((tendsto_const_nhds (x := z)).sub (divisionApproximation_tendsto Λ p)) hz |
| 1081 | |
| 1082 | theorem peakTheta_eventually_separates |
| 1083 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1084 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (p q : V) (hpq : q - p ∉ Λ) : |
| 1085 | ∀ᶠ n : ℕ in atTop, 0 < n ∧ |
| 1086 | peakTheta H Λ n p p * peakTheta H Λ n q q ≠ peakTheta H Λ n p q * peakTheta H Λ n q p := by |
| 1087 | have hqp : p - q ∉ Λ := by |
| 1088 | intro h |
| 1089 | apply hpq |
| 1090 | simpa only [neg_sub] using Λ.neg_mem h |
| 1091 | have hdiag := (peakMetricNorm_tendsto_one H Λ hsym hpos p).mul |
| 1092 | (peakMetricNorm_tendsto_one H Λ hsym hpos q) |
| 1093 | have hoff := (peakMetricNorm_tendsto_zero H Λ hsym hpos p q hpq).mul |
| 1094 | (peakMetricNorm_tendsto_zero H Λ hsym hpos q p hqp) |
| 1095 | rw [one_mul] at hdiag |
| 1096 | rw [zero_mul] at hoff |
| 1097 | filter_upwards [eventually_ge_atTop 1, |
| 1098 | hdiag.eventually (lt_mem_nhds (show (1 / 2 : ℝ) < 1 by norm_num)), |
| 1099 | hoff.eventually (gt_mem_nhds (show (0 : ℝ) < 1 / 2 by norm_num))] with n hn hd ho |
| 1100 | refine ⟨hn, fun he => ?_⟩ |
| 1101 | have he' := congrArg norm he |
| 1102 | rw [norm_mul, norm_mul] at he' |
| 1103 | have hm : peakMetricNorm H Λ n p p * peakMetricNorm H Λ n q q = |
| 1104 | peakMetricNorm H Λ n p q * peakMetricNorm H Λ n q p := by |
| 1105 | unfold peakMetricNorm |
| 1106 | linear_combination |
| 1107 | (Real.exp (-Real.pi * (n : ℝ) * (H p p).re) * |
| 1108 | Real.exp (-Real.pi * (n : ℝ) * (H q q).re)) * he' |
| 1109 | linarith |
| 1110 | |
| 1111 | /-- Positive integral Hermitian data supply holomorphic sections of one common |
| 1112 | positive degree separating any prescribed distinct lattice cosets. -/ |
| 1113 | theorem exists_sections_separating_points |
| 1114 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1115 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1116 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 1117 | (p q : V) (hpq : q - p ∉ Λ) : |
| 1118 | ∃ (n : ℕ) (s t : V → ℂ), 0 < n ∧ Differentiable ℂ s ∧ Differentiable ℂ t ∧ |
| 1119 | (∀ (l : Λ) z, s (z + l) = doubledAutomorphy H l z ^ n * s z) ∧ |
| 1120 | (∀ (l : Λ) z, t (z + l) = doubledAutomorphy H l z ^ n * t z) ∧ |
| 1121 | s p * t q ≠ s q * t p := by |
| 1122 | obtain ⟨n, hn, hsep⟩ := (peakTheta_eventually_separates H Λ hsym hpos p q hpq).exists |
| 1123 | exact ⟨n, peakTheta H Λ n p, peakTheta H Λ n q, hn, |
| 1124 | peakTheta_differentiable H Λ hpos n hn p, peakTheta_differentiable H Λ hpos n hn q, |
| 1125 | fun l z => peakTheta_translation H Λ hsym hint n hn p z l, |
| 1126 | fun l z => peakTheta_translation H Λ hsym hint n hn q z l, hsep⟩ |
| 1127 | |
| 1128 | end CenteredPowers |
| 1129 | |
| 1130 | section TangentEstimates |
| 1131 | |
| 1132 | open Filter _root_.Topology |
| 1133 | |
| 1134 | omit [NormedSpace ℂ V] in |
| 1135 | theorem exists_lattice_norm_lower_bound (Λ : AddSubgroup V) [DiscreteTopology Λ] : |
| 1136 | ∃ ρ : ℝ, 0 < ρ ∧ ∀ l : Λ, l ≠ 0 → ρ ≤ ‖l‖ := by |
| 1137 | obtain ⟨ρ, hρ, hball⟩ := Metric.isOpen_singleton_iff.mp (isOpen_discrete ({0} : Set Λ)) |
| 1138 | refine ⟨ρ, hρ, fun l hl => le_of_not_gt (fun h => hl (hball l ?_))⟩ |
| 1139 | simpa only [dist_zero_right] using h |
| 1140 | |
| 1141 | variable [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] |
| 1142 | [FiniteDimensional ℝ V] [FiniteDimensional ℂ V] |
| 1143 | (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 1144 | |
| 1145 | /-- Discreteness supplies a fixed neighborhood in which every nonzero lattice |
| 1146 | term decays exponentially in the degree. -/ |
| 1147 | theorem exists_local_power_bound |
| 1148 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) : |
| 1149 | ∃ a R : ℝ, 0 < a ∧ 0 < R ∧ ∀ (n : ℕ) (l : Λ) (z : V), ‖z‖ ≤ R → |
| 1150 | ‖thetaTerm (powerHermitian H n) l z‖ ≤ Real.exp (-a * (n : ℝ) * ‖l‖ ^ 2) := by |
| 1151 | obtain ⟨c, hc, hbound⟩ := hermitian_exists_lower_bound H hpos |
| 1152 | obtain ⟨ρ, hρ, hlattice⟩ := exists_lattice_norm_lower_bound Λ |
| 1153 | let B : ℝ := ‖hermitianBilin H‖ |
| 1154 | have hB : 0 ≤ B := norm_nonneg (hermitianBilin H) |
| 1155 | let R : ℝ := c * ρ / (4 * (B + 1)) |
| 1156 | have hR : 0 < R := by dsimp [R]; positivity |
| 1157 | have hR_eq : 4 * (B + 1) * R = c * ρ := by |
| 1158 | dsimp [R] |
| 1159 | field_simp |
| 1160 | refine ⟨Real.pi * c / 2, R, by positivity, hR, fun n l z hz => ?_⟩ |
| 1161 | by_cases hl : l = 0 |
| 1162 | · simp [hl] |
| 1163 | · have hlnorm : ρ ≤ ‖(l : V)‖ := hlattice l hl |
| 1164 | have hcoeff : 4 * B * R ≤ c * ‖(l : V)‖ := by |
| 1165 | have hh := mul_le_mul_of_nonneg_left hlnorm hc.le |
| 1166 | nlinarith |
| 1167 | have hh : -(H l z).re ≤ B * ‖(l : V)‖ * R := by |
| 1168 | calc |
| 1169 | -(H l z).re ≤ ‖H l z‖ := (neg_le_abs _).trans (Complex.abs_re_le_norm _) |
| 1170 | _ ≤ B * ‖(l : V)‖ * ‖z‖ := hermitian_norm_le H l z |
| 1171 | _ ≤ B * ‖(l : V)‖ * R := by gcongr |
| 1172 | have hco := mul_le_mul_of_nonneg_right hcoeff (norm_nonneg (l : V)) |
| 1173 | have hq := hbound (l : V) |
| 1174 | have hneg : -2 * (H l z).re - (H l l).re ≤ -(c / 2) * ‖(l : V)‖ ^ 2 := by |
| 1175 | nlinarith |
| 1176 | have hex := mul_le_mul_of_nonneg_left hneg |
| 1177 | (mul_nonneg (Nat.cast_nonneg n : (0 : ℝ) ≤ n) Real.pi_pos.le) |
| 1178 | rw [powerTerm_norm] |
| 1179 | apply Real.exp_le_exp.mpr |
| 1180 | change (n : ℝ) * (-2 * Real.pi * (H l z).re - Real.pi * (H l l).re) ≤ |
| 1181 | -(Real.pi * c / 2) * (n : ℝ) * ‖(l : V)‖ ^ 2 |
| 1182 | nlinarith |
| 1183 | |
| 1184 | omit [DiscreteTopology Λ] [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] |
| 1185 | [FiniteDimensional ℝ V] [FiniteDimensional ℂ V] in |
| 1186 | theorem powerTerm_tendsto_of_local_bound (a R : ℝ) (ha : 0 < a) |
| 1187 | (hbound : ∀ (n : ℕ) (l : Λ) (z : V), ‖z‖ ≤ R → |
| 1188 | ‖thetaTerm (powerHermitian H n) l z‖ ≤ Real.exp (-a * (n : ℝ) * ‖l‖ ^ 2)) |
| 1189 | (w : ℕ → V) (hw : ∀ᶠ n in atTop, ‖w n‖ ≤ R) (l : Λ) (hl : l ≠ 0) : |
| 1190 | Tendsto (fun n : ℕ => thetaTerm (powerHermitian H n) l (w n)) atTop (𝓝 0) := by |
| 1191 | have hlnorm : 0 < ‖l‖ := norm_pos_iff.mpr hl |
| 1192 | have hlt : Real.exp (-a * ‖l‖ ^ 2) < 1 := by |
| 1193 | apply Real.exp_lt_one_iff.mpr |
| 1194 | nlinarith [mul_pos ha (sq_pos_of_pos hlnorm)] |
| 1195 | apply tendsto_zero_iff_norm_tendsto_zero.mpr |
| 1196 | apply squeeze_zero' (Eventually.of_forall (fun _ => norm_nonneg _)) _ |
| 1197 | (tendsto_pow_atTop_nhds_zero_of_lt_one (Real.exp_pos _).le hlt) |
| 1198 | filter_upwards [hw] with n hn |
| 1199 | rw [← Real.exp_nat_mul] |
| 1200 | convert! hbound n l (w n) hn using 1 |
| 1201 | congr 1 |
| 1202 | ring |
| 1203 | |
| 1204 | omit [DiscreteTopology Λ] [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] |
| 1205 | [FiniteDimensional ℝ V] [FiniteDimensional ℂ V] in |
| 1206 | theorem powerTerm_le_of_local_bound (a R : ℝ) (ha : 0 < a) |
| 1207 | (hbound : ∀ (n : ℕ) (l : Λ) (z : V), ‖z‖ ≤ R → |
| 1208 | ‖thetaTerm (powerHermitian H n) l z‖ ≤ Real.exp (-a * (n : ℝ) * ‖l‖ ^ 2)) |
| 1209 | (n : ℕ) (hn : 0 < n) (l : Λ) (z : V) (hz : ‖z‖ ≤ R) : |
| 1210 | ‖thetaTerm (powerHermitian H n) l z‖ ≤ Real.exp (-a * ‖l‖ ^ 2) := by |
| 1211 | apply (hbound n l z hz).trans |
| 1212 | apply Real.exp_le_exp.mpr |
| 1213 | have hn' : (1 : ℝ) ≤ n := by exact_mod_cast hn |
| 1214 | have h := mul_nonneg (sub_nonneg.mpr hn') (mul_nonneg ha.le (sq_nonneg ‖l‖)) |
| 1215 | nlinarith |
| 1216 | |
| 1217 | omit [IsScalarTower ℝ ℂ V] [FiniteDimensional ℂ V] in |
| 1218 | theorem powerTheta_tendsto_of_local_bound (a R : ℝ) (ha : 0 < a) |
| 1219 | (hbound : ∀ (n : ℕ) (l : Λ) (z : V), ‖z‖ ≤ R → |
| 1220 | ‖thetaTerm (powerHermitian H n) l z‖ ≤ Real.exp (-a * (n : ℝ) * ‖l‖ ^ 2)) |
| 1221 | (w : ℕ → V) (hw : ∀ᶠ n in atTop, ‖w n‖ ≤ R) : |
| 1222 | Tendsto (fun n : ℕ => theta (powerHermitian H n) Λ (w n)) atTop (𝓝 1) := by |
| 1223 | classical |
| 1224 | let : DiscreteTopology Λ.toIntSubmodule := inferInstanceAs (DiscreteTopology Λ) |
| 1225 | have hs0 : Summable (fun l : Λ => Real.exp (-a * ‖l‖ ^ 2 + 0 * ‖l‖)) := |
| 1226 | AlgebraicGeometry.ComplexMultiplication.LatticeGaussian.CM.lattice_gaussian_summable Λ.toIntSubmodule a 0 ha |
| 1227 | have hs : Summable (fun l : Λ => Real.exp (-a * ‖l‖ ^ 2)) := by |
| 1228 | simpa only [zero_mul, add_zero] using hs0 |
| 1229 | have ht : ∀ l : Λ, Tendsto (fun n : ℕ => thetaTerm (powerHermitian H n) l (w n)) |
| 1230 | atTop (𝓝 (if l = 0 then (1 : ℂ) else 0)) := by |
| 1231 | intro l |
| 1232 | by_cases hl : l = 0 |
| 1233 | · simp only [hl, AddSubgroup.coe_zero, thetaTerm_zero, ↓reduceIte] |
| 1234 | exact tendsto_const_nhds |
| 1235 | · rw [ite_eq_right hl] |
| 1236 | exact powerTerm_tendsto_of_local_bound H Λ a R ha hbound w hw l hl |
| 1237 | have h := tendsto_tsum_of_dominated_convergence hs ht |
| 1238 | (show ∀ᶠ n : ℕ in atTop, ∀ l : Λ, |
| 1239 | ‖thetaTerm (powerHermitian H n) l (w n)‖ ≤ Real.exp (-a * ‖l‖ ^ 2) from by |
| 1240 | filter_upwards [eventually_ge_atTop 1, hw] with n hn hR l |
| 1241 | exact powerTerm_le_of_local_bound H Λ a R ha hbound n hn l (w n) hR) |
| 1242 | simpa only [theta, tsum_ite_eq] using h |
| 1243 | |
| 1244 | def normalizedPowerDerivative (n : ℕ) (z : V) : V →L[ℂ] ℂ := |
| 1245 | ∑' l : Λ, thetaTerm (powerHermitian H n) l z • |
| 1246 | ((-2 * (Real.pi : ℂ)) • (H l).toContinuousLinearMap) |
| 1247 | |
| 1248 | theorem fderiv_powerTheta |
| 1249 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (n : ℕ) (hn : 0 < n) (z : V) : |
| 1250 | fderiv ℂ (theta (powerHermitian H n) Λ) z = (n : ℂ) • normalizedPowerDerivative H Λ n z := by |
| 1251 | rw [(theta_hasFDerivAt _ Λ (powerHermitian_positive H hpos n hn) z).fderiv, |
| 1252 | normalizedPowerDerivative, ← tsum_const_smul''] |
| 1253 | apply tsum_congr |
| 1254 | intro l |
| 1255 | ext v |
| 1256 | simp only [thetaTermDerivative, smul_apply, smul_eq_mul, |
| 1257 | LinearMap.coe_toContinuousLinearMap', powerHermitian_apply] |
| 1258 | ring |
| 1259 | |
| 1260 | theorem normalizedPowerDerivative_tendsto_of_local_bound (a R : ℝ) (ha : 0 < a) |
| 1261 | (hbound : ∀ (n : ℕ) (l : Λ) (z : V), ‖z‖ ≤ R → |
| 1262 | ‖thetaTerm (powerHermitian H n) l z‖ ≤ Real.exp (-a * (n : ℝ) * ‖l‖ ^ 2)) |
| 1263 | (w : ℕ → V) (hw : ∀ᶠ n in atTop, ‖w n‖ ≤ R) : |
| 1264 | Tendsto (fun n : ℕ => normalizedPowerDerivative H Λ n (w n)) atTop (𝓝 0) := by |
| 1265 | let : DiscreteTopology Λ.toIntSubmodule := inferInstanceAs (DiscreteTopology Λ) |
| 1266 | let K : ℝ := 2 * Real.pi * ‖hermitianBilin H‖ |
| 1267 | have hs0 : Summable (fun l : Λ => ‖l‖ ^ 1 * Real.exp (-a * ‖l‖ ^ 2 + 0 * ‖l‖)) := |
| 1268 | AlgebraicGeometry.ComplexMultiplication.LatticeGaussian.CM.lattice_gaussian_poly_summable Λ.toIntSubmodule a 0 ha 1 |
| 1269 | have hs : Summable (fun l : Λ => K * (‖l‖ * Real.exp (-a * ‖l‖ ^ 2))) := by |
| 1270 | simpa only [pow_one, zero_mul, add_zero] using hs0.mul_left K |
| 1271 | have ht (l : Λ) : Tendsto (fun n : ℕ => thetaTerm (powerHermitian H n) l (w n) • |
| 1272 | ((-2 * (Real.pi : ℂ)) • (H l).toContinuousLinearMap)) atTop (𝓝 (0 : V →L[ℂ] ℂ)) := by |
| 1273 | by_cases hl : l = 0 |
| 1274 | · have hz : (-2 * (Real.pi : ℂ)) • (H (l : V)).toContinuousLinearMap = |
| 1275 | (0 : V →L[ℂ] ℂ) := by |
| 1276 | ext v |
| 1277 | simp [hl] |
| 1278 | have hzero (c : ℂ) : c • (0 : V →L[ℂ] ℂ) = 0 := by ext v; simp |
| 1279 | simp only [hz, hzero] |
| 1280 | exact tendsto_const_nhds |
| 1281 | · have h := (powerTerm_tendsto_of_local_bound H Λ a R ha hbound w hw l hl).smul_const |
| 1282 | ((-2 * (Real.pi : ℂ)) • (H l).toContinuousLinearMap) |
| 1283 | have hz : (0 : ℂ) • ((-2 * (Real.pi : ℂ)) • (H (l : V)).toContinuousLinearMap) = |
| 1284 | (0 : V →L[ℂ] ℂ) := by ext v; simp |
| 1285 | rw [hz] at h |
| 1286 | exact h |
| 1287 | have h := tendsto_tsum_of_dominated_convergence hs ht |
| 1288 | (show ∀ᶠ n : ℕ in atTop, ∀ l : Λ, |
| 1289 | ‖thetaTerm (powerHermitian H n) l (w n) • |
| 1290 | ((-2 * (Real.pi : ℂ)) • (H l).toContinuousLinearMap)‖ ≤ |
| 1291 | K * (‖l‖ * Real.exp (-a * ‖l‖ ^ 2)) from by |
| 1292 | filter_upwards [eventually_ge_atTop 1, hw] with n hn hR l |
| 1293 | rw [norm_smul, norm_smul] |
| 1294 | have hc : ‖(-2 * (Real.pi : ℂ))‖ = 2 * Real.pi := by simp |
| 1295 | rw [hc] |
| 1296 | calc |
| 1297 | _ ≤ Real.exp (-a * ‖l‖ ^ 2) * (2 * Real.pi * (‖hermitianBilin H‖ * ‖(l : V)‖)) := by |
| 1298 | gcongr |
| 1299 | · exact powerTerm_le_of_local_bound H Λ a R ha hbound n hn l (w n) hR |
| 1300 | · exact hermitian_linear_norm_le H l |
| 1301 | _ = _ := by dsimp [K]; ring) |
| 1302 | simpa only [normalizedPowerDerivative, tsum_zero] using h |
| 1303 | |
| 1304 | end TangentEstimates |
| 1305 | |
| 1306 | section TangentSeparation |
| 1307 | |
| 1308 | open Filter _root_.Topology |
| 1309 | |
| 1310 | variable [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] |
| 1311 | [FiniteDimensional ℝ V] [FiniteDimensional ℂ V] |
| 1312 | (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 1313 | |
| 1314 | omit [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] [FiniteDimensional ℝ V] in |
| 1315 | theorem centerFactor_hasFDerivAt (n : ℕ) (u z : V) : |
| 1316 | HasFDerivAt (centerFactor H n u) |
| 1317 | (centerFactor H n u z • (((n : ℂ) * (2 * (Real.pi : ℂ))) • |
| 1318 | (H u).toContinuousLinearMap)) z := by |
| 1319 | have h := (((((H u).toContinuousLinearMap.hasFDerivAt (x := z)).const_smul |
| 1320 | (2 * (Real.pi : ℂ))).sub_const ((Real.pi : ℂ) * H u u)).const_smul (n : ℂ)).cexp |
| 1321 | convert! h using 1 |
| 1322 | simp [centerFactor, smul_smul] |
| 1323 | |
| 1324 | theorem centeredTheta_fderiv |
| 1325 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1326 | (n : ℕ) (hn : 0 < n) (u z v : V) : |
| 1327 | fderiv ℂ (centeredTheta H Λ n u) z v = |
| 1328 | centerFactor H n u z * (n : ℂ) * |
| 1329 | (theta (powerHermitian H n) Λ (z - u) * (2 * (Real.pi : ℂ) * H u v) + |
| 1330 | normalizedPowerDerivative H Λ n (z - u) v) := by |
| 1331 | have ht := ((powerTheta_differentiable H Λ hpos n hn) (z - u)).hasFDerivAt.comp z |
| 1332 | ((hasFDerivAt_id z).sub_const u) |
| 1333 | have h := (centerFactor_hasFDerivAt H n u z).mul ht |
| 1334 | have he := congrArg (fun f : V →L[ℂ] ℂ => f v) h.fderiv |
| 1335 | change fderiv ℂ (centeredTheta H Λ n u) z v = _ at he |
| 1336 | rw [fderiv_powerTheta H Λ hpos n hn (z - u)] at he |
| 1337 | convert! he using 1 |
| 1338 | simp only [add_apply, smul_apply, smul_eq_mul, Function.comp_apply, id_eq, |
| 1339 | ContinuousLinearMap.comp_apply, ContinuousLinearMap.id_apply, |
| 1340 | LinearMap.coe_toContinuousLinearMap'] |
| 1341 | ring |
| 1342 | |
| 1343 | def tangentSeparationExpression (n : ℕ) (a b z v : V) : ℂ := |
| 1344 | theta (powerHermitian H n) Λ (z - a) * theta (powerHermitian H n) Λ (z - b) * |
| 1345 | (2 * (Real.pi : ℂ) * H (b - a) v) + |
| 1346 | theta (powerHermitian H n) Λ (z - a) * normalizedPowerDerivative H Λ n (z - b) v - |
| 1347 | theta (powerHermitian H n) Λ (z - b) * normalizedPowerDerivative H Λ n (z - a) v |
| 1348 | |
| 1349 | theorem centeredTheta_derivative_determinant |
| 1350 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1351 | (n : ℕ) (hn : 0 < n) (a b z v : V) : |
| 1352 | centeredTheta H Λ n a z * fderiv ℂ (centeredTheta H Λ n b) z v - |
| 1353 | centeredTheta H Λ n b z * fderiv ℂ (centeredTheta H Λ n a) z v = |
| 1354 | centerFactor H n a z * centerFactor H n b z * (n : ℂ) * |
| 1355 | tangentSeparationExpression H Λ n a b z v := by |
| 1356 | rw [centeredTheta_fderiv H Λ hpos n hn b z v, centeredTheta_fderiv H Λ hpos n hn a z v] |
| 1357 | simp only [centeredTheta, tangentSeparationExpression, map_sub, LinearMap.sub_apply] |
| 1358 | ring |
| 1359 | |
| 1360 | theorem normalizedPowerDerivative_apply_tendsto (a R : ℝ) (ha : 0 < a) |
| 1361 | (hbound : ∀ (n : ℕ) (l : Λ) (z : V), ‖z‖ ≤ R → |
| 1362 | ‖thetaTerm (powerHermitian H n) l z‖ ≤ Real.exp (-a * (n : ℝ) * ‖l‖ ^ 2)) |
| 1363 | (w : ℕ → V) (hw : ∀ᶠ n in atTop, ‖w n‖ ≤ R) (v : V) : |
| 1364 | Tendsto (fun n : ℕ => normalizedPowerDerivative H Λ n (w n) v) atTop (𝓝 0) := by |
| 1365 | have hc : Continuous (fun f : V →L[ℂ] ℂ => f v) := continuous_id.clm_apply continuous_const |
| 1366 | have h := hc.continuousAt.tendsto.comp |
| 1367 | (normalizedPowerDerivative_tendsto_of_local_bound H Λ a R ha hbound w hw) |
| 1368 | exact h |
| 1369 | |
| 1370 | theorem tangentSeparationExpression_tendsto (c R : ℝ) (hc : 0 < c) (hR : 0 < R) |
| 1371 | (hbound : ∀ (n : ℕ) (l : Λ) (z : V), ‖z‖ ≤ R → |
| 1372 | ‖thetaTerm (powerHermitian H n) l z‖ ≤ Real.exp (-c * (n : ℝ) * ‖l‖ ^ 2)) |
| 1373 | (a b : ℕ → V) (z d v : V) (ha : Tendsto a atTop (𝓝 z)) |
| 1374 | (hb : Tendsto b atTop (𝓝 (z + d))) (hd : ‖d‖ < R) : |
| 1375 | Tendsto (fun n : ℕ => tangentSeparationExpression H Λ n (a n) (b n) z v) |
| 1376 | atTop (𝓝 (2 * (Real.pi : ℂ) * H d v)) := by |
| 1377 | have hwa : Tendsto (fun n : ℕ => z - a n) atTop (𝓝 0) := by |
| 1378 | simpa only [sub_self] using (tendsto_const_nhds (x := z)).sub ha |
| 1379 | have hwb : Tendsto (fun n : ℕ => z - b n) atTop (𝓝 (-d)) := by |
| 1380 | simpa only [sub_add_eq_sub_sub, sub_self, zero_sub] using (tendsto_const_nhds (x := z)).sub hb |
| 1381 | have hba : Tendsto (fun n : ℕ => b n - a n) atTop (𝓝 d) := by |
| 1382 | simpa only [add_sub_cancel_left] using hb.sub ha |
| 1383 | have hwaR : ∀ᶠ n in atTop, ‖z - a n‖ ≤ R := |
| 1384 | (hwa.norm.eventually (gt_mem_nhds (by simpa using hR))).mono (fun _ h => h.le) |
| 1385 | have hwbR : ∀ᶠ n in atTop, ‖z - b n‖ ≤ R := |
| 1386 | (hwb.norm.eventually (gt_mem_nhds (by simpa only [norm_neg] using hd))).mono (fun _ h => h.le) |
| 1387 | have hta := powerTheta_tendsto_of_local_bound H Λ c R hc hbound _ hwaR |
| 1388 | have htb := powerTheta_tendsto_of_local_bound H Λ c R hc hbound _ hwbR |
| 1389 | have hda := normalizedPowerDerivative_apply_tendsto H Λ c R hc hbound _ hwaR v |
| 1390 | have hdb := normalizedPowerDerivative_apply_tendsto H Λ c R hc hbound _ hwbR v |
| 1391 | have hcH : Continuous (fun u : V => H u v) := |
| 1392 | (hermitianBilin H).continuous.clm_apply continuous_const |
| 1393 | have hH := hcH.continuousAt.tendsto.comp hba |
| 1394 | have h := (((hta.mul htb).mul (hH.const_mul (2 * (Real.pi : ℂ)))).add (hta.mul hdb)).sub |
| 1395 | (htb.mul hda) |
| 1396 | simpa only [tangentSeparationExpression, Function.comp_apply, one_mul, mul_zero, add_zero, sub_zero] using h |
| 1397 | |
| 1398 | variable [CompactSpace (V ⧸ Λ)] |
| 1399 | |
| 1400 | /-- Two sections in one positive degree detect every specified nonzero tangent |
| 1401 | vector; the first section is nonzero at the specified point. -/ |
| 1402 | theorem exists_centeredTheta_separating_tangent |
| 1403 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1404 | (p v : V) (hv : v ≠ 0) : |
| 1405 | ∃ (n : ℕ) (a b : V), 0 < n ∧ n • a ∈ Λ ∧ n • b ∈ Λ ∧ |
| 1406 | centeredTheta H Λ n a p ≠ 0 ∧ |
| 1407 | centeredTheta H Λ n a p * fderiv ℂ (centeredTheta H Λ n b) p v ≠ |
| 1408 | centeredTheta H Λ n b p * fderiv ℂ (centeredTheta H Λ n a) p v := by |
| 1409 | obtain ⟨c, R, hc, hR, hbound⟩ := exists_local_power_bound H Λ hpos |
| 1410 | let r : ℝ := R / (2 * ‖v‖) |
| 1411 | have hvnorm : 0 < ‖v‖ := norm_pos_iff.mpr hv |
| 1412 | have hr : 0 < r := by dsimp [r]; positivity |
| 1413 | let d : V := r • v |
| 1414 | have hd : ‖d‖ < R := by |
| 1415 | have he : ‖d‖ = R / 2 := by |
| 1416 | simp only [d, norm_smul, Real.norm_eq_abs, abs_of_pos hr] |
| 1417 | dsimp [r] |
| 1418 | field_simp |
| 1419 | rw [he] |
| 1420 | linarith |
| 1421 | have hHdpos : 0 < (H d v).re := by |
| 1422 | change 0 < (hermitianBilin H (r • v) v).re |
| 1423 | rw [map_smul, smul_apply] |
| 1424 | change 0 < (r • H v v).re |
| 1425 | simp only [Complex.real_smul, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, |
| 1426 | zero_mul, sub_zero] |
| 1427 | exact mul_pos hr (hpos v hv) |
| 1428 | have hHd : H d v ≠ 0 := by |
| 1429 | intro h |
| 1430 | rw [h, Complex.zero_re] at hHdpos |
| 1431 | exact lt_irrefl _ hHdpos |
| 1432 | have hlimit : 2 * (Real.pi : ℂ) * H d v ≠ 0 := |
| 1433 | mul_ne_zero (mul_ne_zero (by norm_num) (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero)) hHd |
| 1434 | let a : ℕ → V := fun n => divisionApproximation Λ n p |
| 1435 | let b : ℕ → V := fun n => divisionApproximation Λ n (p + d) |
| 1436 | have ha : Tendsto a atTop (𝓝 p) := divisionApproximation_tendsto Λ p |
| 1437 | have hb : Tendsto b atTop (𝓝 (p + d)) := divisionApproximation_tendsto Λ (p + d) |
| 1438 | have hD := tangentSeparationExpression_tendsto H Λ c R hc hR hbound a b p d v ha hb hd |
| 1439 | have hwa : Tendsto (fun n : ℕ => p - a n) atTop (𝓝 0) := by |
| 1440 | simpa only [sub_self] using (tendsto_const_nhds (x := p)).sub ha |
| 1441 | have hwaR : ∀ᶠ n in atTop, ‖p - a n‖ ≤ R := |
| 1442 | (hwa.norm.eventually (gt_mem_nhds (by simpa using hR))).mono (fun _ h => h.le) |
| 1443 | have ht := powerTheta_tendsto_of_local_bound H Λ c R hc hbound _ hwaR |
| 1444 | have hev : ∀ᶠ n : ℕ in atTop, 0 < n ∧ |
| 1445 | tangentSeparationExpression H Λ n (a n) (b n) p v ≠ 0 ∧ |
| 1446 | theta (powerHermitian H n) Λ (p - a n) ≠ 0 := by |
| 1447 | filter_upwards [eventually_ge_atTop 1, hD.eventually_ne hlimit, ht.eventually_ne one_ne_zero] |
| 1448 | with n hn hDn htn |
| 1449 | exact ⟨hn, hDn, htn⟩ |
| 1450 | obtain ⟨n, hn, hDn, htn⟩ := hev.exists |
| 1451 | refine ⟨n, a n, b n, hn, divisionApproximation_mem Λ n hn p, |
| 1452 | divisionApproximation_mem Λ n hn (p + d), |
| 1453 | mul_ne_zero (centerFactor_ne_zero H n (a n) p) htn, ?_⟩ |
| 1454 | intro he |
| 1455 | have hn' : (n : ℂ) ≠ 0 := by exact_mod_cast hn.ne' |
| 1456 | have hprod := mul_ne_zero (mul_ne_zero (mul_ne_zero |
| 1457 | (centerFactor_ne_zero H n (a n) p) (centerFactor_ne_zero H n (b n) p)) hn') hDn |
| 1458 | apply hprod |
| 1459 | rw [← centeredTheta_derivative_determinant H Λ hpos n hn (a n) (b n) p v, he, sub_self] |
| 1460 | |
| 1461 | theorem exists_sections_separating_tangent |
| 1462 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1463 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1464 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 1465 | (p v : V) (hv : v ≠ 0) : |
| 1466 | ∃ (n : ℕ) (s t : V → ℂ), 0 < n ∧ Differentiable ℂ s ∧ Differentiable ℂ t ∧ |
| 1467 | (∀ (l : Λ) z, s (z + l) = doubledAutomorphy H l z ^ n * s z) ∧ |
| 1468 | (∀ (l : Λ) z, t (z + l) = doubledAutomorphy H l z ^ n * t z) ∧ |
| 1469 | s p ≠ 0 ∧ s p * fderiv ℂ t p v ≠ t p * fderiv ℂ s p v := by |
| 1470 | obtain ⟨n, a, b, hn, ha, hb, hs, hsep⟩ := exists_centeredTheta_separating_tangent H Λ hpos p v hv |
| 1471 | exact ⟨n, centeredTheta H Λ n a, centeredTheta H Λ n b, hn, |
| 1472 | centeredTheta_differentiable H Λ hpos n hn a, centeredTheta_differentiable H Λ hpos n hn b, |
| 1473 | fun l z => centeredTheta_translation H hsym Λ hint n a z ha l, |
| 1474 | fun l z => centeredTheta_translation H hsym Λ hint n b z hb l, hs, hsep⟩ |
| 1475 | |
| 1476 | end TangentSeparation |
| 1477 | |
| 1478 | section SmoothSections |
| 1479 | |
| 1480 | variable [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] |
| 1481 | [FiniteDimensional ℝ V] [FiniteDimensional ℂ V] |
| 1482 | (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 1483 | |
| 1484 | theorem theta_contDiff_one |
| 1485 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) : ContDiff ℂ 1 (theta H Λ) := by |
| 1486 | obtain ⟨c, hc, hbound⟩ := hermitian_exists_lower_bound H hpos |
| 1487 | apply contDiff_one_iff_hasFDerivAt.mpr |
| 1488 | refine ⟨fun z => ∑' l : Λ, thetaTermDerivative H l z, ?_, theta_hasFDerivAt H Λ hpos⟩ |
| 1489 | apply continuous_iff_continuousAt.mpr |
| 1490 | intro z |
| 1491 | let R : ℝ := ‖z‖ + 1 |
| 1492 | have hz : z ∈ Metric.ball (0 : V) R := by |
| 1493 | simp only [Metric.mem_ball, dist_zero_right] |
| 1494 | dsimp [R] |
| 1495 | linarith |
| 1496 | have hterm (l : Λ) : Continuous (thetaTermDerivative H l) := by |
| 1497 | have ht : Continuous (thetaTerm H l) := |
| 1498 | (show Differentiable ℂ (thetaTerm H l) from fun w => |
| 1499 | (thetaTerm_hasFDerivAt H l w).differentiableAt).continuous |
| 1500 | exact ht.smul continuous_const |
| 1501 | have hcont := continuousOn_tsum (s := Metric.ball (0 : V) R) (fun l : Λ => (hterm l).continuousOn) |
| 1502 | (thetaDerivativeMajorant_summable H Λ c R hc) |
| 1503 | (fun l w hw => thetaTermDerivative_norm_le H Λ c R hbound l w |
| 1504 | (show ‖w‖ < R by simpa only [Metric.mem_ball, dist_zero_right] using hw).le) |
| 1505 | exact hcont.continuousAt (Metric.isOpen_ball.mem_nhds hz) |
| 1506 | |
| 1507 | theorem powerTheta_contDiff_one |
| 1508 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (n : ℕ) (hn : 0 < n) : |
| 1509 | ContDiff ℂ 1 (theta (powerHermitian H n) Λ) := |
| 1510 | theta_contDiff_one _ Λ (powerHermitian_positive H hpos n hn) |
| 1511 | |
| 1512 | omit [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] [FiniteDimensional ℝ V] in |
| 1513 | theorem centerFactor_contDiff_one (n : ℕ) (u : V) : ContDiff ℂ 1 (centerFactor H n u) := by |
| 1514 | have hH : ContDiff ℂ 1 (H u) := (H u).toContinuousLinearMap.contDiff |
| 1515 | exact (((hH.const_smul (2 * (Real.pi : ℂ))).sub contDiff_const).const_smul (n : ℂ)).cexp |
| 1516 | |
| 1517 | theorem centeredTheta_contDiff_one |
| 1518 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (n : ℕ) (hn : 0 < n) (u : V) : |
| 1519 | ContDiff ℂ 1 (centeredTheta H Λ n u) := |
| 1520 | (centerFactor_contDiff_one H n u).mul |
| 1521 | ((powerTheta_contDiff_one H Λ hpos n hn).comp (contDiff_id.sub contDiff_const)) |
| 1522 | |
| 1523 | theorem thetaTriple_contDiff_one |
| 1524 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (a b : V) : |
| 1525 | ContDiff ℂ 1 (thetaTriple H Λ a b) := |
| 1526 | (((theta_contDiff_one H Λ hpos).comp (contDiff_id.sub contDiff_const)).mul |
| 1527 | ((theta_contDiff_one H Λ hpos).comp (contDiff_id.sub contDiff_const))).mul |
| 1528 | ((theta_contDiff_one H Λ hpos).comp ((contDiff_id.add contDiff_const).add contDiff_const)) |
| 1529 | |
| 1530 | theorem peakTheta_contDiff_one [CompactSpace (V ⧸ Λ)] |
| 1531 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) (n : ℕ) (hn : 0 < n) (p : V) : |
| 1532 | ContDiff ℂ 1 (peakTheta H Λ n p) := centeredTheta_contDiff_one H Λ hpos n hn _ |
| 1533 | |
| 1534 | end SmoothSections |
| 1535 | |
| 1536 | /-- A continuously differentiable holomorphic function with the multiplier of |
| 1537 | a specified power of the polarization. -/ |
| 1538 | structure ThetaSection (Λ : AddSubgroup V) (n : ℕ) where |
| 1539 | toFun : V → ℂ |
| 1540 | regular : ContDiff ℂ 1 toFun |
| 1541 | translates : ∀ (l : Λ) (z : V), toFun (z + l) = doubledAutomorphy H l z ^ n * toFun z |
| 1542 | |
| 1543 | namespace ThetaSection |
| 1544 | |
| 1545 | variable {H} {Λ : AddSubgroup V} {n m : ℕ} |
| 1546 | |
| 1547 | instance : CoeFun (ThetaSection H Λ n) (fun _ => V → ℂ) := ⟨toFun⟩ |
| 1548 | |
| 1549 | theorem differentiable (s : ThetaSection H Λ n) : Differentiable ℂ s := |
| 1550 | s.regular.differentiable (by norm_num) |
| 1551 | |
| 1552 | theorem continuous (s : ThetaSection H Λ n) : Continuous s := s.regular.continuous |
| 1553 | |
| 1554 | theorem continuous_fderiv (s : ThetaSection H Λ n) : Continuous (fderiv ℂ s) := |
| 1555 | s.regular.continuous_fderiv (by norm_num) |
| 1556 | |
| 1557 | def one : ThetaSection H Λ 0 where |
| 1558 | toFun _ := 1 |
| 1559 | regular := contDiff_const |
| 1560 | translates _ _ := by simp |
| 1561 | |
| 1562 | def mul (s : ThetaSection H Λ n) (t : ThetaSection H Λ m) : ThetaSection H Λ (n + m) where |
| 1563 | toFun z := s z * t z |
| 1564 | regular := s.regular.mul t.regular |
| 1565 | translates l z := by rw [s.translates, t.translates, pow_add]; ring |
| 1566 | |
| 1567 | @[simp] |
| 1568 | theorem mul_apply (s : ThetaSection H Λ n) (t : ThetaSection H Λ m) (z : V) : |
| 1569 | s.mul t z = s z * t z := rfl |
| 1570 | |
| 1571 | def pow (s : ThetaSection H Λ n) (k : ℕ) : ThetaSection H Λ (n * k) where |
| 1572 | toFun z := s z ^ k |
| 1573 | regular := s.regular.pow k |
| 1574 | translates l z := by rw [s.translates, mul_pow, pow_mul] |
| 1575 | |
| 1576 | @[simp] |
| 1577 | theorem pow_apply (s : ThetaSection H Λ n) (k : ℕ) (z : V) : s.pow k z = s z ^ k := rfl |
| 1578 | |
| 1579 | /-- One of the mixed cubic monomials, in the same degree as `s³`. -/ |
| 1580 | def squareMul (s t : ThetaSection H Λ n) : ThetaSection H Λ (n * 3) where |
| 1581 | toFun z := s z ^ 2 * t z |
| 1582 | regular := (s.regular.pow 2).mul t.regular |
| 1583 | translates l z := by |
| 1584 | rw [s.translates, t.translates] |
| 1585 | simp only [mul_pow, pow_mul] |
| 1586 | ring |
| 1587 | |
| 1588 | @[simp] |
| 1589 | theorem squareMul_apply (s t : ThetaSection H Λ n) (z : V) : s.squareMul t z = s z ^ 2 * t z := rfl |
| 1590 | |
| 1591 | def add (s t : ThetaSection H Λ n) : ThetaSection H Λ n where |
| 1592 | toFun z := s z + t z |
| 1593 | regular := s.regular.add t.regular |
| 1594 | translates l z := by rw [s.translates, t.translates, mul_add] |
| 1595 | |
| 1596 | def constMul (c : ℂ) (s : ThetaSection H Λ n) : ThetaSection H Λ n where |
| 1597 | toFun z := c * s z |
| 1598 | regular := contDiff_const.mul s.regular |
| 1599 | translates l z := by rw [s.translates]; ring |
| 1600 | |
| 1601 | end ThetaSection |
| 1602 | |
| 1603 | /-- Finite homogeneous coordinates with no common zero. Injectivity and |
| 1604 | tangent separation are properties to prove, not fields of this structure. -/ |
| 1605 | structure FiniteSectionFamily (Λ : AddSubgroup V) where |
| 1606 | degree : ℕ |
| 1607 | sections : Finset (ThetaSection H Λ degree) |
| 1608 | nonzero : ∀ p : V, ∃ s ∈ sections, s p ≠ 0 |
| 1609 | |
| 1610 | namespace FiniteSectionFamily |
| 1611 | |
| 1612 | variable {H} {Λ : AddSubgroup V} |
| 1613 | |
| 1614 | def trivial : FiniteSectionFamily H Λ where |
| 1615 | degree := 0 |
| 1616 | sections := {ThetaSection.one} |
| 1617 | nonzero _ := ⟨ThetaSection.one, Finset.mem_singleton_self _, one_ne_zero⟩ |
| 1618 | |
| 1619 | /-- Products of homogeneous coordinates combine two families into one. -/ |
| 1620 | noncomputable def mul (F G : FiniteSectionFamily H Λ) : FiniteSectionFamily H Λ := by |
| 1621 | classical |
| 1622 | exact |
| 1623 | { degree := F.degree + G.degree |
| 1624 | sections := (F.sections ×ˢ G.sections).image (fun st => st.1.mul st.2) |
| 1625 | nonzero := fun p => by |
| 1626 | obtain ⟨s, hs, hsp⟩ := F.nonzero p |
| 1627 | obtain ⟨t, ht, htp⟩ := G.nonzero p |
| 1628 | exact ⟨s.mul t, Finset.mem_image.mpr ⟨(s, t), Finset.mem_product.mpr ⟨hs, ht⟩, rfl⟩, |
| 1629 | mul_ne_zero hsp htp⟩ } |
| 1630 | |
| 1631 | theorem mul_mem (F G : FiniteSectionFamily H Λ) (s : ThetaSection H Λ F.degree) |
| 1632 | (hs : s ∈ F.sections) (t : ThetaSection H Λ G.degree) (ht : t ∈ G.sections) : |
| 1633 | s.mul t ∈ (F.mul G).sections := by |
| 1634 | classical |
| 1635 | exact Finset.mem_image.mpr ⟨(s, t), Finset.mem_product.mpr ⟨hs, ht⟩, rfl⟩ |
| 1636 | |
| 1637 | def Separates (F : FiniteSectionFamily H Λ) (p q : V) : Prop := |
| 1638 | ∃ s ∈ F.sections, ∃ t ∈ F.sections, s p * t q ≠ s q * t p |
| 1639 | |
| 1640 | def Detects (F : FiniteSectionFamily H Λ) (p v : V) : Prop := |
| 1641 | ∃ s ∈ F.sections, ∃ t ∈ F.sections, s p ≠ 0 ∧ |
| 1642 | s p * fderiv ℂ t p v ≠ t p * fderiv ℂ s p v |
| 1643 | |
| 1644 | end FiniteSectionFamily |
| 1645 | |
| 1646 | section BackgroundFamilies |
| 1647 | |
| 1648 | variable [FiniteDimensional ℂ V] (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 1649 | [CompactSpace (V ⧸ Λ)] |
| 1650 | |
| 1651 | def tripleSection |
| 1652 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1653 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1654 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 1655 | (n : ℕ) (hn : 0 < n) (ab : V × V) : ThetaSection H Λ (n * 3) := by |
| 1656 | let : FiniteDimensional ℝ V := Module.Finite.trans ℂ V |
| 1657 | exact |
| 1658 | { toFun := thetaTriple (powerHermitian H n) Λ ab.1 ab.2 |
| 1659 | regular := thetaTriple_contDiff_one _ Λ (powerHermitian_positive H hpos n hn) ab.1 ab.2 |
| 1660 | translates := fun l z => by |
| 1661 | rw [thetaTriple_translation _ Λ (powerHermitian_symm H hsym n) |
| 1662 | (powerHermitian_integral H Λ hint n), doubledAutomorphy_power, pow_mul] } |
| 1663 | |
| 1664 | /-- Every positive degree has a cubed finite family without a common zero. -/ |
| 1665 | def cubicBackground |
| 1666 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1667 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1668 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 1669 | (n : ℕ) (hn : 0 < n) : FiniteSectionFamily H Λ := by |
| 1670 | classical |
| 1671 | let hex := exists_finite_thetaTriples (powerHermitian H n) Λ |
| 1672 | (powerHermitian_symm H hsym n) (powerHermitian_positive H hpos n hn) |
| 1673 | (powerHermitian_integral H Λ hint n) |
| 1674 | exact |
| 1675 | { degree := n * 3 |
| 1676 | sections := hex.choose.image (tripleSection H Λ hsym hpos hint n hn) |
| 1677 | nonzero := fun p => by |
| 1678 | obtain ⟨ab, hab, hp⟩ := hex.choose_spec p |
| 1679 | exact ⟨tripleSection H Λ hsym hpos hint n hn ab, Finset.mem_image.mpr ⟨ab, hab, rfl⟩, hp⟩ } |
| 1680 | |
| 1681 | end BackgroundFamilies |
| 1682 | |
| 1683 | section Wronskians |
| 1684 | |
| 1685 | def wronskian (s t : V → ℂ) (p v : V) : ℂ := |
| 1686 | s p * fderiv ℂ t p v - t p * fderiv ℂ s p v |
| 1687 | |
| 1688 | theorem wronskian_mul_right (s t g : V → ℂ) (p v : V) |
| 1689 | (hs : DifferentiableAt ℂ s p) (ht : DifferentiableAt ℂ t p) (hg : DifferentiableAt ℂ g p) : |
| 1690 | wronskian (s * g) (t * g) p v = g p ^ 2 * wronskian s t p v := by |
| 1691 | rw [wronskian, fderiv_mul ht hg, fderiv_mul hs hg] |
| 1692 | simp only [Pi.mul_apply, add_apply, smul_apply, smul_eq_mul, wronskian] |
| 1693 | ring |
| 1694 | |
| 1695 | theorem wronskian_cubes (s t : V → ℂ) (p v : V) |
| 1696 | (hs : DifferentiableAt ℂ s p) (ht : DifferentiableAt ℂ t p) : |
| 1697 | wronskian (s ^ 3) (s ^ 2 * t) p v = s p ^ 4 * wronskian s t p v := by |
| 1698 | rw [wronskian, fderiv_mul (hs.pow 2) ht, fderiv_pow 2 hs, fderiv_pow 3 hs] |
| 1699 | simp only [Pi.mul_apply, Pi.pow_apply, add_apply, smul_apply, smul_eq_mul, wronskian] |
| 1700 | norm_num |
| 1701 | ring |
| 1702 | |
| 1703 | end Wronskians |
| 1704 | |
| 1705 | namespace FiniteSectionFamily |
| 1706 | |
| 1707 | variable {H} {Λ : AddSubgroup V} |
| 1708 | |
| 1709 | theorem detects_mul_left (F G : FiniteSectionFamily H Λ) (p v : V) (hF : F.Detects p v) : |
| 1710 | (F.mul G).Detects p v := by |
| 1711 | obtain ⟨s, hs, t, ht, hsp, hdet⟩ := hF |
| 1712 | obtain ⟨g, hg, hgp⟩ := G.nonzero p |
| 1713 | refine ⟨s.mul g, mul_mem F G s hs g hg, t.mul g, mul_mem F G t ht g hg, |
| 1714 | mul_ne_zero hsp hgp, ?_⟩ |
| 1715 | apply sub_ne_zero.mp |
| 1716 | change wronskian ((s : V → ℂ) * (g : V → ℂ)) ((t : V → ℂ) * (g : V → ℂ)) p v ≠ 0 |
| 1717 | rw [wronskian_mul_right _ _ _ _ _ (s.differentiable p) (t.differentiable p) (g.differentiable p)] |
| 1718 | exact mul_ne_zero (pow_ne_zero 2 hgp) (sub_ne_zero.mpr hdet) |
| 1719 | |
| 1720 | theorem separates_mul_left (F G : FiniteSectionFamily H Λ) (p q : V) (hF : F.Separates p q) : |
| 1721 | (F.mul G).Separates p q := by |
| 1722 | obtain ⟨s, hs, t, ht, hdet⟩ := hF |
| 1723 | obtain ⟨g, hg, hgp⟩ := G.nonzero p |
| 1724 | by_cases hgq : g q = 0 |
| 1725 | · obtain ⟨h, hh, hhq⟩ := G.nonzero q |
| 1726 | obtain ⟨a, ha, hap⟩ := F.nonzero p |
| 1727 | obtain ⟨b, hb, hbq⟩ := F.nonzero q |
| 1728 | refine ⟨a.mul g, mul_mem F G a ha g hg, b.mul h, mul_mem F G b hb h hh, ?_⟩ |
| 1729 | simp only [ThetaSection.mul_apply, hgq, mul_zero, zero_mul] |
| 1730 | exact mul_ne_zero (mul_ne_zero hap hgp) (mul_ne_zero hbq hhq) |
| 1731 | · refine ⟨s.mul g, mul_mem F G s hs g hg, t.mul g, mul_mem F G t ht g hg, ?_⟩ |
| 1732 | apply sub_ne_zero.mp |
| 1733 | have he : (s.mul g p * t.mul g q) - (s.mul g q * t.mul g p) = |
| 1734 | (g p * g q) * (s p * t q - s q * t p) := by simp only [ThetaSection.mul_apply]; ring |
| 1735 | rw [he] |
| 1736 | exact mul_ne_zero (mul_ne_zero hgp hgq) (sub_ne_zero.mpr hdet) |
| 1737 | |
| 1738 | theorem isOpen_detects (F : FiniteSectionFamily H Λ) : |
| 1739 | IsOpen {pv : V × V | F.Detects pv.1 pv.2} := by |
| 1740 | apply isOpen_iff_mem_nhds.mpr |
| 1741 | intro pv hpv |
| 1742 | obtain ⟨s, hs, t, ht, hsp, hdet⟩ := hpv |
| 1743 | have hcs : Continuous (fun pv : V × V => s pv.1) := s.continuous.comp continuous_fst |
| 1744 | have hct : Continuous (fun pv : V × V => t pv.1) := t.continuous.comp continuous_fst |
| 1745 | have hds : Continuous (fun pv : V × V => fderiv ℂ s pv.1 pv.2) := |
| 1746 | (s.continuous_fderiv.comp continuous_fst).clm_apply continuous_snd |
| 1747 | have hdt : Continuous (fun pv : V × V => fderiv ℂ t pv.1 pv.2) := |
| 1748 | (t.continuous_fderiv.comp continuous_fst).clm_apply continuous_snd |
| 1749 | filter_upwards [(isOpen_ne_fun hcs continuous_const).mem_nhds hsp, |
| 1750 | (isOpen_ne_fun (hcs.mul hdt) (hct.mul hds)).mem_nhds hdet] with x hx hxdet |
| 1751 | exact ⟨s, hs, t, ht, hx, hxdet⟩ |
| 1752 | |
| 1753 | theorem isOpen_separates (F : FiniteSectionFamily H Λ) : |
| 1754 | IsOpen {pq : V × V | F.Separates pq.1 pq.2} := by |
| 1755 | apply isOpen_iff_mem_nhds.mpr |
| 1756 | intro pq hpq |
| 1757 | obtain ⟨s, hs, t, ht, hdet⟩ := hpq |
| 1758 | have hc1 : Continuous (fun pq : V × V => s pq.1 * t pq.2) := |
| 1759 | (s.continuous.comp continuous_fst).mul (t.continuous.comp continuous_snd) |
| 1760 | have hc2 : Continuous (fun pq : V × V => s pq.2 * t pq.1) := |
| 1761 | (s.continuous.comp continuous_snd).mul (t.continuous.comp continuous_fst) |
| 1762 | filter_upwards [(isOpen_ne_fun hc1 hc2).mem_nhds hdet] with x hx |
| 1763 | exact ⟨s, hs, t, ht, hx⟩ |
| 1764 | |
| 1765 | end FiniteSectionFamily |
| 1766 | |
| 1767 | section CubicFamilies |
| 1768 | |
| 1769 | variable [FiniteDimensional ℂ V] (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 1770 | [CompactSpace (V ⧸ Λ)] |
| 1771 | |
| 1772 | def cubicFamily |
| 1773 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1774 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1775 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 1776 | (n : ℕ) (hn : 0 < n) (s t : ThetaSection H Λ n) : FiniteSectionFamily H Λ := by |
| 1777 | classical |
| 1778 | let F := cubicBackground H Λ hsym hpos hint n hn |
| 1779 | exact |
| 1780 | { degree := n * 3 |
| 1781 | sections := {s.pow 3, t.pow 3, s.squareMul t, t.squareMul s} ∪ F.sections |
| 1782 | nonzero := fun p => by |
| 1783 | obtain ⟨u, hu, hup⟩ := F.nonzero p |
| 1784 | exact ⟨u, Finset.mem_union_right _ hu, hup⟩ } |
| 1785 | |
| 1786 | open scoped Classical in |
| 1787 | theorem cubicFamily_mem |
| 1788 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1789 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1790 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 1791 | (n : ℕ) (hn : 0 < n) (s t : ThetaSection H Λ n) (u : ThetaSection H Λ (n * 3)) |
| 1792 | (hu : u ∈ ({s.pow 3, t.pow 3, s.squareMul t, t.squareMul s} : Finset _)) : |
| 1793 | u ∈ (cubicFamily H Λ hsym hpos hint n hn s t).sections := by |
| 1794 | classical |
| 1795 | exact Finset.mem_union_left _ hu |
| 1796 | |
| 1797 | theorem cubicFamily_separates |
| 1798 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1799 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1800 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 1801 | (n : ℕ) (hn : 0 < n) (s t : ThetaSection H Λ n) (p q : V) |
| 1802 | (hdet : s p * t q ≠ s q * t p) : |
| 1803 | (cubicFamily H Λ hsym hpos hint n hn s t).Separates p q := by |
| 1804 | classical |
| 1805 | have hs := cubicFamily_mem H Λ hsym hpos hint n hn s t (s.pow 3) (by simp) |
| 1806 | have ht := cubicFamily_mem H Λ hsym hpos hint n hn s t (t.pow 3) (by simp) |
| 1807 | have hst := cubicFamily_mem H Λ hsym hpos hint n hn s t (s.squareMul t) (by simp) |
| 1808 | by_cases hsp : s p = 0 |
| 1809 | · have hsq : s q ≠ 0 := by intro h; simp [hsp, h] at hdet |
| 1810 | have htp : t p ≠ 0 := by intro h; simp [hsp, h] at hdet |
| 1811 | refine ⟨s.pow 3, hs, t.pow 3, ht, ?_⟩ |
| 1812 | simp only [ThetaSection.pow_apply, hsp, zero_pow (by omega : 3 ≠ 0), zero_mul] |
| 1813 | exact Ne.symm (mul_ne_zero (pow_ne_zero 3 hsq) (pow_ne_zero 3 htp)) |
| 1814 | · by_cases hsq : s q = 0 |
| 1815 | · have htq : t q ≠ 0 := by intro h; simp [hsq, h] at hdet |
| 1816 | refine ⟨s.pow 3, hs, t.pow 3, ht, ?_⟩ |
| 1817 | simp only [ThetaSection.pow_apply, hsq, zero_pow (by omega : 3 ≠ 0), zero_mul] |
| 1818 | exact mul_ne_zero (pow_ne_zero 3 hsp) (pow_ne_zero 3 htq) |
| 1819 | · refine ⟨s.pow 3, hs, s.squareMul t, hst, ?_⟩ |
| 1820 | apply sub_ne_zero.mp |
| 1821 | have he : s.pow 3 p * s.squareMul t q - s.pow 3 q * s.squareMul t p = |
| 1822 | (s p ^ 2 * s q ^ 2) * (s p * t q - s q * t p) := by |
| 1823 | simp only [ThetaSection.pow_apply, ThetaSection.squareMul_apply] |
| 1824 | ring |
| 1825 | rw [he] |
| 1826 | exact mul_ne_zero (mul_ne_zero (pow_ne_zero 2 hsp) (pow_ne_zero 2 hsq)) (sub_ne_zero.mpr hdet) |
| 1827 | |
| 1828 | theorem cubicFamily_detects |
| 1829 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1830 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1831 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 1832 | (n : ℕ) (hn : 0 < n) (s t : ThetaSection H Λ n) (p v : V) (hsp : s p ≠ 0) |
| 1833 | (hdet : s p * fderiv ℂ t p v ≠ t p * fderiv ℂ s p v) : |
| 1834 | (cubicFamily H Λ hsym hpos hint n hn s t).Detects p v := by |
| 1835 | classical |
| 1836 | refine ⟨s.pow 3, cubicFamily_mem H Λ hsym hpos hint n hn s t _ (by simp), |
| 1837 | s.squareMul t, cubicFamily_mem H Λ hsym hpos hint n hn s t _ (by simp), |
| 1838 | pow_ne_zero 3 hsp, ?_⟩ |
| 1839 | apply sub_ne_zero.mp |
| 1840 | change wronskian ((s : V → ℂ) ^ 3) ((s : V → ℂ) ^ 2 * (t : V → ℂ)) p v ≠ 0 |
| 1841 | rw [wronskian_cubes _ _ _ _ (s.differentiable p) (t.differentiable p)] |
| 1842 | exact mul_ne_zero (pow_ne_zero 4 hsp) (sub_ne_zero.mpr hdet) |
| 1843 | |
| 1844 | end CubicFamilies |
| 1845 | |
| 1846 | namespace FiniteSectionFamily |
| 1847 | |
| 1848 | variable {H} {Λ : AddSubgroup V} |
| 1849 | |
| 1850 | theorem detects_mul_right (F G : FiniteSectionFamily H Λ) (p v : V) (hG : G.Detects p v) : |
| 1851 | (F.mul G).Detects p v := by |
| 1852 | obtain ⟨s, hs, t, ht, hsp, hdet⟩ := hG |
| 1853 | obtain ⟨g, hg, hgp⟩ := F.nonzero p |
| 1854 | refine ⟨g.mul s, mul_mem F G g hg s hs, g.mul t, mul_mem F G g hg t ht, |
| 1855 | mul_ne_zero hgp hsp, ?_⟩ |
| 1856 | apply sub_ne_zero.mp |
| 1857 | change wronskian ((g : V → ℂ) * (s : V → ℂ)) ((g : V → ℂ) * (t : V → ℂ)) p v ≠ 0 |
| 1858 | rw [mul_comm (g : V → ℂ) (s : V → ℂ), mul_comm (g : V → ℂ) (t : V → ℂ), |
| 1859 | wronskian_mul_right _ _ _ _ _ (s.differentiable p) (t.differentiable p) (g.differentiable p)] |
| 1860 | exact mul_ne_zero (pow_ne_zero 2 hgp) (sub_ne_zero.mpr hdet) |
| 1861 | |
| 1862 | theorem separates_mul_right (F G : FiniteSectionFamily H Λ) (p q : V) (hG : G.Separates p q) : |
| 1863 | (F.mul G).Separates p q := by |
| 1864 | obtain ⟨s, hs, t, ht, hdet⟩ := hG |
| 1865 | obtain ⟨g, hg, hgp⟩ := F.nonzero p |
| 1866 | by_cases hgq : g q = 0 |
| 1867 | · obtain ⟨h, hh, hhq⟩ := F.nonzero q |
| 1868 | obtain ⟨a, ha, hap⟩ := G.nonzero p |
| 1869 | obtain ⟨b, hb, hbq⟩ := G.nonzero q |
| 1870 | refine ⟨g.mul a, mul_mem F G g hg a ha, h.mul b, mul_mem F G h hh b hb, ?_⟩ |
| 1871 | simp only [ThetaSection.mul_apply, hgq, zero_mul] |
| 1872 | exact mul_ne_zero (mul_ne_zero hgp hap) (mul_ne_zero hhq hbq) |
| 1873 | · refine ⟨g.mul s, mul_mem F G g hg s hs, g.mul t, mul_mem F G g hg t ht, ?_⟩ |
| 1874 | apply sub_ne_zero.mp |
| 1875 | have he : g.mul s p * g.mul t q - g.mul s q * g.mul t p = |
| 1876 | (g p * g q) * (s p * t q - s q * t p) := by simp only [ThetaSection.mul_apply]; ring |
| 1877 | rw [he] |
| 1878 | exact mul_ne_zero (mul_ne_zero hgp hgq) (sub_ne_zero.mpr hdet) |
| 1879 | |
| 1880 | /-- Finitely many coordinate families can be combined while preserving every |
| 1881 | point and tangent separation they already provide. -/ |
| 1882 | theorem exists_common_family (S : Finset (FiniteSectionFamily H Λ)) : |
| 1883 | ∃ F : FiniteSectionFamily H Λ, |
| 1884 | (∀ G ∈ S, ∀ p v : V, G.Detects p v → F.Detects p v) ∧ |
| 1885 | (∀ G ∈ S, ∀ p q : V, G.Separates p q → F.Separates p q) := by |
| 1886 | classical |
| 1887 | induction S using Finset.induction_on with |
| 1888 | | empty => exact ⟨trivial, by simp, by simp⟩ |
| 1889 | | @insert G S hGS ih => |
| 1890 | obtain ⟨F, hFd, hFs⟩ := ih |
| 1891 | refine ⟨G.mul F, ?_, ?_⟩ |
| 1892 | · intro K hK p v hKd |
| 1893 | rcases Finset.mem_insert.mp hK with hEq | hKS |
| 1894 | · subst K |
| 1895 | exact FiniteSectionFamily.detects_mul_left G F p v hKd |
| 1896 | · exact detects_mul_right G F p v (hFd K hKS p v hKd) |
| 1897 | · intro K hK p q hKs |
| 1898 | rcases Finset.mem_insert.mp hK with hEq | hKS |
| 1899 | · subst K |
| 1900 | exact FiniteSectionFamily.separates_mul_left G F p q hKs |
| 1901 | · exact FiniteSectionFamily.separates_mul_right G F p q (hFs K hKS p q hKs) |
| 1902 | |
| 1903 | theorem exists_detecting_on_compact (K : Set (V × V)) (hK : IsCompact K) |
| 1904 | (hcover : ∀ pv ∈ K, ∃ F : FiniteSectionFamily H Λ, F.Detects pv.1 pv.2) : |
| 1905 | ∃ F : FiniteSectionFamily H Λ, ∀ pv ∈ K, F.Detects pv.1 pv.2 := by |
| 1906 | classical |
| 1907 | have hcov : K ⊆ ⋃ F : FiniteSectionFamily H Λ, {pv | F.Detects pv.1 pv.2} := by |
| 1908 | intro pv hpv |
| 1909 | exact Set.mem_iUnion.mpr (hcover pv hpv) |
| 1910 | obtain ⟨S, hS⟩ := hK.elim_finite_subcover (fun F : FiniteSectionFamily H Λ => |
| 1911 | {pv | F.Detects pv.1 pv.2}) (fun F => F.isOpen_detects) hcov |
| 1912 | obtain ⟨F, hFd, _⟩ := exists_common_family S |
| 1913 | refine ⟨F, fun pv hpv => ?_⟩ |
| 1914 | obtain ⟨G, hGS, hG⟩ := (show ∃ G ∈ S, G.Detects pv.1 pv.2 from by |
| 1915 | simpa only [Set.mem_iUnion, Set.mem_ofPred_eq, exists_prop] using hS hpv) |
| 1916 | exact hFd G hGS pv.1 pv.2 hG |
| 1917 | |
| 1918 | theorem exists_separating_on_compact (K : Set (V × V)) (hK : IsCompact K) |
| 1919 | (hcover : ∀ pq ∈ K, ∃ F : FiniteSectionFamily H Λ, F.Separates pq.1 pq.2) : |
| 1920 | ∃ F : FiniteSectionFamily H Λ, ∀ pq ∈ K, F.Separates pq.1 pq.2 := by |
| 1921 | classical |
| 1922 | have hcov : K ⊆ ⋃ F : FiniteSectionFamily H Λ, {pq | F.Separates pq.1 pq.2} := by |
| 1923 | intro pq hpq |
| 1924 | exact Set.mem_iUnion.mpr (hcover pq hpq) |
| 1925 | obtain ⟨S, hS⟩ := hK.elim_finite_subcover (fun F : FiniteSectionFamily H Λ => |
| 1926 | {pq | F.Separates pq.1 pq.2}) (fun F => F.isOpen_separates) hcov |
| 1927 | obtain ⟨F, _, hFs⟩ := exists_common_family S |
| 1928 | refine ⟨F, fun pq hpq => ?_⟩ |
| 1929 | obtain ⟨G, hGS, hG⟩ := (show ∃ G ∈ S, G.Separates pq.1 pq.2 from by |
| 1930 | simpa only [Set.mem_iUnion, Set.mem_ofPred_eq, exists_prop] using hS hpq) |
| 1931 | exact hFs G hGS pq.1 pq.2 hG |
| 1932 | |
| 1933 | end FiniteSectionFamily |
| 1934 | |
| 1935 | section FiniteSeparation |
| 1936 | |
| 1937 | variable [FiniteDimensional ℂ V] (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 1938 | [CompactSpace (V ⧸ Λ)] |
| 1939 | |
| 1940 | theorem exists_family_separating_points |
| 1941 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1942 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1943 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 1944 | (p q : V) (hpq : q - p ∉ Λ) : |
| 1945 | ∃ F : FiniteSectionFamily H Λ, F.Separates p q := by |
| 1946 | let : FiniteDimensional ℝ V := Module.Finite.trans ℂ V |
| 1947 | obtain ⟨n, hn, hsep⟩ := (peakTheta_eventually_separates H Λ hsym hpos p q hpq).exists |
| 1948 | let s : ThetaSection H Λ n := |
| 1949 | ⟨peakTheta H Λ n p, peakTheta_contDiff_one H Λ hpos n hn p, |
| 1950 | fun l z => peakTheta_translation H Λ hsym hint n hn p z l⟩ |
| 1951 | let t : ThetaSection H Λ n := |
| 1952 | ⟨peakTheta H Λ n q, peakTheta_contDiff_one H Λ hpos n hn q, |
| 1953 | fun l z => peakTheta_translation H Λ hsym hint n hn q z l⟩ |
| 1954 | exact ⟨cubicFamily H Λ hsym hpos hint n hn s t, |
| 1955 | cubicFamily_separates H Λ hsym hpos hint n hn s t p q hsep⟩ |
| 1956 | |
| 1957 | theorem exists_family_detecting_tangent |
| 1958 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 1959 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 1960 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) |
| 1961 | (p v : V) (hv : v ≠ 0) : ∃ F : FiniteSectionFamily H Λ, F.Detects p v := by |
| 1962 | let : FiniteDimensional ℝ V := Module.Finite.trans ℂ V |
| 1963 | obtain ⟨n, a, b, hn, ha, hb, hsp, hsep⟩ := exists_centeredTheta_separating_tangent H Λ hpos p v hv |
| 1964 | let s : ThetaSection H Λ n := |
| 1965 | ⟨centeredTheta H Λ n a, centeredTheta_contDiff_one H Λ hpos n hn a, |
| 1966 | fun l z => centeredTheta_translation H hsym Λ hint n a z ha l⟩ |
| 1967 | let t : ThetaSection H Λ n := |
| 1968 | ⟨centeredTheta H Λ n b, centeredTheta_contDiff_one H Λ hpos n hn b, |
| 1969 | fun l z => centeredTheta_translation H hsym Λ hint n b z hb l⟩ |
| 1970 | exact ⟨cubicFamily H Λ hsym hpos hint n hn s t, |
| 1971 | cubicFamily_detects H Λ hsym hpos hint n hn s t p v hsp hsep⟩ |
| 1972 | |
| 1973 | end FiniteSeparation |
| 1974 | |
| 1975 | namespace ThetaSection |
| 1976 | |
| 1977 | variable {H} {Λ : AddSubgroup V} {n : ℕ} [FiniteDimensional ℂ V] |
| 1978 | |
| 1979 | theorem fderiv_translate (s : ThetaSection H Λ n) (l : Λ) (p v : V) : |
| 1980 | fderiv ℂ s (p + l) v = doubledAutomorphy H l p ^ n * fderiv ℂ s p v + |
| 1981 | s p * fderiv ℂ (fun z => doubledAutomorphy H l z ^ n) p v := by |
| 1982 | have he : (fun z : V => s (z + l)) = |
| 1983 | (fun z : V => doubledAutomorphy H l z ^ n) * (s : V → ℂ) := funext (s.translates l) |
| 1984 | have hd := congrArg (fun f : V → ℂ => fderiv ℂ f p v) he |
| 1985 | have ha : DifferentiableAt ℂ (fun z : V => doubledAutomorphy H l z ^ n) p := |
| 1986 | ((doubledAutomorphy_differentiable H l).pow n) p |
| 1987 | rw [fderiv_comp_add_right, fderiv_mul ha (s.differentiable p)] at hd |
| 1988 | simpa only [add_apply, smul_apply, smul_eq_mul] using hd |
| 1989 | |
| 1990 | theorem wronskian_translate (s t : ThetaSection H Λ n) (l : Λ) (p v : V) : |
| 1991 | wronskian s t (p + l) v = (doubledAutomorphy H l p ^ n) ^ 2 * wronskian s t p v := by |
| 1992 | rw [wronskian, s.translates, t.translates, s.fderiv_translate, t.fderiv_translate, wronskian] |
| 1993 | ring |
| 1994 | |
| 1995 | end ThetaSection |
| 1996 | |
| 1997 | namespace FiniteSectionFamily |
| 1998 | |
| 1999 | variable {H} {Λ : AddSubgroup V} |
| 2000 | |
| 2001 | theorem detects_of_smul (F : FiniteSectionFamily H Λ) (p v : V) (c : ℂ) |
| 2002 | (hF : F.Detects p (c • v)) : F.Detects p v := by |
| 2003 | obtain ⟨s, hs, t, ht, hsp, hdet⟩ := hF |
| 2004 | refine ⟨s, hs, t, ht, hsp, fun he => hdet ?_⟩ |
| 2005 | simp only [map_smul, smul_eq_mul] |
| 2006 | linear_combination c * he |
| 2007 | |
| 2008 | theorem detects_translate [FiniteDimensional ℂ V] (F : FiniteSectionFamily H Λ) |
| 2009 | (l : Λ) (p v : V) (hF : F.Detects p v) : F.Detects (p + l) v := by |
| 2010 | obtain ⟨s, hs, t, ht, hsp, hdet⟩ := hF |
| 2011 | refine ⟨s, hs, t, ht, ?_, ?_⟩ |
| 2012 | · rw [s.translates] |
| 2013 | exact mul_ne_zero (pow_ne_zero _ (doubledAutomorphy_ne_zero H l p)) hsp |
| 2014 | · apply sub_ne_zero.mp |
| 2015 | change wronskian s t (p + l) v ≠ 0 |
| 2016 | rw [ThetaSection.wronskian_translate] |
| 2017 | exact mul_ne_zero (pow_ne_zero _ (pow_ne_zero _ (doubledAutomorphy_ne_zero H l p))) |
| 2018 | (sub_ne_zero.mpr hdet) |
| 2019 | |
| 2020 | end FiniteSectionFamily |
| 2021 | |
| 2022 | section FiniteImmersion |
| 2023 | |
| 2024 | variable [FiniteDimensional ℂ V] (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 2025 | [CompactSpace (V ⧸ Λ)] |
| 2026 | |
| 2027 | /-- One finite homogeneous-coordinate family detects every nonzero tangent |
| 2028 | vector at every point, using compactness and lattice translation. -/ |
| 2029 | theorem exists_family_detecting_all_tangents |
| 2030 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 2031 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 2032 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) : |
| 2033 | ∃ F : FiniteSectionFamily H Λ, ∀ (p v : V), v ≠ 0 → F.Detects p v := by |
| 2034 | let : ProperSpace V := FiniteDimensional.proper_rclike ℂ V |
| 2035 | let K : Set (V × V) := Metric.closedBall (0 : V) (roundingBound Λ) ×ˢ Metric.sphere (0 : V) 1 |
| 2036 | have hK : IsCompact K := (isCompact_closedBall _ _).prod (isCompact_sphere _ _) |
| 2037 | obtain ⟨F, hF⟩ := FiniteSectionFamily.exists_detecting_on_compact (H := H) (Λ := Λ) K hK (by |
| 2038 | intro pv hpv |
| 2039 | have hv : pv.2 ≠ 0 := by |
| 2040 | intro hv |
| 2041 | have h := hpv.2 |
| 2042 | simp [hv] at h |
| 2043 | exact exists_family_detecting_tangent H Λ hsym hpos hint pv.1 pv.2 hv) |
| 2044 | refine ⟨F, fun p v hv => ?_⟩ |
| 2045 | let l : Λ := roundToLattice Λ p |
| 2046 | let p₀ : V := p - l |
| 2047 | let v₀ : V := (‖v‖⁻¹ : ℂ) • v |
| 2048 | have hp₀ : p₀ ∈ Metric.closedBall (0 : V) (roundingBound Λ) := by |
| 2049 | simpa only [Metric.mem_closedBall, dist_zero_right] using roundToLattice_norm_le Λ p |
| 2050 | have hv₀ : v₀ ∈ Metric.sphere (0 : V) 1 := by |
| 2051 | rw [Metric.mem_sphere, dist_zero_right] |
| 2052 | exact norm_smul_inv_norm hv |
| 2053 | have hdetect := hF (p₀, v₀) ⟨hp₀, hv₀⟩ |
| 2054 | have hdetect' := F.detects_of_smul p₀ v (‖v‖⁻¹ : ℂ) hdetect |
| 2055 | have hshift := F.detects_translate l p₀ v hdetect' |
| 2056 | simpa only [p₀, sub_add_cancel] using hshift |
| 2057 | |
| 2058 | end FiniteImmersion |
| 2059 | |
| 2060 | namespace FiniteSectionFamily |
| 2061 | |
| 2062 | open OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 2063 | open Filter _root_.Topology |
| 2064 | |
| 2065 | variable {H} {Λ : AddSubgroup V} |
| 2066 | |
| 2067 | theorem sections_nonempty (F : FiniteSectionFamily H Λ) : F.sections.Nonempty := by |
| 2068 | obtain ⟨s, hs, _⟩ := F.nonzero 0 |
| 2069 | exact ⟨s, hs⟩ |
| 2070 | |
| 2071 | def projectiveDimension (F : FiniteSectionFamily H Λ) : ℕ := F.sections.card - 1 |
| 2072 | |
| 2073 | noncomputable def indexEquiv (F : FiniteSectionFamily H Λ) : |
| 2074 | F.sections ≃ Fin (F.projectiveDimension + 1) := by |
| 2075 | classical |
| 2076 | apply Finset.equivFinOfCardEq |
| 2077 | have h := Finset.card_pos.mpr F.sections_nonempty |
| 2078 | dsimp [FiniteSectionFamily.projectiveDimension] |
| 2079 | omega |
| 2080 | |
| 2081 | def coordinate (F : FiniteSectionFamily H Λ) (i : Fin (F.projectiveDimension + 1)) : |
| 2082 | ThetaSection H Λ F.degree := (F.indexEquiv.symm i).val |
| 2083 | |
| 2084 | theorem coordinate_surjective (F : FiniteSectionFamily H Λ) |
| 2085 | (s : ThetaSection H Λ F.degree) (hs : s ∈ F.sections) : ∃ i, F.coordinate i = s := by |
| 2086 | refine ⟨F.indexEquiv ⟨s, hs⟩, ?_⟩ |
| 2087 | simp [FiniteSectionFamily.coordinate] |
| 2088 | |
| 2089 | def vector (F : FiniteSectionFamily H Λ) (p : V) : Fin (F.projectiveDimension + 1) → ℂ := |
| 2090 | fun i => F.coordinate i p |
| 2091 | |
| 2092 | theorem vector_ne_zero (F : FiniteSectionFamily H Λ) (p : V) : F.vector p ≠ 0 := by |
| 2093 | obtain ⟨s, hs, hsp⟩ := F.nonzero p |
| 2094 | obtain ⟨i, hi⟩ := F.coordinate_surjective s hs |
| 2095 | intro he |
| 2096 | have hz := congrFun he i |
| 2097 | change F.coordinate i p = 0 at hz |
| 2098 | rw [hi] at hz |
| 2099 | exact hsp hz |
| 2100 | |
| 2101 | def projectiveLift (F : FiniteSectionFamily H Λ) (p : V) : |
| 2102 | Projectivization ℂ (Fin (F.projectiveDimension + 1) → ℂ) := |
| 2103 | Projectivization.mk ℂ (F.vector p) (F.vector_ne_zero p) |
| 2104 | |
| 2105 | def projectiveMap (F : FiniteSectionFamily H Λ) (q : V ⧸ Λ) : |
| 2106 | Projectivization ℂ (Fin (F.projectiveDimension + 1) → ℂ) := |
| 2107 | F.projectiveLift (Quotient.out q) |
| 2108 | |
| 2109 | theorem projectiveLift_translate (F : FiniteSectionFamily H Λ) (l : Λ) (p : V) : |
| 2110 | F.projectiveLift (p + l) = F.projectiveLift p := by |
| 2111 | apply (Projectivization.mk_eq_mk_iff' ℂ _ _ _ _).mpr |
| 2112 | refine ⟨doubledAutomorphy H l p ^ F.degree, ?_⟩ |
| 2113 | funext i |
| 2114 | exact ((F.coordinate i).translates l p).symm |
| 2115 | |
| 2116 | theorem projectiveMap_lift (F : FiniteSectionFamily H Λ) (p : V) : |
| 2117 | F.projectiveMap (QuotientAddGroup.mk p) = F.projectiveLift p := by |
| 2118 | have hq : (QuotientAddGroup.mk (Quotient.out (QuotientAddGroup.mk p : V ⧸ Λ)) : V ⧸ Λ) = |
| 2119 | QuotientAddGroup.mk p := Quotient.out_eq _ |
| 2120 | have hl : Quotient.out (QuotientAddGroup.mk p : V ⧸ Λ) - p ∈ Λ := |
| 2121 | QuotientAddGroup.eq_iff_sub_mem.mp hq |
| 2122 | let l : Λ := ⟨Quotient.out (QuotientAddGroup.mk p : V ⧸ Λ) - p, hl⟩ |
| 2123 | have he : p + (l : V) = Quotient.out (QuotientAddGroup.mk p : V ⧸ Λ) := by dsimp [l]; abel |
| 2124 | simpa only [he, FiniteSectionFamily.projectiveMap] using F.projectiveLift_translate l p |
| 2125 | |
| 2126 | theorem projectiveMap_continuous (F : FiniteSectionFamily H Λ) : Continuous F.projectiveMap := by |
| 2127 | apply (QuotientAddGroup.isQuotientMap_mk Λ).continuous_iff.mpr |
| 2128 | have hc : Continuous F.vector := continuous_pi (fun i => (F.coordinate i).continuous) |
| 2129 | have h := (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCompactness.continuous_projectivization_mk' ℂ (Fin (F.projectiveDimension + 1) → ℂ)).comp |
| 2130 | (hc.subtype_mk F.vector_ne_zero) |
| 2131 | convert! h using 1 |
| 2132 | funext p |
| 2133 | exact F.projectiveMap_lift p |
| 2134 | |
| 2135 | theorem projectiveMap_inPatch (F : FiniteSectionFamily H Λ) |
| 2136 | (i : Fin (F.projectiveDimension + 1)) (p : V) : |
| 2137 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (F.projectiveMap (QuotientAddGroup.mk p)) ↔ F.coordinate i p ≠ 0 := by |
| 2138 | rw [F.projectiveMap_lift] |
| 2139 | exact AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.inPatch_mk_iff i _ _ |
| 2140 | |
| 2141 | def chart (F : FiniteSectionFamily H Λ) (i : Fin (F.projectiveDimension + 1)) (p : V) : |
| 2142 | Fin (F.projectiveDimension + 1) → ℂ := fun j => F.coordinate j p / F.coordinate i p |
| 2143 | |
| 2144 | theorem projectiveMap_coordinates (F : FiniteSectionFamily H Λ) |
| 2145 | (i : Fin (F.projectiveDimension + 1)) (p : V) : |
| 2146 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (F.projectiveMap (QuotientAddGroup.mk p)) = F.chart i p := by |
| 2147 | rw [F.projectiveMap_lift] |
| 2148 | rfl |
| 2149 | |
| 2150 | theorem chart_contDiffAt (F : FiniteSectionFamily H Λ) |
| 2151 | (i : Fin (F.projectiveDimension + 1)) (p : V) (hi : F.coordinate i p ≠ 0) : |
| 2152 | ContDiffAt ℂ 1 (F.chart i) p := by |
| 2153 | apply contDiffAt_pi.mpr |
| 2154 | intro j |
| 2155 | exact (F.coordinate j).regular.contDiffAt.div (F.coordinate i).regular.contDiffAt hi |
| 2156 | |
| 2157 | theorem ratio_derivative_zero {n : ℕ} (s t : ThetaSection H Λ n) (p v : V) (hs : s p ≠ 0) |
| 2158 | (hD : fderiv ℂ (fun z => t z / s z) p v = 0) : |
| 2159 | s p * fderiv ℂ t p v = t p * fderiv ℂ s p v := by |
| 2160 | have he : ((fun z => t z / s z) * (s : V → ℂ)) =ᶠ[nhds p] (t : V → ℂ) := by |
| 2161 | filter_upwards [s.continuous.continuousAt.eventually_ne hs] with z hz |
| 2162 | exact div_mul_cancel₀ _ hz |
| 2163 | have hds : DifferentiableAt ℂ (fun z => t z / s z) p := |
| 2164 | (t.regular.contDiffAt.div s.regular.contDiffAt hs).differentiableAt (by norm_num) |
| 2165 | have he' := congrArg (fun L : V →L[ℂ] ℂ => L v) he.fderiv_eq |
| 2166 | rw [fderiv_mul hds (s.differentiable p)] at he' |
| 2167 | simp only [add_apply, smul_apply, smul_eq_mul, hD, mul_zero, add_zero] at he' |
| 2168 | rw [← he'] |
| 2169 | field_simp [hs] |
| 2170 | |
| 2171 | theorem chart_fderiv_component (F : FiniteSectionFamily H Λ) |
| 2172 | (i j : Fin (F.projectiveDimension + 1)) (p v : V) (hi : F.coordinate i p ≠ 0) : |
| 2173 | fderiv ℂ (fun z => F.coordinate j z / F.coordinate i z) p v = |
| 2174 | (fderiv ℂ (F.chart i) p v) j := by |
| 2175 | have hd : DifferentiableAt ℂ (F.chart i) p := (F.chart_contDiffAt i p hi).differentiableAt (by norm_num) |
| 2176 | have he := fderiv_apply hd j |
| 2177 | exact congrArg (fun L : V →L[ℂ] ℂ => L v) he |
| 2178 | |
| 2179 | theorem chart_fderiv_injective (F : FiniteSectionFamily H Λ) (p : V) |
| 2180 | (hF : ∀ v : V, v ≠ 0 → F.Detects p v) |
| 2181 | (i : Fin (F.projectiveDimension + 1)) (hi : F.coordinate i p ≠ 0) : |
| 2182 | Function.Injective (fderiv ℂ (F.chart i) p) := by |
| 2183 | have hker (v : V) (hv : fderiv ℂ (F.chart i) p v = 0) : v = 0 := by |
| 2184 | by_contra hv0 |
| 2185 | obtain ⟨s, hs, t, ht, _, hdet⟩ := hF v hv0 |
| 2186 | obtain ⟨j, hj⟩ := F.coordinate_surjective s hs |
| 2187 | obtain ⟨k, hk⟩ := F.coordinate_surjective t ht |
| 2188 | have hzero (a : Fin (F.projectiveDimension + 1)) : |
| 2189 | fderiv ℂ (fun z => F.coordinate a z / F.coordinate i z) p v = 0 := by |
| 2190 | rw [F.chart_fderiv_component i a p v hi, hv] |
| 2191 | rfl |
| 2192 | have hsj := ratio_derivative_zero (F.coordinate i) (F.coordinate j) p v hi (hzero j) |
| 2193 | have htk := ratio_derivative_zero (F.coordinate i) (F.coordinate k) p v hi (hzero k) |
| 2194 | rw [hj] at hsj |
| 2195 | rw [hk] at htk |
| 2196 | have he : F.coordinate i p * (s p * fderiv ℂ t p v - t p * fderiv ℂ s p v) = 0 := by |
| 2197 | linear_combination (s p) * htk - (t p) * hsj |
| 2198 | exact hdet (sub_eq_zero.mp ((mul_eq_zero.mp he).resolve_left hi)) |
| 2199 | intro u v huv |
| 2200 | apply sub_eq_zero.mp |
| 2201 | apply hker |
| 2202 | rw [map_sub, huv, sub_self] |
| 2203 | |
| 2204 | theorem projectiveMap_eq_of_not_separates (F : FiniteSectionFamily H Λ) (p q : V) : |
| 2205 | F.projectiveMap (QuotientAddGroup.mk p) = F.projectiveMap (QuotientAddGroup.mk q) ↔ |
| 2206 | ¬F.Separates p q := by |
| 2207 | rw [F.projectiveMap_lift, F.projectiveMap_lift] |
| 2208 | rw [FiniteSectionFamily.projectiveLift, FiniteSectionFamily.projectiveLift, AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveZeroLocus.projectivization_mk_eq_iff_minors_eq] |
| 2209 | constructor |
| 2210 | · intro h hsep |
| 2211 | obtain ⟨s, hs, t, ht, hdet⟩ := hsep |
| 2212 | obtain ⟨i, hi⟩ := F.coordinate_surjective s hs |
| 2213 | obtain ⟨j, hj⟩ := F.coordinate_surjective t ht |
| 2214 | have he := h i j |
| 2215 | change F.coordinate i p * F.coordinate j q = F.coordinate j p * F.coordinate i q at he |
| 2216 | rw [hi, hj] at he |
| 2217 | exact hdet (by simpa only [mul_comm] using he) |
| 2218 | · intro h i j |
| 2219 | by_contra he |
| 2220 | apply h |
| 2221 | refine ⟨F.coordinate i, (F.indexEquiv.symm i).property, |
| 2222 | F.coordinate j, (F.indexEquiv.symm j).property, ?_⟩ |
| 2223 | change F.coordinate i p * F.coordinate j q ≠ F.coordinate j p * F.coordinate i q at he |
| 2224 | simpa only [mul_comm] using he |
| 2225 | |
| 2226 | end FiniteSectionFamily |
| 2227 | |
| 2228 | section LocalInjectivity |
| 2229 | |
| 2230 | variable [FiniteDimensional ℂ V] |
| 2231 | |
| 2232 | theorem locally_injective_of_injective_fderiv {N : ℕ} (f : V → Fin N → ℂ) (p : V) |
| 2233 | (hc : ContDiffAt ℂ 1 f p) (hi : Function.Injective (fderiv ℂ f p)) : |
| 2234 | ∃ U : Set V, IsOpen U ∧ p ∈ U ∧ Set.InjOn f U := by |
| 2235 | let : CompleteSpace V := FiniteDimensional.complete ℂ V |
| 2236 | let L : V →L[ℂ] (Fin N → ℂ) := fderiv ℂ f p |
| 2237 | obtain ⟨g, hg⟩ := L.toLinearMap.exists_leftInverse_of_injective (LinearMap.ker_eq_bot.mpr hi) |
| 2238 | let G : (Fin N → ℂ) →L[ℂ] V := g.toContinuousLinearMap |
| 2239 | have hGL : G.comp L = ContinuousLinearMap.id ℂ V := by |
| 2240 | ext v |
| 2241 | exact congrArg (fun m : V →ₗ[ℂ] V => m v) hg |
| 2242 | have hs := G.hasStrictFDerivAt.comp p (hc.hasStrictFDerivAt (by norm_num)) |
| 2243 | change HasStrictFDerivAt (G ∘ f) (G.comp L) p at hs |
| 2244 | rw [hGL] at hs |
| 2245 | change HasStrictFDerivAt (G ∘ f) (ContinuousLinearEquiv.refl ℂ V : V →L[ℂ] V) p at hs |
| 2246 | let e := hs.toOpenPartialHomeomorph (G ∘ f) |
| 2247 | refine ⟨e.source, e.open_source, hs.mem_toOpenPartialHomeomorph_source, ?_⟩ |
| 2248 | intro x hx y hy hxy |
| 2249 | apply e.injOn hx hy |
| 2250 | change G (f x) = G (f y) |
| 2251 | rw [hxy] |
| 2252 | |
| 2253 | end LocalInjectivity |
| 2254 | |
| 2255 | namespace FiniteSectionFamily |
| 2256 | |
| 2257 | open OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 2258 | |
| 2259 | variable {H} {Λ : AddSubgroup V} [FiniteDimensional ℂ V] |
| 2260 | |
| 2261 | theorem projectiveMap_locally_injective (F : FiniteSectionFamily H Λ) |
| 2262 | (hF : ∀ p v : V, v ≠ 0 → F.Detects p v) (q : V ⧸ Λ) : |
| 2263 | ∃ U : Set (V ⧸ Λ), IsOpen U ∧ q ∈ U ∧ Set.InjOn F.projectiveMap U := by |
| 2264 | obtain ⟨p, rfl⟩ := QuotientAddGroup.mk_surjective q |
| 2265 | obtain ⟨s, hs, hsp⟩ := F.nonzero p |
| 2266 | obtain ⟨i, hi⟩ := F.coordinate_surjective s hs |
| 2267 | have hip : F.coordinate i p ≠ 0 := by rwa [hi] |
| 2268 | obtain ⟨W, hWo, hpW, hWi⟩ := locally_injective_of_injective_fderiv (F.chart i) p |
| 2269 | (F.chart_contDiffAt i p hip) (F.chart_fderiv_injective p (hF p) i hip) |
| 2270 | refine ⟨QuotientAddGroup.mk '' W, QuotientAddGroup.isOpenMap_coe _ hWo, |
| 2271 | ⟨p, hpW, rfl⟩, ?_⟩ |
| 2272 | intro x hx y hy hxy |
| 2273 | obtain ⟨a, ha, rfl⟩ := hx |
| 2274 | obtain ⟨b, hb, rfl⟩ := hy |
| 2275 | have hchart : F.chart i a = F.chart i b := by |
| 2276 | rw [← F.projectiveMap_coordinates i a, ← F.projectiveMap_coordinates i b, hxy] |
| 2277 | exact congrArg QuotientAddGroup.mk (hWi ha hb hchart) |
| 2278 | |
| 2279 | end FiniteSectionFamily |
| 2280 | |
| 2281 | section GlobalEmbedding |
| 2282 | |
| 2283 | variable [FiniteDimensional ℂ V] (Λ : AddSubgroup V) [DiscreteTopology Λ] |
| 2284 | [CompactSpace (V ⧸ Λ)] |
| 2285 | |
| 2286 | /-- Compactness combines local injectivity and pair separation into a single |
| 2287 | injective projective map whose affine differentials remain injective. -/ |
| 2288 | theorem exists_injective_immersive_family |
| 2289 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 2290 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 2291 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) : |
| 2292 | ∃ F : FiniteSectionFamily H Λ, Function.Injective F.projectiveMap ∧ |
| 2293 | ∀ p v : V, v ≠ 0 → F.Detects p v := by |
| 2294 | classical |
| 2295 | obtain ⟨F₀, hF₀⟩ := exists_family_detecting_all_tangents H Λ hsym hpos hint |
| 2296 | choose U hUo hUmem hUi using F₀.projectiveMap_locally_injective hF₀ |
| 2297 | let W : Set ((V ⧸ Λ) × (V ⧸ Λ)) := ⋃ q : V ⧸ Λ, U q ×ˢ U q |
| 2298 | have hWo : IsOpen W := isOpen_iUnion (fun q => (hUo q).prod (hUo q)) |
| 2299 | have hK : IsCompact Wᶜ := hWo.isClosed_compl.isCompact |
| 2300 | have hne (pq : (V ⧸ Λ) × (V ⧸ Λ)) (hpq : pq ∈ Wᶜ) : pq.1 ≠ pq.2 := by |
| 2301 | intro he |
| 2302 | apply hpq |
| 2303 | exact Set.mem_iUnion.mpr ⟨pq.1, hUmem pq.1, he ▸ hUmem pq.1⟩ |
| 2304 | let A (G : FiniteSectionFamily H Λ) : Set ((V ⧸ Λ) × (V ⧸ Λ)) := |
| 2305 | {pq | G.projectiveMap pq.1 ≠ G.projectiveMap pq.2} |
| 2306 | have hAo (G : FiniteSectionFamily H Λ) : IsOpen (A G) := |
| 2307 | isOpen_ne_fun (G.projectiveMap_continuous.comp continuous_fst) |
| 2308 | (G.projectiveMap_continuous.comp continuous_snd) |
| 2309 | have hcover : Wᶜ ⊆ ⋃ G : FiniteSectionFamily H Λ, A G := by |
| 2310 | intro pq hpq |
| 2311 | obtain ⟨p, hp⟩ := QuotientAddGroup.mk_surjective pq.1 |
| 2312 | obtain ⟨q, hq⟩ := QuotientAddGroup.mk_surjective pq.2 |
| 2313 | have hd : q - p ∉ Λ := by |
| 2314 | intro hd |
| 2315 | have he : (QuotientAddGroup.mk q : V ⧸ Λ) = QuotientAddGroup.mk p := |
| 2316 | QuotientAddGroup.eq_iff_sub_mem.mpr hd |
| 2317 | rw [hp, hq] at he |
| 2318 | exact hne pq hpq he.symm |
| 2319 | obtain ⟨G, hG⟩ := exists_family_separating_points H Λ hsym hpos hint p q hd |
| 2320 | apply Set.mem_iUnion.mpr |
| 2321 | refine ⟨G, ?_⟩ |
| 2322 | change G.projectiveMap pq.1 ≠ G.projectiveMap pq.2 |
| 2323 | rw [← hp, ← hq] |
| 2324 | exact fun he => (G.projectiveMap_eq_of_not_separates p q).mp he hG |
| 2325 | obtain ⟨S, hS⟩ := hK.elim_finite_subcover A hAo hcover |
| 2326 | obtain ⟨G, _, hGs⟩ := FiniteSectionFamily.exists_common_family S |
| 2327 | refine ⟨F₀.mul G, ?_, fun p v hv => F₀.detects_mul_left G p v (hF₀ p v hv)⟩ |
| 2328 | intro x y hxy |
| 2329 | obtain ⟨p, rfl⟩ := QuotientAddGroup.mk_surjective x |
| 2330 | obtain ⟨q, rfl⟩ := QuotientAddGroup.mk_surjective y |
| 2331 | have hFxy : F₀.projectiveMap (QuotientAddGroup.mk p) = F₀.projectiveMap (QuotientAddGroup.mk q) := by |
| 2332 | apply (F₀.projectiveMap_eq_of_not_separates p q).mpr |
| 2333 | intro hsep |
| 2334 | exact ((F₀.mul G).projectiveMap_eq_of_not_separates p q).mp hxy |
| 2335 | (F₀.separates_mul_left G p q hsep) |
| 2336 | by_cases hpq : (QuotientAddGroup.mk p, QuotientAddGroup.mk q) ∈ W |
| 2337 | · obtain ⟨a, hpa, hqa⟩ := Set.mem_iUnion.mp hpq |
| 2338 | exact hUi a hpa hqa hFxy |
| 2339 | · have hs := hS hpq |
| 2340 | obtain ⟨E, hES, hE⟩ := (show ∃ E ∈ S, |
| 2341 | E.projectiveMap (QuotientAddGroup.mk p) ≠ E.projectiveMap (QuotientAddGroup.mk q) from by |
| 2342 | simpa only [Set.mem_iUnion, Set.mem_ofPred_eq, exists_prop, A] using hs) |
| 2343 | have hsep : E.Separates p q := by |
| 2344 | by_contra hnot |
| 2345 | exact hE ((E.projectiveMap_eq_of_not_separates p q).mpr hnot) |
| 2346 | exact False.elim (((F₀.mul G).projectiveMap_eq_of_not_separates p q).mp hxy |
| 2347 | (F₀.separates_mul_right G p q (hGs E hES p q hsep))) |
| 2348 | |
| 2349 | /-- Positive integral Hermitian data give a closed holomorphic embedding with |
| 2350 | injective coordinate differentials, exactly as required on the left of RiemannProjectivity. -/ |
| 2351 | theorem projective_embedding_of_positive_integral_hermitian |
| 2352 | (hsym : ∀ u v : V, H v u = star (H u v)) |
| 2353 | (hpos : ∀ u : V, u ≠ 0 → 0 < (H u u).re) |
| 2354 | (hint : ∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) : |
| 2355 | ∃ (n : ℕ) (f : V ⧸ Λ → Projectivization ℂ (Fin (n + 1) → ℂ)), |
| 2356 | Topology.IsClosedEmbedding f ∧ ∀ p : V, ∃ i : Fin (n + 1), |
| 2357 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f (QuotientAddGroup.mk p)) ∧ |
| 2358 | DifferentiableAt ℂ (fun z : V => |
| 2359 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk z))) p ∧ |
| 2360 | Function.Injective (fderiv ℂ (fun z : V => |
| 2361 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk z))) p) := by |
| 2362 | obtain ⟨F, hFi, hFd⟩ := exists_injective_immersive_family H Λ hsym hpos hint |
| 2363 | refine ⟨F.projectiveDimension, F.projectiveMap, F.projectiveMap_continuous.isClosedEmbedding hFi, |
| 2364 | fun p => ?_⟩ |
| 2365 | obtain ⟨s, hs, hsp⟩ := F.nonzero p |
| 2366 | obtain ⟨i, hi⟩ := F.coordinate_surjective s hs |
| 2367 | have hip : F.coordinate i p ≠ 0 := by rwa [hi] |
| 2368 | refine ⟨i, (F.projectiveMap_inPatch i p).mpr hip, ?_, ?_⟩ |
| 2369 | · simp_rw [F.projectiveMap_coordinates] |
| 2370 | exact (F.chart_contDiffAt i p hip).differentiableAt (by norm_num) |
| 2371 | · simp_rw [F.projectiveMap_coordinates] |
| 2372 | exact F.chart_fderiv_injective p (hFd p) i hip |
| 2373 | |
| 2374 | end GlobalEmbedding |
| 2375 | |
| 2376 | section FubiniStudyAlgebra |
| 2377 | |
| 2378 | variable {ι : Type*} [Fintype ι] |
| 2379 | |
| 2380 | /-- The standard Hermitian Gram form of finitely many complex linear functionals. -/ |
| 2381 | def gramForm (A : V →ₗ[ℂ] (ι → ℂ)) : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ where |
| 2382 | toFun u := |
| 2383 | { toFun := fun v => ∑ i, star (A u i) * A v i |
| 2384 | map_add' := by intro v w; simp [map_add, mul_add, Finset.sum_add_distrib] |
| 2385 | map_smul' := by intro a v; simp [map_smul, Finset.mul_sum, mul_left_comm] } |
| 2386 | map_add' := by |
| 2387 | intro u v |
| 2388 | ext w |
| 2389 | simp [map_add, star_add, add_mul, Finset.sum_add_distrib] |
| 2390 | map_smul' := by |
| 2391 | intro a u |
| 2392 | ext v |
| 2393 | simp [map_smul, star_mul, Finset.mul_sum, mul_assoc, mul_left_comm] |
| 2394 | |
| 2395 | theorem gramForm_apply (A : V →ₗ[ℂ] (ι → ℂ)) (u v : V) : |
| 2396 | gramForm A u v = ∑ i, star (A u i) * A v i := rfl |
| 2397 | |
| 2398 | theorem gramForm_symm (A : V →ₗ[ℂ] (ι → ℂ)) (u v : V) : |
| 2399 | gramForm A v u = star (gramForm A u v) := by |
| 2400 | simp only [gramForm_apply, star_sum, star_mul, star_star, mul_comm] |
| 2401 | |
| 2402 | def coordinateNormSq (w : ι → ℂ) : ℝ := ∑ i, Complex.normSq (w i) |
| 2403 | |
| 2404 | theorem gramForm_self_re (A : V →ₗ[ℂ] (ι → ℂ)) (u : V) : |
| 2405 | (gramForm A u u).re = coordinateNormSq (A u) := by |
| 2406 | rw [gramForm_apply, Complex.re_sum, coordinateNormSq] |
| 2407 | apply Finset.sum_congr rfl |
| 2408 | intro i _ |
| 2409 | simp only [Complex.star_def, Complex.mul_re, Complex.conj_re, Complex.conj_im, Complex.normSq_apply] |
| 2410 | ring |
| 2411 | |
| 2412 | omit [NormedAddCommGroup V] [NormedSpace ℂ V] in |
| 2413 | theorem coordinateNormSq_pos (w : ι → ℂ) (hw : w ≠ 0) : 0 < coordinateNormSq w := by |
| 2414 | have hex : ∃ i, w i ≠ 0 := by |
| 2415 | by_contra! h |
| 2416 | exact hw (funext h) |
| 2417 | obtain ⟨i, hi⟩ := hex |
| 2418 | exact (Finset.sum_pos_iff_of_nonneg (fun j _ => Complex.normSq_nonneg (w j))).mpr |
| 2419 | ⟨i, Finset.mem_univ i, Complex.normSq_pos.mpr hi⟩ |
| 2420 | |
| 2421 | theorem gramForm_self_pos (A : V →ₗ[ℂ] (ι → ℂ)) (u : V) (hu : A u ≠ 0) : |
| 2422 | 0 < (gramForm A u u).re := by |
| 2423 | rw [gramForm_self_re] |
| 2424 | exact coordinateNormSq_pos (A u) hu |
| 2425 | |
| 2426 | /-- Exterior products remove the vertical direction of homogeneous coordinates. -/ |
| 2427 | def horizontalDifferential (w : ι → ℂ) (D : V →ₗ[ℂ] (ι → ℂ)) : V →ₗ[ℂ] (ι × ι → ℂ) where |
| 2428 | toFun u ij := w ij.1 * D u ij.2 - w ij.2 * D u ij.1 |
| 2429 | map_add' := by intro u v; ext ij; simp [map_add]; ring |
| 2430 | map_smul' := by intro a u; ext ij; simp [map_smul]; ring |
| 2431 | |
| 2432 | omit [Fintype ι] in |
| 2433 | theorem horizontalDifferential_apply (w : ι → ℂ) (D : V →ₗ[ℂ] (ι → ℂ)) (u : V) (i j : ι) : |
| 2434 | horizontalDifferential w D u (i, j) = w i * D u j - w j * D u i := rfl |
| 2435 | |
| 2436 | /-- The Fubini--Study Hermitian form normalized so its imaginary part has |
| 2437 | unit integral on a projective line. This is an algebraic pointwise definition. -/ |
| 2438 | def fubiniStudyForm (w : ι → ℂ) (D : V →ₗ[ℂ] (ι → ℂ)) : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ := |
| 2439 | ((1 / (2 * Real.pi * coordinateNormSq w ^ 2) : ℝ) : ℂ) • gramForm (horizontalDifferential w D) |
| 2440 | |
| 2441 | theorem fubiniStudyForm_apply (w : ι → ℂ) (D : V →ₗ[ℂ] (ι → ℂ)) (u v : V) : |
| 2442 | fubiniStudyForm w D u v = |
| 2443 | ((1 / (2 * Real.pi * coordinateNormSq w ^ 2) : ℝ) : ℂ) * |
| 2444 | gramForm (horizontalDifferential w D) u v := rfl |
| 2445 | |
| 2446 | theorem fubiniStudyForm_symm (w : ι → ℂ) (D : V →ₗ[ℂ] (ι → ℂ)) (u v : V) : |
| 2447 | fubiniStudyForm w D v u = star (fubiniStudyForm w D u v) := by |
| 2448 | simp only [fubiniStudyForm_apply, star_mul, Complex.star_def, Complex.conj_ofReal] |
| 2449 | rw [gramForm_symm (horizontalDifferential w D) u v] |
| 2450 | exact mul_comm _ _ |
| 2451 | |
| 2452 | theorem fubiniStudyForm_positive (w : ι → ℂ) (D : V →ₗ[ℂ] (ι → ℂ)) |
| 2453 | (hD : Function.Injective D) (i : ι) (hwi : w i ≠ 0) (hDi : ∀ u : V, D u i = 0) |
| 2454 | (u : V) (hu : u ≠ 0) : 0 < (fubiniStudyForm w D u u).re := by |
| 2455 | have hw : w ≠ 0 := by intro hw; exact hwi (congrFun hw i) |
| 2456 | have hDu : D u ≠ 0 := by |
| 2457 | intro h |
| 2458 | exact hu (hD (by simpa using h)) |
| 2459 | have hex : ∃ j, D u j ≠ 0 := by |
| 2460 | by_contra! h |
| 2461 | exact hDu (funext h) |
| 2462 | obtain ⟨j, hj⟩ := hex |
| 2463 | have hhor : horizontalDifferential w D u ≠ 0 := by |
| 2464 | intro h |
| 2465 | have h' := congrFun h (i, j) |
| 2466 | change w i * D u j - w j * D u i = 0 at h' |
| 2467 | rw [hDi, mul_zero, sub_zero] at h' |
| 2468 | exact mul_ne_zero hwi hj h' |
| 2469 | have hc : 0 < 1 / (2 * Real.pi * coordinateNormSq w ^ 2) := by |
| 2470 | have hn := coordinateNormSq_pos w hw |
| 2471 | positivity |
| 2472 | rw [fubiniStudyForm_apply] |
| 2473 | simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] |
| 2474 | exact mul_pos hc (gramForm_self_pos (horizontalDifferential w D) u hhor) |
| 2475 | |
| 2476 | omit [NormedAddCommGroup V] [NormedSpace ℂ V] in |
| 2477 | theorem coordinateNormSq_smul (a : ℂ) (w : ι → ℂ) : |
| 2478 | coordinateNormSq (a • w) = Complex.normSq a * coordinateNormSq w := by |
| 2479 | simp only [coordinateNormSq, Pi.smul_apply, smul_eq_mul, map_mul, Finset.mul_sum] |
| 2480 | |
| 2481 | theorem gramForm_smul_apply (a : ℂ) (A : V →ₗ[ℂ] (ι → ℂ)) (u v : V) : |
| 2482 | gramForm (a • A) u v = (Complex.normSq a : ℂ) * gramForm A u v := by |
| 2483 | simp only [gramForm_apply, LinearMap.smul_apply, Pi.smul_apply, smul_eq_mul, |
| 2484 | star_mul, Finset.mul_sum] |
| 2485 | apply Finset.sum_congr rfl |
| 2486 | intro i _ |
| 2487 | have ha : star a * a = (Complex.normSq a : ℂ) := by |
| 2488 | rw [mul_comm, Complex.star_def, Complex.mul_conj] |
| 2489 | calc |
| 2490 | _ = (star a * a) * (star (A u i) * A v i) := by ring |
| 2491 | _ = _ := by rw [ha] |
| 2492 | |
| 2493 | omit [Fintype ι] in |
| 2494 | theorem horizontalDifferential_gauge (a : ℂ) (w : ι → ℂ) |
| 2495 | (D : V →ₗ[ℂ] (ι → ℂ)) (b : V →ₗ[ℂ] ℂ) : |
| 2496 | horizontalDifferential (a • w) (a • D + b.smulRight w) = |
| 2497 | (a ^ 2) • horizontalDifferential w D := by |
| 2498 | ext u ij |
| 2499 | simp only [horizontalDifferential, LinearMap.coe_mk, AddHom.coe_mk, LinearMap.add_apply, |
| 2500 | LinearMap.smul_apply, LinearMap.smulRight_apply, Pi.add_apply, Pi.smul_apply, smul_eq_mul] |
| 2501 | ring |
| 2502 | |
| 2503 | /-- Multiplying a local lift by a nonzero scalar function leaves the pulled-back |
| 2504 | Hermitian form unchanged, including the vertical term in its derivative. -/ |
| 2505 | theorem fubiniStudyForm_gauge (a : ℂ) (ha : a ≠ 0) (w : ι → ℂ) (hw : w ≠ 0) |
| 2506 | (D : V →ₗ[ℂ] (ι → ℂ)) (b : V →ₗ[ℂ] ℂ) : |
| 2507 | fubiniStudyForm (a • w) (a • D + b.smulRight w) = fubiniStudyForm w D := by |
| 2508 | have hna : Complex.normSq a ≠ 0 := (Complex.normSq_pos.mpr ha).ne' |
| 2509 | have hnw : coordinateNormSq w ≠ 0 := (coordinateNormSq_pos w hw).ne' |
| 2510 | have he : (1 / (2 * Real.pi * (Complex.normSq a * coordinateNormSq w) ^ 2)) * |
| 2511 | Complex.normSq a ^ 2 = 1 / (2 * Real.pi * coordinateNormSq w ^ 2) := by |
| 2512 | field_simp [hna, hnw, Real.pi_ne_zero] |
| 2513 | ext u v |
| 2514 | rw [fubiniStudyForm_apply, horizontalDifferential_gauge, gramForm_smul_apply, |
| 2515 | coordinateNormSq_smul, map_pow, ← mul_assoc, ← Complex.ofReal_mul, he, fubiniStudyForm_apply] |
| 2516 | |
| 2517 | end FubiniStudyAlgebra |
| 2518 | |
| 2519 | section BerryAlgebra |
| 2520 | variable {ι : Type*} [Fintype ι] |
| 2521 | |
| 2522 | def coordinatePairing (a b : ι → ℂ) : ℂ := ∑ i, star (a i) * b i |
| 2523 | |
| 2524 | omit [NormedAddCommGroup V] [NormedSpace ℂ V] in |
| 2525 | theorem coordinatePairing_self (w : ι → ℂ) : |
| 2526 | coordinatePairing w w = (coordinateNormSq w : ℂ) := by |
| 2527 | simp only [coordinatePairing, coordinateNormSq, Complex.ofReal_sum] |
| 2528 | apply Finset.sum_congr rfl |
| 2529 | intro i _ |
| 2530 | rw [mul_comm, Complex.star_def, Complex.mul_conj] |
| 2531 | |
| 2532 | omit [NormedAddCommGroup V] [NormedSpace ℂ V] in |
| 2533 | theorem coordinatePairing_symm (a b : ι → ℂ) : |
| 2534 | coordinatePairing b a = star (coordinatePairing a b) := by |
| 2535 | simp only [coordinatePairing, star_sum, star_mul, star_star, mul_comm] |
| 2536 | |
| 2537 | theorem gram_horizontalDifferential (w : ι → ℂ) (D : V →ₗ[ℂ] (ι → ℂ)) (u v : V) : |
| 2538 | gramForm (horizontalDifferential w D) u v = |
| 2539 | 2 * ((coordinateNormSq w : ℂ) * coordinatePairing (D u) (D v) - |
| 2540 | coordinatePairing (D u) w * coordinatePairing w (D v)) := by |
| 2541 | rw [gramForm_apply, ← coordinatePairing_self] |
| 2542 | simp only [Fintype.sum_prod_type, horizontalDifferential_apply, star_sub, star_mul, |
| 2543 | coordinatePairing, Finset.sum_mul, Finset.mul_sum] |
| 2544 | have hterm (i j : ι) : |
| 2545 | (star (D u j) * star (w i) - star (D u i) * star (w j)) * |
| 2546 | (w i * D v j - w j * D v i) = |
| 2547 | (star (w i) * w i) * (star (D u j) * D v j) + |
| 2548 | (star (w j) * w j) * (star (D u i) * D v i) - |
| 2549 | (star (D u j) * w j) * (star (w i) * D v i) - |
| 2550 | (star (D u i) * w i) * (star (w j) * D v j) := by ring |
| 2551 | simp_rw [hterm, Finset.sum_sub_distrib, Finset.sum_add_distrib] |
| 2552 | rw [Finset.sum_comm (f := fun i j => (star (w j) * w j) * (star (D u i) * D v i)), |
| 2553 | Finset.sum_comm (f := fun i j => (star (D u j) * w j) * (star (w i) * D v i))] |
| 2554 | ring |
| 2555 | |
| 2556 | /-- The real connection one-form of the unit tautological lift, in the same |
| 2557 | normalization as `fubiniStudyForm`. -/ |
| 2558 | def berryConnection (w : ι → ℂ) (D : V →ₗ[ℂ] (ι → ℂ)) (u : V) : ℝ := |
| 2559 | (coordinatePairing w (D u)).im / (2 * Real.pi * coordinateNormSq w) |
| 2560 | |
| 2561 | omit [NormedAddCommGroup V] [NormedSpace ℂ V] in |
| 2562 | theorem coordinatePairing_gauge (a b : ℂ) (w d : ι → ℂ) : |
| 2563 | coordinatePairing (a • w) (a • d + b • w) = |
| 2564 | (Complex.normSq a : ℂ) * coordinatePairing w d + |
| 2565 | star a * b * (coordinateNormSq w : ℂ) := by |
| 2566 | rw [← coordinatePairing_self] |
| 2567 | simp only [coordinatePairing, Pi.smul_apply, Pi.add_apply, smul_eq_mul, |
| 2568 | star_mul, mul_add, Finset.sum_add_distrib, Finset.mul_sum] |
| 2569 | congr 1 |
| 2570 | · apply Finset.sum_congr rfl |
| 2571 | intro i _ |
| 2572 | have ha : star a * a = (Complex.normSq a : ℂ) := by |
| 2573 | rw [mul_comm, Complex.star_def, Complex.mul_conj] |
| 2574 | calc |
| 2575 | _ = (star a * a) * (star (w i) * d i) := by ring |
| 2576 | _ = _ := by rw [ha] |
| 2577 | · apply Finset.sum_congr rfl |
| 2578 | intro i _ |
| 2579 | ring |
| 2580 | |
| 2581 | theorem berryConnection_gauge (a : ℂ) (ha : a ≠ 0) (w : ι → ℂ) (hw : w ≠ 0) |
| 2582 | (D : V →ₗ[ℂ] (ι → ℂ)) (b : V →ₗ[ℂ] ℂ) (u : V) : |
| 2583 | berryConnection (a • w) (a • D + b.smulRight w) u = |
| 2584 | berryConnection w D u + (b u / a).im / (2 * Real.pi) := by |
| 2585 | have hna : Complex.normSq a ≠ 0 := (Complex.normSq_pos.mpr ha).ne' |
| 2586 | have hnw : coordinateNormSq w ≠ 0 := (coordinateNormSq_pos w hw).ne' |
| 2587 | have hdiv : star a * b u = (Complex.normSq a : ℂ) * (b u / a) := by |
| 2588 | have hc : star a * a = (Complex.normSq a : ℂ) := by |
| 2589 | rw [mul_comm, Complex.star_def, Complex.mul_conj] |
| 2590 | rw [← hc] |
| 2591 | field_simp |
| 2592 | simp only [berryConnection, LinearMap.add_apply, LinearMap.smul_apply, LinearMap.smulRight_apply] |
| 2593 | rw [coordinatePairing_gauge, coordinateNormSq_smul, hdiv] |
| 2594 | simp only [Complex.add_im, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, |
| 2595 | zero_mul, add_zero, mul_zero, zero_add] |
| 2596 | field_simp |
| 2597 | |
| 2598 | def berryDerivativeCandidate (w : ι → ℂ) (D : V →ₗ[ℂ] (ι → ℂ)) |
| 2599 | (B : V → V → ι → ℂ) (u v : V) : ℝ := |
| 2600 | (((coordinatePairing (D u) (D v) + coordinatePairing w (B u v)).im * coordinateNormSq w) - |
| 2601 | (coordinatePairing w (D v)).im * (2 * (coordinatePairing w (D u)).re)) / |
| 2602 | (2 * Real.pi * coordinateNormSq w ^ 2) |
| 2603 | |
| 2604 | /-- The symmetric second derivative cancels from the curvature of the connection. -/ |
| 2605 | theorem berry_curvature_algebra (w : ι → ℂ) (hw : w ≠ 0) (D : V →ₗ[ℂ] (ι → ℂ)) |
| 2606 | (B : V → V → ι → ℂ) (u v : V) (hB : B v u = B u v) : |
| 2607 | berryDerivativeCandidate w D B u v - berryDerivativeCandidate w D B v u = |
| 2608 | (fubiniStudyForm w D u v).im := by |
| 2609 | have hnw : coordinateNormSq w ≠ 0 := (coordinateNormSq_pos w hw).ne' |
| 2610 | rw [fubiniStudyForm_apply, gram_horizontalDifferential] |
| 2611 | simp only [berryDerivativeCandidate, hB] |
| 2612 | rw [coordinatePairing_symm (D u) (D v), coordinatePairing_symm w (D u)] |
| 2613 | have h2r : (2 : ℂ).re = 2 := rfl |
| 2614 | have h2i : (2 : ℂ).im = 0 := rfl |
| 2615 | simp only [Complex.mul_im, Complex.sub_im, Complex.add_im, Complex.ofReal_re, |
| 2616 | Complex.ofReal_im, Complex.star_def, Complex.conj_re, Complex.conj_im, |
| 2617 | h2r, h2i] |
| 2618 | field_simp |
| 2619 | ring |
| 2620 | |
| 2621 | end BerryAlgebra |
| 2622 | |
| 2623 | section BerryCalculus |
| 2624 | variable {ι : Type*} [Fintype ι] |
| 2625 | |
| 2626 | omit [NormedAddCommGroup V] [NormedSpace ℂ V] in |
| 2627 | theorem hasDerivAt_coordinatePairing {w d : ℝ → ι → ℂ} {w' d' : ι → ℂ} {t : ℝ} |
| 2628 | (hw : HasDerivAt w w' t) (hd : HasDerivAt d d' t) : |
| 2629 | HasDerivAt (fun r => coordinatePairing (w r) (d r)) |
| 2630 | (coordinatePairing w' (d t) + coordinatePairing (w t) d') t := by |
| 2631 | have hwi (i : ι) : HasDerivAt (fun r => w r i) (w' i) t := |
| 2632 | (ContinuousLinearMap.proj i : (ι → ℂ) →L[ℝ] ℂ).hasFDerivAt.comp_hasDerivAt t hw |
| 2633 | have hdi (i : ι) : HasDerivAt (fun r => d r i) (d' i) t := |
| 2634 | (ContinuousLinearMap.proj i : (ι → ℂ) →L[ℝ] ℂ).hasFDerivAt.comp_hasDerivAt t hd |
| 2635 | simpa only [coordinatePairing, Finset.sum_add_distrib, Pi.mul_apply] using |
| 2636 | (HasDerivAt.fun_sum (u := Finset.univ) (fun i _ => (hwi i).star.mul (hdi i))) |
| 2637 | |
| 2638 | omit [NormedAddCommGroup V] [NormedSpace ℂ V] in |
| 2639 | theorem hasDerivAt_coordinateNormSq {w : ℝ → ι → ℂ} {w' : ι → ℂ} {t : ℝ} |
| 2640 | (hw : HasDerivAt w w' t) : |
| 2641 | HasDerivAt (fun r => coordinateNormSq (w r)) (2 * (coordinatePairing (w t) w').re) t := by |
| 2642 | have h := Complex.reCLM.hasFDerivAt.comp_hasDerivAt t (hasDerivAt_coordinatePairing hw hw) |
| 2643 | have he : (coordinatePairing w' (w t) + coordinatePairing (w t) w').re = |
| 2644 | 2 * (coordinatePairing (w t) w').re := by |
| 2645 | rw [coordinatePairing_symm (w t) w'] |
| 2646 | simp only [Complex.add_re, Complex.star_def, Complex.conj_re] |
| 2647 | ring |
| 2648 | simpa only [Function.comp_def, Complex.reCLM_apply, coordinatePairing_self, Complex.ofReal_re, he] using h |
| 2649 | |
| 2650 | omit [NormedAddCommGroup V] [NormedSpace ℂ V] in |
| 2651 | theorem hasDerivAt_berry_path {w d : ℝ → ι → ℂ} {w' d' : ι → ℂ} {t : ℝ} |
| 2652 | (hw : HasDerivAt w w' t) (hd : HasDerivAt d d' t) (hwt : w t ≠ 0) : |
| 2653 | HasDerivAt (fun r => (coordinatePairing (w r) (d r)).im / |
| 2654 | (2 * Real.pi * coordinateNormSq (w r))) |
| 2655 | (((coordinatePairing w' (d t) + coordinatePairing (w t) d').im * coordinateNormSq (w t) - |
| 2656 | (coordinatePairing (w t) (d t)).im * (2 * (coordinatePairing (w t) w').re)) / |
| 2657 | (2 * Real.pi * coordinateNormSq (w t) ^ 2)) t := by |
| 2658 | have hnw : coordinateNormSq (w t) ≠ 0 := (coordinateNormSq_pos (w t) hwt).ne' |
| 2659 | have hnum : HasDerivAt (fun r => (coordinatePairing (w r) (d r)).im) |
| 2660 | (coordinatePairing w' (d t) + coordinatePairing (w t) d').im t := |
| 2661 | Complex.imCLM.hasFDerivAt.comp_hasDerivAt t (hasDerivAt_coordinatePairing hw hd) |
| 2662 | have hden := (hasDerivAt_coordinateNormSq hw).const_mul (2 * Real.pi) |
| 2663 | convert! hnum.div hden (mul_ne_zero (mul_ne_zero (by norm_num) Real.pi_ne_zero) hnw) using 1 |
| 2664 | field_simp |
| 2665 | |
| 2666 | variable [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] |
| 2667 | |
| 2668 | theorem berryConnection_hasDerivAt_line {f : V → ι → ℂ} {z : V} |
| 2669 | (hf : ContDiffAt ℂ 2 f z) (hz : f z ≠ 0) (u v : V) : |
| 2670 | HasDerivAt (fun t : ℝ => berryConnection (f (z + t • u)) |
| 2671 | (fderiv ℂ f (z + t • u)).toLinearMap v) |
| 2672 | (berryDerivativeCandidate (f z) (fderiv ℂ f z).toLinearMap |
| 2673 | (fun a b => fderiv ℂ (fderiv ℂ f) z a b) u v) 0 := by |
| 2674 | have hline : HasDerivAt (fun t : ℝ => z + t • u) u 0 := by |
| 2675 | simpa only [one_smul, id_eq] using (((hasDerivAt_id (0 : ℝ)).smul_const u).const_add z) |
| 2676 | have hfirst := ((hf.differentiableAt (by norm_num)).hasFDerivAt.restrictScalars ℝ) |
| 2677 | have hw : HasDerivAt (fun t : ℝ => f (z + t • u)) (fderiv ℂ f z u) 0 := by |
| 2678 | simpa only [Function.comp_def, ContinuousLinearMap.coe_restrictScalars'] using |
| 2679 | hfirst.comp_hasDerivAt_of_eq 0 hline (by simp) |
| 2680 | have hsecond := (((hf.fderiv_right (m := 1) (by norm_num)).differentiableAt |
| 2681 | (by norm_num)).hasFDerivAt.restrictScalars ℝ) |
| 2682 | have hD : HasDerivAt (fun t : ℝ => fderiv ℂ f (z + t • u)) |
| 2683 | (fderiv ℂ (fderiv ℂ f) z u) 0 := by |
| 2684 | simpa only [Function.comp_def, ContinuousLinearMap.coe_restrictScalars'] using |
| 2685 | hsecond.comp_hasDerivAt_of_eq 0 hline (by simp) |
| 2686 | have hd : HasDerivAt (fun t : ℝ => fderiv ℂ f (z + t • u) v) |
| 2687 | (fderiv ℂ (fderiv ℂ f) z u v) 0 := by |
| 2688 | exact ((ContinuousLinearMap.apply ℂ (ι → ℂ) v).restrictScalars ℝ).hasFDerivAt.comp_hasDerivAt 0 hD |
| 2689 | simpa only [zero_smul, add_zero, berryConnection, berryDerivativeCandidate, |
| 2690 | ContinuousLinearMap.coe_coe] using |
| 2691 | hasDerivAt_berry_path hw hd (by simpa only [zero_smul, add_zero] using hz) |
| 2692 | |
| 2693 | theorem berryConnection_curvature {f : V → ι → ℂ} {z : V} |
| 2694 | (hf : ContDiffAt ℂ 2 f z) (hz : f z ≠ 0) (u v : V) : |
| 2695 | deriv (fun t : ℝ => berryConnection (f (z + t • u)) |
| 2696 | (fderiv ℂ f (z + t • u)).toLinearMap v) 0 - |
| 2697 | deriv (fun t : ℝ => berryConnection (f (z + t • v)) |
| 2698 | (fderiv ℂ f (z + t • v)).toLinearMap u) 0 = |
| 2699 | (fubiniStudyForm (f z) (fderiv ℂ f z).toLinearMap u v).im := by |
| 2700 | rw [(berryConnection_hasDerivAt_line hf hz u v).deriv, |
| 2701 | (berryConnection_hasDerivAt_line hf hz v u).deriv] |
| 2702 | exact berry_curvature_algebra _ hz _ _ u v |
| 2703 | ((hf.isSymmSndFDerivAt (by norm_num)).eq v u) |
| 2704 | |
| 2705 | omit [NormedAddCommGroup V] [NormedSpace ℂ V] [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] in |
| 2706 | theorem coordinatePairing_continuousAt {X : Type*} [TopologicalSpace X] |
| 2707 | {w d : X → ι → ℂ} {x : X} (hw : ContinuousAt w x) (hd : ContinuousAt d x) : |
| 2708 | ContinuousAt (fun y => coordinatePairing (w y) (d y)) x := |
| 2709 | tendsto_finsetSum _ (fun i _ => ((continuousAt_pi.mp hw) i).star.mul ((continuousAt_pi.mp hd) i)) |
| 2710 | |
| 2711 | omit [NormedAddCommGroup V] [NormedSpace ℂ V] [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] in |
| 2712 | theorem coordinateNormSq_continuousAt {X : Type*} [TopologicalSpace X] |
| 2713 | {w : X → ι → ℂ} {x : X} (hw : ContinuousAt w x) : |
| 2714 | ContinuousAt (fun y => coordinateNormSq (w y)) x := |
| 2715 | tendsto_finsetSum _ (fun i _ => Complex.continuous_normSq.continuousAt.comp ((continuousAt_pi.mp hw) i)) |
| 2716 | |
| 2717 | omit [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] in |
| 2718 | theorem berryConnection_continuousAt {f : V → ι → ℂ} {z : V} |
| 2719 | (hf : ContDiffAt ℂ 1 f z) (hz : f z ≠ 0) (u : V) : |
| 2720 | ContinuousAt (fun y => berryConnection (f y) (fderiv ℂ f y).toLinearMap u) z := by |
| 2721 | have hD : ContinuousAt (fun y => fderiv ℂ f y u) z := |
| 2722 | (hf.continuousAt_fderiv (by norm_num)).clm_apply continuousAt_const |
| 2723 | have hn := coordinateNormSq_continuousAt hf.continuousAt |
| 2724 | have hnz : coordinateNormSq (f z) ≠ 0 := (coordinateNormSq_pos (f z) hz).ne' |
| 2725 | exact (Complex.continuous_im.continuousAt.comp |
| 2726 | (coordinatePairing_continuousAt hf.continuousAt hD)).div (continuousAt_const.mul hn) |
| 2727 | (mul_ne_zero (mul_ne_zero (by norm_num) Real.pi_ne_zero) hnz) |
| 2728 | |
| 2729 | omit [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] in |
| 2730 | theorem berryDerivativeCandidate_continuousAt {f : V → ι → ℂ} {z : V} |
| 2731 | (hf : ContDiffAt ℂ 2 f z) (hz : f z ≠ 0) (u v : V) : |
| 2732 | ContinuousAt (fun y => berryDerivativeCandidate (f y) (fderiv ℂ f y).toLinearMap |
| 2733 | (fun a b => fderiv ℂ (fderiv ℂ f) y a b) u v) z := by |
| 2734 | have hD : ContinuousAt (fderiv ℂ f) z := hf.continuousAt_fderiv (by norm_num) |
| 2735 | have hB : ContinuousAt (fderiv ℂ (fderiv ℂ f)) z := |
| 2736 | (hf.fderiv_right (m := 1) (by norm_num)).continuousAt_fderiv (by norm_num) |
| 2737 | have hDu : ContinuousAt (fun y => fderiv ℂ f y u) z := hD.clm_apply continuousAt_const |
| 2738 | have hDv : ContinuousAt (fun y => fderiv ℂ f y v) z := hD.clm_apply continuousAt_const |
| 2739 | have hBuv : ContinuousAt (fun y => fderiv ℂ (fderiv ℂ f) y u v) z := |
| 2740 | (hB.clm_apply continuousAt_const).clm_apply continuousAt_const |
| 2741 | have hn := coordinateNormSq_continuousAt hf.continuousAt |
| 2742 | have hnz : coordinateNormSq (f z) ≠ 0 := (coordinateNormSq_pos (f z) hz).ne' |
| 2743 | have hN := Complex.continuous_im.continuousAt.comp |
| 2744 | ((coordinatePairing_continuousAt hDu hDv).add |
| 2745 | (coordinatePairing_continuousAt hf.continuousAt hBuv)) |
| 2746 | have hV := Complex.continuous_im.continuousAt.comp |
| 2747 | (coordinatePairing_continuousAt hf.continuousAt hDv) |
| 2748 | have hU := Complex.continuous_re.continuousAt.comp |
| 2749 | (coordinatePairing_continuousAt hf.continuousAt hDu) |
| 2750 | exact ((hN.mul hn).sub (hV.mul (continuousAt_const.mul hU))).div |
| 2751 | (continuousAt_const.mul (hn.pow 2)) |
| 2752 | (mul_ne_zero (mul_ne_zero (by norm_num) Real.pi_ne_zero) (pow_ne_zero 2 hnz)) |
| 2753 | |
| 2754 | theorem berryConnection_hasDerivAt_affine {f : V → ι → ℂ} (z u v : V) (t : ℝ) |
| 2755 | (hf : ContDiffAt ℂ 2 f (z + t • u)) (hz : f (z + t • u) ≠ 0) : |
| 2756 | HasDerivAt (fun r : ℝ => berryConnection (f (z + r • u)) |
| 2757 | (fderiv ℂ f (z + r • u)).toLinearMap v) |
| 2758 | (berryDerivativeCandidate (f (z + t • u)) (fderiv ℂ f (z + t • u)).toLinearMap |
| 2759 | (fun a b => fderiv ℂ (fderiv ℂ f) (z + t • u) a b) u v) t := by |
| 2760 | have hline : HasDerivAt (fun r : ℝ => z + r • u) u t := by |
| 2761 | simpa only [one_smul, id_eq] using (((hasDerivAt_id t).smul_const u).const_add z) |
| 2762 | have hfirst := ((hf.differentiableAt (by norm_num)).hasFDerivAt.restrictScalars ℝ) |
| 2763 | have hw : HasDerivAt (fun r : ℝ => f (z + r • u)) (fderiv ℂ f (z + t • u) u) t := by |
| 2764 | simpa only [Function.comp_def, ContinuousLinearMap.coe_restrictScalars'] using |
| 2765 | hfirst.comp_hasDerivAt t hline |
| 2766 | have hsecond := (((hf.fderiv_right (m := 1) (by norm_num)).differentiableAt |
| 2767 | (by norm_num)).hasFDerivAt.restrictScalars ℝ) |
| 2768 | have hD : HasDerivAt (fun r : ℝ => fderiv ℂ f (z + r • u)) |
| 2769 | (fderiv ℂ (fderiv ℂ f) (z + t • u) u) t := by |
| 2770 | simpa only [Function.comp_def, ContinuousLinearMap.coe_restrictScalars'] using |
| 2771 | hsecond.comp_hasDerivAt t hline |
| 2772 | have hd : HasDerivAt (fun r : ℝ => fderiv ℂ f (z + r • u) v) |
| 2773 | (fderiv ℂ (fderiv ℂ f) (z + t • u) u v) t := |
| 2774 | ((ContinuousLinearMap.apply ℂ (ι → ℂ) v).restrictScalars ℝ).hasFDerivAt.comp_hasDerivAt t hD |
| 2775 | simpa only [berryConnection, berryDerivativeCandidate, ContinuousLinearMap.coe_coe] using |
| 2776 | hasDerivAt_berry_path hw hd hz |
| 2777 | |
| 2778 | end BerryCalculus |
| 2779 | |
| 2780 | section HolomorphicRegularity |
| 2781 | |
| 2782 | open _root_.Complex _root_.Metric Set Filter _root_.Topology |
| 2783 | variable {F : Type*} [NormedAddCommGroup F] [NormedSpace ℂ F] [CompleteSpace F] |
| 2784 | |
| 2785 | theorem holomorphic_line_cauchy {f : V → F} {s : Set V} (hs : IsOpen s) |
| 2786 | (hf : DifferentiableOn ℂ f s) (x v : V) {R : ℝ} (hR : 0 < R) |
| 2787 | (hsub : ∀ t : ℂ, ‖t‖ ≤ R → x + t • v ∈ s) : |
| 2788 | (∮ t in C(0, R), (1 / t ^ 2) • f (x + t • v)) = |
| 2789 | (2 * Real.pi * Complex.I : ℂ) • fderiv ℂ f x v := by |
| 2790 | have hline (t : ℂ) (ht : ‖t‖ ≤ R) : |
| 2791 | HasDerivAt (fun t : ℂ => f (x + t • v)) (fderiv ℂ f (x + t • v) v) t := by |
| 2792 | have hD := (hf.differentiableAt (hs.mem_nhds (hsub t ht))).hasFDerivAt |
| 2793 | simpa only [one_smul, Function.comp_def, id_eq] using |
| 2794 | hD.comp_hasDerivAt t (((hasDerivAt_id t).smul_const v).const_add x) |
| 2795 | have hc : DifferentiableOn ℂ (fun t : ℂ => f (x + t • v)) (closedBall 0 R) := by |
| 2796 | intro t ht |
| 2797 | exact (hline t (by simpa using ht)).differentiableAt.differentiableWithinAt |
| 2798 | have he := hc.deriv_eq_smul_circleIntegral hR |
| 2799 | have hd := (hline 0 (by simp [hR.le])).deriv |
| 2800 | simpa only [sub_zero, hd, zero_smul, add_zero] using he |
| 2801 | |
| 2802 | theorem holomorphic_continuous_fderiv_apply {f : V → F} {s : Set V} (hs : IsOpen s) |
| 2803 | (hf : DifferentiableOn ℂ f s) {x : V} (hx : x ∈ s) (v : V) : |
| 2804 | ContinuousAt (fun y => fderiv ℂ f y v) x := by |
| 2805 | by_cases hv : v = 0 |
| 2806 | · subst v |
| 2807 | simpa using (continuousAt_const : ContinuousAt (fun _ : V => (0 : F)) x) |
| 2808 | obtain ⟨e, he, hes⟩ := Metric.mem_nhds_iff.mp (hs.mem_nhds hx) |
| 2809 | let R : ℝ := e / (2 * ‖v‖) |
| 2810 | have hvn : 0 < ‖v‖ := norm_pos_iff.mpr hv |
| 2811 | have hR : 0 < R := div_pos he (mul_pos (by norm_num) hvn) |
| 2812 | have hRv : R * ‖v‖ = e / 2 := by dsimp [R]; field_simp |
| 2813 | let U := ball x (e / 2) |
| 2814 | have hU : U ∈ 𝓝 x := ball_mem_nhds x (half_pos he) |
| 2815 | have hsub (y : V) (hy : y ∈ U) (t : ℂ) (ht : ‖t‖ ≤ R) : y + t • v ∈ s := by |
| 2816 | apply hes |
| 2817 | rw [mem_ball, dist_eq_norm] |
| 2818 | calc |
| 2819 | ‖y + t • v - x‖ = ‖(y - x) + t • v‖ := by congr 1; abel |
| 2820 | _ ≤ ‖y - x‖ + ‖t • v‖ := norm_add_le _ _ |
| 2821 | _ < e / 2 + e / 2 := by |
| 2822 | have hyt : ‖y - x‖ < e / 2 := by simpa [U, dist_eq_norm] using hy |
| 2823 | have htv : ‖t • v‖ ≤ e / 2 := by rw [norm_smul, ← hRv]; gcongr |
| 2824 | linarith |
| 2825 | _ = e := by ring |
| 2826 | let g : U → ℝ → F := fun y t => |
| 2827 | (circleMap 0 R t * Complex.I) • ((1 / circleMap 0 R t ^ 2) • |
| 2828 | f (y.val + circleMap 0 R t • v)) |
| 2829 | have hgc : Continuous g.uncurry := by |
| 2830 | have hmap : Continuous (fun q : U × ℝ => q.1.val + circleMap 0 R q.2 • v) := |
| 2831 | (continuous_subtype_val.comp continuous_fst).add |
| 2832 | (((continuous_circleMap 0 R).comp continuous_snd).smul continuous_const) |
| 2833 | have hfc := hf.continuousOn.comp_continuous hmap (fun q => |
| 2834 | hsub q.1.val q.1.property (circleMap 0 R q.2) (by simp only [norm_circleMap_zero, abs_of_pos hR, le_refl])) |
| 2835 | have hinv : Continuous (fun q : U × ℝ => (1 : ℂ) / circleMap 0 R q.2 ^ 2) := |
| 2836 | continuous_const.div (((continuous_circleMap 0 R).comp continuous_snd).pow 2) |
| 2837 | (fun q => pow_ne_zero 2 (circleMap_ne_center (c := 0) hR.ne' (θ := q.2))) |
| 2838 | exact (((continuous_circleMap 0 R).comp continuous_snd).mul continuous_const).smul |
| 2839 | (hinv.smul hfc) |
| 2840 | have hc : Continuous (fun y : U => ∫ t in (0 : ℝ)..2 * Real.pi, g y t) := |
| 2841 | intervalIntegral.continuous_parametric_intervalIntegral_of_continuous' hgc _ _ |
| 2842 | have heq (y : U) : (∫ t in (0 : ℝ)..2 * Real.pi, g y t) = |
| 2843 | (2 * Real.pi * Complex.I : ℂ) • fderiv ℂ f y.val v := by |
| 2844 | simpa only [circleIntegral, deriv_circleMap, g] using |
| 2845 | holomorphic_line_cauchy hs hf y.val v hR (hsub y.val y.property) |
| 2846 | have hcc : Continuous (fun y : U => (2 * Real.pi * Complex.I : ℂ) • |
| 2847 | fderiv ℂ f y.val v) := hc.congr heq |
| 2848 | have hcf : Continuous (fun y : U => fderiv ℂ f y.val v) := by |
| 2849 | have h := hcc.const_smul (2 * Real.pi * Complex.I : ℂ)⁻¹ |
| 2850 | change Continuous (fun y : U => (2 * Real.pi * Complex.I : ℂ)⁻¹ • |
| 2851 | ((2 * Real.pi * Complex.I : ℂ) • fderiv ℂ f y.val v)) at h |
| 2852 | simpa only [inv_smul_smul₀ Complex.two_pi_I_ne_zero] using h |
| 2853 | exact (continuousOn_iff_continuous_domRestrict.mpr hcf x (mem_of_mem_nhds hU)).continuousAt hU |
| 2854 | |
| 2855 | theorem holomorphic_continuous_fderiv [FiniteDimensional ℂ V] |
| 2856 | {f : V → F} {s : Set V} (hs : IsOpen s) (hf : DifferentiableOn ℂ f s) : |
| 2857 | ContinuousOn (fderiv ℂ f) s := by |
| 2858 | intro x hx |
| 2859 | exact (continuousAt_clm_apply.mpr (holomorphic_continuous_fderiv_apply hs hf hx)).continuousWithinAt |
| 2860 | |
| 2861 | theorem holomorphic_contDiffOn_one [FiniteDimensional ℂ V] |
| 2862 | {f : V → F} {s : Set V} (hs : IsOpen s) (hf : DifferentiableOn ℂ f s) : |
| 2863 | ContDiffOn ℂ 1 f s := by |
| 2864 | rw [show (1 : WithTop ℕ∞) = 0 + 1 by rfl, contDiffOn_succ_iff_fderiv_of_isOpen hs] |
| 2865 | exact ⟨hf, by simp, contDiffOn_zero.mpr (holomorphic_continuous_fderiv hs hf)⟩ |
| 2866 | |
| 2867 | open _root_.MeasureTheory |
| 2868 | open scoped Interval |
| 2869 | |
| 2870 | omit [CompleteSpace F] in |
| 2871 | theorem hasFDerivAt_intervalIntegral_of_jointContinuous [FiniteDimensional ℂ V] |
| 2872 | {g : V → ℝ → F} {D : V → ℝ → V →L[ℂ] F} {s : Set V} (hs : IsOpen s) |
| 2873 | (hg : ContinuousOn g.uncurry (s ×ˢ Set.univ)) |
| 2874 | (hD : ContinuousOn D.uncurry (s ×ˢ Set.univ)) |
| 2875 | (hd : ∀ x ∈ s, ∀ t, HasFDerivAt (fun y => g y t) (D x t) x) |
| 2876 | {x : V} (hx : x ∈ s) (a b : ℝ) : |
| 2877 | HasFDerivAt (fun y => ∫ t in a..b, g y t) (∫ t in a..b, D x t) x := by |
| 2878 | let : ProperSpace V := FiniteDimensional.proper ℂ V |
| 2879 | obtain ⟨r, hr, hrs⟩ := Metric.nhds_basis_closedBall.mem_iff.mp (hs.mem_nhds hx) |
| 2880 | let K := closedBall x r ×ˢ Set.uIcc a b |
| 2881 | have hK : IsCompact K := (isCompact_closedBall x r).prod isCompact_uIcc |
| 2882 | have hKsub : K ⊆ s ×ˢ Set.univ := fun q hq => ⟨hrs hq.1, Set.mem_univ _⟩ |
| 2883 | obtain ⟨M, hM⟩ := hK.bddAbove_image (hD.mono hKsub).norm |
| 2884 | have hbound (y : V) (hy : y ∈ closedBall x r) (t : ℝ) (ht : t ∈ Set.uIcc a b) : |
| 2885 | ‖D y t‖ ≤ M := hM (Set.mem_image_of_mem |
| 2886 | (fun q : V × ℝ => ‖D q.1 q.2‖) (show (y, t) ∈ K from ⟨hy, ht⟩)) |
| 2887 | have hgc (y : V) (hy : y ∈ s) : Continuous (g y) := |
| 2888 | hg.comp_continuous (continuous_const.prodMk continuous_id) (fun _ => ⟨hy, Set.mem_univ _⟩) |
| 2889 | have hDc : Continuous (D x) := |
| 2890 | hD.comp_continuous (continuous_const.prodMk continuous_id) (fun _ => ⟨hx, Set.mem_univ _⟩) |
| 2891 | apply intervalIntegral.hasFDerivAt_integral_of_dominated_of_fderiv_le |
| 2892 | (s := closedBall x r) (bound := fun _ => M) (closedBall_mem_nhds x hr) |
| 2893 | · filter_upwards [hs.mem_nhds hx] with y hy |
| 2894 | exact (hgc y hy).aestronglyMeasurable |
| 2895 | · exact (hgc x hx).intervalIntegrable a b |
| 2896 | · exact hDc.aestronglyMeasurable |
| 2897 | · exact Filter.Eventually.of_forall (fun t ht y hy => hbound y hy t (Set.uIoc_subset_uIcc ht)) |
| 2898 | · exact intervalIntegrable_const |
| 2899 | · exact Filter.Eventually.of_forall (fun t _ y hy => hd y (hrs hy) t) |
| 2900 | |
| 2901 | theorem holomorphic_differentiable_fderiv_apply [FiniteDimensional ℂ V] |
| 2902 | {f : V → F} {s : Set V} (hs : IsOpen s) (hf : DifferentiableOn ℂ f s) |
| 2903 | {x : V} (hx : x ∈ s) (v : V) : DifferentiableAt ℂ (fun y => fderiv ℂ f y v) x := by |
| 2904 | by_cases hv : v = 0 |
| 2905 | · subst v |
| 2906 | simp |
| 2907 | obtain ⟨e, he, hes⟩ := Metric.mem_nhds_iff.mp (hs.mem_nhds hx) |
| 2908 | let R : ℝ := e / (2 * ‖v‖) |
| 2909 | have hvn : 0 < ‖v‖ := norm_pos_iff.mpr hv |
| 2910 | have hR : 0 < R := div_pos he (mul_pos (by norm_num) hvn) |
| 2911 | have hRv : R * ‖v‖ = e / 2 := by dsimp [R]; field_simp |
| 2912 | let U := ball x (e / 2) |
| 2913 | have hU : U ∈ 𝓝 x := ball_mem_nhds x (half_pos he) |
| 2914 | have hsub (y : V) (hy : y ∈ U) (t : ℂ) (ht : ‖t‖ ≤ R) : y + t • v ∈ s := by |
| 2915 | apply hes |
| 2916 | rw [mem_ball, dist_eq_norm] |
| 2917 | calc |
| 2918 | ‖y + t • v - x‖ = ‖(y - x) + t • v‖ := by congr 1; abel |
| 2919 | _ ≤ ‖y - x‖ + ‖t • v‖ := norm_add_le _ _ |
| 2920 | _ < e / 2 + e / 2 := by |
| 2921 | have hyt : ‖y - x‖ < e / 2 := by simpa [U, dist_eq_norm] using hy |
| 2922 | have htv : ‖t • v‖ ≤ e / 2 := by rw [norm_smul, ← hRv]; gcongr |
| 2923 | linarith |
| 2924 | _ = e := by ring |
| 2925 | let c : ℝ → ℂ := fun t => (circleMap 0 R t * Complex.I) * (1 / circleMap 0 R t ^ 2) |
| 2926 | have hc : Continuous c := |
| 2927 | ((continuous_circleMap 0 R).mul continuous_const).mul |
| 2928 | (continuous_const.div ((continuous_circleMap 0 R).pow 2) |
| 2929 | (fun t => pow_ne_zero 2 (circleMap_ne_center (c := 0) hR.ne' (θ := t)))) |
| 2930 | let g : V → ℝ → F := fun y t => c t • f (y + circleMap 0 R t • v) |
| 2931 | let D : V → ℝ → V →L[ℂ] F := fun y t => c t • fderiv ℂ f (y + circleMap 0 R t • v) |
| 2932 | have hmap : Continuous (fun q : V × ℝ => q.1 + circleMap 0 R q.2 • v) := |
| 2933 | continuous_fst.add (((continuous_circleMap 0 R).comp continuous_snd).smul continuous_const) |
| 2934 | have hmaps : Set.MapsTo (fun q : V × ℝ => q.1 + circleMap 0 R q.2 • v) |
| 2935 | (U ×ˢ Set.univ) s := fun q hq => hsub q.1 hq.1 _ |
| 2936 | (by simp only [norm_circleMap_zero, abs_of_pos hR, le_refl]) |
| 2937 | have hgc : ContinuousOn g.uncurry (U ×ˢ Set.univ) := |
| 2938 | (hc.comp continuous_snd).continuousOn.smul (hf.continuousOn.comp hmap.continuousOn hmaps) |
| 2939 | have hDc : ContinuousOn D.uncurry (U ×ˢ Set.univ) := |
| 2940 | (hc.comp continuous_snd).continuousOn.smul |
| 2941 | ((holomorphic_continuous_fderiv hs hf).comp hmap.continuousOn hmaps) |
| 2942 | have hd (y : V) (hy : y ∈ U) (t : ℝ) : HasFDerivAt (fun y => g y t) (D y t) y := by |
| 2943 | have hyt := hsub y hy (circleMap 0 R t) |
| 2944 | (by simp only [norm_circleMap_zero, abs_of_pos hR, le_refl]) |
| 2945 | have hyf := (hf.differentiableAt (hs.mem_nhds hyt)).hasFDerivAt |
| 2946 | exact ((hasFDerivAt_comp_add_right _).mpr hyf).const_smul (c t) |
| 2947 | have hint := hasFDerivAt_intervalIntegral_of_jointContinuous isOpen_ball hgc hDc hd |
| 2948 | (mem_of_mem_nhds hU) 0 (2 * Real.pi) |
| 2949 | have heq (y : V) (hy : y ∈ U) : (∫ t in (0 : ℝ)..2 * Real.pi, g y t) = |
| 2950 | (2 * Real.pi * Complex.I : ℂ) • fderiv ℂ f y v := by |
| 2951 | simpa only [circleIntegral, deriv_circleMap, g, c, mul_smul] using |
| 2952 | holomorphic_line_cauchy hs hf y v hR (hsub y hy) |
| 2953 | have heq' : (fun y => (2 * Real.pi * Complex.I : ℂ) • fderiv ℂ f y v) =ᶠ[𝓝 x] |
| 2954 | fun y => ∫ t in (0 : ℝ)..2 * Real.pi, g y t := by |
| 2955 | filter_upwards [hU] with y hy using (heq y hy).symm |
| 2956 | have hdiff := (hint.differentiableAt.congr_of_eventuallyEq heq').const_smul |
| 2957 | (2 * Real.pi * Complex.I : ℂ)⁻¹ |
| 2958 | change DifferentiableAt ℂ (fun y => (2 * Real.pi * Complex.I : ℂ)⁻¹ • |
| 2959 | ((2 * Real.pi * Complex.I : ℂ) • fderiv ℂ f y v)) x at hdiff |
| 2960 | simpa only [inv_smul_smul₀ Complex.two_pi_I_ne_zero] using hdiff |
| 2961 | |
| 2962 | theorem holomorphic_differentiable_fderiv [FiniteDimensional ℂ V] |
| 2963 | {f : V → F} {s : Set V} (hs : IsOpen s) (hf : DifferentiableOn ℂ f s) : |
| 2964 | DifferentiableOn ℂ (fderiv ℂ f) s := by |
| 2965 | let e : (V →L[ℂ] F) ≃L[ℂ] (Fin (Module.finrank ℂ V) → F) := |
| 2966 | ((ContinuousLinearEquiv.ofFinrankEq (Module.finrank_fin_fun ℂ).symm).arrowCongr |
| 2967 | (1 : F ≃L[ℂ] F)).trans (ContinuousLinearEquiv.piRing _) |
| 2968 | intro x hx |
| 2969 | apply DifferentiableAt.differentiableWithinAt |
| 2970 | apply e.comp_differentiableAt_iff.mp |
| 2971 | apply differentiableAt_pi.mpr |
| 2972 | intro i |
| 2973 | exact holomorphic_differentiable_fderiv_apply hs hf hx _ |
| 2974 | |
| 2975 | theorem holomorphic_contDiffOn_two [FiniteDimensional ℂ V] |
| 2976 | {f : V → F} {s : Set V} (hs : IsOpen s) (hf : DifferentiableOn ℂ f s) : |
| 2977 | ContDiffOn ℂ 2 f s := by |
| 2978 | rw [show (2 : WithTop ℕ∞) = 1 + 1 by rfl, contDiffOn_succ_iff_fderiv_of_isOpen hs] |
| 2979 | exact ⟨hf, by simp, holomorphic_contDiffOn_one hs (holomorphic_differentiable_fderiv hs hf)⟩ |
| 2980 | |
| 2981 | end HolomorphicRegularity |
| 2982 | |
| 2983 | section ProjectivePullback |
| 2984 | |
| 2985 | open OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 2986 | open Filter _root_.Topology |
| 2987 | |
| 2988 | variable {ι : Type*} [Fintype ι] |
| 2989 | variable (p : V → Projectivization ℂ (ι → ℂ)) |
| 2990 | |
| 2991 | def projectivePullbackChart (i : ι) (z : V) : ι → ℂ := AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (p z) |
| 2992 | |
| 2993 | variable (hp : Continuous p) |
| 2994 | |
| 2995 | include hp |
| 2996 | |
| 2997 | omit [NormedSpace ℂ V] [Fintype ι] in |
| 2998 | theorem projective_patch_eventually (i : ι) (z : V) (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z)) : |
| 2999 | ∀ᶠ w in 𝓝 z, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p w) := |
| 3000 | ((AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.isOpen_projectivePatch i).preimage hp).mem_nhds hi |
| 3001 | |
| 3002 | omit hp [NormedAddCommGroup V] [NormedSpace ℂ V] [Fintype ι] in |
| 3003 | theorem projective_chart_transition (i j : ι) (z : V) |
| 3004 | (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z)) (hj : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch j (p z)) : |
| 3005 | projectivePullbackChart p i z = |
| 3006 | projectivePullbackChart p i z j • projectivePullbackChart p j z := by |
| 3007 | have hn := (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.inPatch_iff_ratio_ne_zero i j (p z) hi).mp hj |
| 3008 | ext k |
| 3009 | change AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.ratio i k (p z) = AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.ratio i j (p z) * AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.ratio j k (p z) |
| 3010 | rw [AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.transition_formula i j k (p z) hi] |
| 3011 | field_simp |
| 3012 | |
| 3013 | theorem projective_chart_differentiableAt (z : V) |
| 3014 | (hz : ∃ j, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch j (p z) ∧ DifferentiableAt ℂ (projectivePullbackChart p j) z) |
| 3015 | (i : ι) (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z)) : |
| 3016 | DifferentiableAt ℂ (projectivePullbackChart p i) z := by |
| 3017 | obtain ⟨j, hj, hd⟩ := hz |
| 3018 | have hn : projectivePullbackChart p j z i ≠ 0 := |
| 3019 | (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.inPatch_iff_ratio_ne_zero j i (p z) hj).mp hi |
| 3020 | have hdi : DifferentiableAt ℂ (fun w => projectivePullbackChart p j w i) z := |
| 3021 | (differentiableAt_pi.mp hd) i |
| 3022 | have he : projectivePullbackChart p i =ᶠ[𝓝 z] |
| 3023 | fun w => (projectivePullbackChart p j w i)⁻¹ • projectivePullbackChart p j w := by |
| 3024 | filter_upwards [projective_patch_eventually p hp j z hj] with w hw |
| 3025 | ext k |
| 3026 | change AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.ratio i k (p w) = (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.ratio j i (p w))⁻¹ * AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.ratio j k (p w) |
| 3027 | rw [AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.transition_formula j i k (p w) hw, div_eq_mul_inv, mul_comm] |
| 3028 | exact ((hdi.inv hn).smul hd).congr_of_eventuallyEq he |
| 3029 | |
| 3030 | omit [Fintype ι] in |
| 3031 | theorem projective_chart_fderiv_self (i : ι) (z : V) (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z)) |
| 3032 | (hd : DifferentiableAt ℂ (projectivePullbackChart p i) z) (u : V) : |
| 3033 | fderiv ℂ (projectivePullbackChart p i) z u i = 0 := by |
| 3034 | have he : (fun w => projectivePullbackChart p i w i) =ᶠ[𝓝 z] fun _ => (1 : ℂ) := by |
| 3035 | filter_upwards [projective_patch_eventually p hp i z hi] with w hw |
| 3036 | exact hw |
| 3037 | have hf := he.fderiv_eq (𝕜 := ℂ) |
| 3038 | rw [fderiv_apply hd i] at hf |
| 3039 | simpa using congrArg (fun L : V →L[ℂ] ℂ => L u) hf |
| 3040 | |
| 3041 | theorem projective_chart_fderiv_transition (i j : ι) (z : V) |
| 3042 | (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z)) (hj : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch j (p z)) |
| 3043 | (hdi : DifferentiableAt ℂ (projectivePullbackChart p i) z) |
| 3044 | (hdj : DifferentiableAt ℂ (projectivePullbackChart p j) z) : |
| 3045 | fderiv ℂ (projectivePullbackChart p i) z = |
| 3046 | projectivePullbackChart p i z j • fderiv ℂ (projectivePullbackChart p j) z + |
| 3047 | (fderiv ℂ (fun w => projectivePullbackChart p i w j) z).smulRight |
| 3048 | (projectivePullbackChart p j z) := by |
| 3049 | have he : projectivePullbackChart p i =ᶠ[𝓝 z] |
| 3050 | fun w => projectivePullbackChart p i w j • projectivePullbackChart p j w := by |
| 3051 | filter_upwards [projective_patch_eventually p hp i z hi, |
| 3052 | projective_patch_eventually p hp j z hj] with w hwi hwj |
| 3053 | exact projective_chart_transition p i j w hwi hwj |
| 3054 | rw [he.fderiv_eq] |
| 3055 | exact fderiv_smul ((differentiableAt_pi.mp hdi) j) hdj |
| 3056 | |
| 3057 | theorem projective_fubiniStudy_chart_independent (i j : ι) (z : V) |
| 3058 | (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z)) (hj : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch j (p z)) |
| 3059 | (hdi : DifferentiableAt ℂ (projectivePullbackChart p i) z) |
| 3060 | (hdj : DifferentiableAt ℂ (projectivePullbackChart p j) z) : |
| 3061 | fubiniStudyForm (projectivePullbackChart p i z) |
| 3062 | (fderiv ℂ (projectivePullbackChart p i) z).toLinearMap = |
| 3063 | fubiniStudyForm (projectivePullbackChart p j z) |
| 3064 | (fderiv ℂ (projectivePullbackChart p j) z).toLinearMap := by |
| 3065 | let a := projectivePullbackChart p i z j |
| 3066 | let w := projectivePullbackChart p j z |
| 3067 | let D := (fderiv ℂ (projectivePullbackChart p j) z).toLinearMap |
| 3068 | let b := (fderiv ℂ (fun x => projectivePullbackChart p i x j) z).toLinearMap |
| 3069 | have hw : w ≠ 0 := AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.normalized_ne_zero j w hj |
| 3070 | have ha : a ≠ 0 := (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.inPatch_iff_ratio_ne_zero i j (p z) hi).mp hj |
| 3071 | have hD : (fderiv ℂ (projectivePullbackChart p i) z).toLinearMap = |
| 3072 | a • D + b.smulRight w := by |
| 3073 | exact congrArg ContinuousLinearMap.toLinearMap |
| 3074 | (projective_chart_fderiv_transition p hp i j z hi hj hdi hdj) |
| 3075 | calc |
| 3076 | _ = fubiniStudyForm (a • w) (a • D + b.smulRight w) := |
| 3077 | congrArg₂ fubiniStudyForm (projective_chart_transition p i j z hi hj) hD |
| 3078 | _ = _ := fubiniStudyForm_gauge a ha w hw D b |
| 3079 | |
| 3080 | omit hp in |
| 3081 | /-- The pullback of the normalized Fubini--Study form, computed in any available |
| 3082 | projective chart. Chart independence is proved for holomorphic maps below. -/ |
| 3083 | def projectiveFubiniStudy (z : V) : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ := |
| 3084 | let i := Classical.choose (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.exists_inPatch (p z)) |
| 3085 | fubiniStudyForm (projectivePullbackChart p i z) |
| 3086 | (fderiv ℂ (projectivePullbackChart p i) z).toLinearMap |
| 3087 | |
| 3088 | omit hp in |
| 3089 | theorem projectiveFubiniStudy_symm (z u v : V) : |
| 3090 | projectiveFubiniStudy p z v u = star (projectiveFubiniStudy p z u v) := |
| 3091 | fubiniStudyForm_symm _ _ u v |
| 3092 | |
| 3093 | theorem projectiveFubiniStudy_eq_chart (z : V) |
| 3094 | (hz : ∃ j, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch j (p z) ∧ DifferentiableAt ℂ (projectivePullbackChart p j) z) |
| 3095 | (i : ι) (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z)) : |
| 3096 | projectiveFubiniStudy p z = fubiniStudyForm (projectivePullbackChart p i z) |
| 3097 | (fderiv ℂ (projectivePullbackChart p i) z).toLinearMap := by |
| 3098 | let j := Classical.choose (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.exists_inPatch (p z)) |
| 3099 | have hj : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch j (p z) := Classical.choose_spec (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.exists_inPatch (p z)) |
| 3100 | exact projective_fubiniStudy_chart_independent p hp j i z hj hi |
| 3101 | (projective_chart_differentiableAt p hp z hz j hj) |
| 3102 | (projective_chart_differentiableAt p hp z hz i hi) |
| 3103 | |
| 3104 | theorem projectiveFubiniStudy_positive (z : V) |
| 3105 | (hz : ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z) ∧ DifferentiableAt ℂ (projectivePullbackChart p i) z ∧ |
| 3106 | Function.Injective (fderiv ℂ (projectivePullbackChart p i) z)) |
| 3107 | (u : V) (hu : u ≠ 0) : 0 < (projectiveFubiniStudy p z u u).re := by |
| 3108 | obtain ⟨i, hi, hd, hD⟩ := hz |
| 3109 | rw [projectiveFubiniStudy_eq_chart p hp z ⟨i, hi, hd⟩ i hi] |
| 3110 | have hwi : projectivePullbackChart p i z i = 1 := hi |
| 3111 | exact fubiniStudyForm_positive _ _ hD i (by rw [hwi]; exact one_ne_zero) |
| 3112 | (projective_chart_fderiv_self p hp i z hi hd) u hu |
| 3113 | |
| 3114 | theorem projectiveFubiniStudy_periodic (a : V) (ha : ∀ z, p (z + a) = p z) |
| 3115 | (hhol : ∀ z, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z) ∧ |
| 3116 | DifferentiableAt ℂ (projectivePullbackChart p i) z) (z : V) : |
| 3117 | projectiveFubiniStudy p (z + a) = projectiveFubiniStudy p z := by |
| 3118 | obtain ⟨i, hi, _⟩ := hhol z |
| 3119 | have hia : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p (z + a)) := by rwa [ha] |
| 3120 | rw [projectiveFubiniStudy_eq_chart p hp (z + a) (hhol (z + a)) i hia, |
| 3121 | projectiveFubiniStudy_eq_chart p hp z (hhol z) i hi] |
| 3122 | have he : (fun w => projectivePullbackChart p i (w + a)) = projectivePullbackChart p i := by |
| 3123 | funext w |
| 3124 | exact congrArg (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i) (ha w) |
| 3125 | have hD := congrArg (fun g : V → (ι → ℂ) => fderiv ℂ g z) he |
| 3126 | rw [fderiv_comp_add_right] at hD |
| 3127 | rw [hD] |
| 3128 | exact congrArg (fun w => fubiniStudyForm w |
| 3129 | (fderiv ℂ (projectivePullbackChart p i) z).toLinearMap) (congrFun he z) |
| 3130 | |
| 3131 | theorem projective_chart_contDiffOn_one [FiniteDimensional ℂ V] |
| 3132 | (hhol : ∀ z, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z) ∧ |
| 3133 | DifferentiableAt ℂ (projectivePullbackChart p i) z) (i : ι) : |
| 3134 | ContDiffOn ℂ 1 (projectivePullbackChart p i) {z | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z)} := by |
| 3135 | apply holomorphic_contDiffOn_one ((AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.isOpen_projectivePatch i).preimage hp) |
| 3136 | intro z hz |
| 3137 | exact (projective_chart_differentiableAt p hp z (hhol z) i hz).differentiableWithinAt |
| 3138 | |
| 3139 | theorem projective_chart_contDiffOn_two [FiniteDimensional ℂ V] |
| 3140 | (hhol : ∀ z, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z) ∧ |
| 3141 | DifferentiableAt ℂ (projectivePullbackChart p i) z) (i : ι) : |
| 3142 | ContDiffOn ℂ 2 (projectivePullbackChart p i) {z | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z)} := by |
| 3143 | apply holomorphic_contDiffOn_two ((AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.isOpen_projectivePatch i).preimage hp) |
| 3144 | intro z hz |
| 3145 | exact (projective_chart_differentiableAt p hp z (hhol z) i hz).differentiableWithinAt |
| 3146 | |
| 3147 | theorem projectiveFubiniStudy_continuous [FiniteDimensional ℂ V] |
| 3148 | (hhol : ∀ z, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z) ∧ |
| 3149 | DifferentiableAt ℂ (projectivePullbackChart p i) z) (u v : V) : |
| 3150 | Continuous (fun z => projectiveFubiniStudy p z u v) := by |
| 3151 | apply continuous_iff_continuousAt.mpr |
| 3152 | intro z |
| 3153 | obtain ⟨i, hi, _⟩ := hhol z |
| 3154 | let c := projectivePullbackChart p i |
| 3155 | have hpatch : IsOpen {w | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p w)} := |
| 3156 | (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.isOpen_projectivePatch i).preimage hp |
| 3157 | have hc : ContinuousAt c z := |
| 3158 | (projective_chart_differentiableAt p hp z (hhol z) i hi).continuousAt |
| 3159 | have hD : ContinuousAt (fderiv ℂ c) z := by |
| 3160 | apply (holomorphic_continuous_fderiv hpatch _ z hi).continuousAt (hpatch.mem_nhds hi) |
| 3161 | intro w hw |
| 3162 | exact (projective_chart_differentiableAt p hp w (hhol w) i hw).differentiableWithinAt |
| 3163 | have hnorm : ContinuousAt (fun w => coordinateNormSq (c w)) z := |
| 3164 | tendsto_finsetSum _ (fun j _ => Complex.continuous_normSq.continuousAt.comp |
| 3165 | ((continuousAt_pi.mp hc) j)) |
| 3166 | have hne : coordinateNormSq (c z) ≠ 0 := |
| 3167 | (coordinateNormSq_pos (c z) (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.normalized_ne_zero i (c z) hi)).ne' |
| 3168 | have hscale : ContinuousAt (fun w => |
| 3169 | ((1 / (2 * Real.pi * coordinateNormSq (c w) ^ 2) : ℝ) : ℂ)) z := |
| 3170 | Complex.continuous_ofReal.continuousAt.comp (continuousAt_const.div |
| 3171 | (continuousAt_const.mul (hnorm.pow 2)) (mul_ne_zero |
| 3172 | (mul_ne_zero (by norm_num) Real.pi_ne_zero) (pow_ne_zero 2 hne))) |
| 3173 | have hh (a : V) (j k : ι) : ContinuousAt (fun w => |
| 3174 | c w j * fderiv ℂ c w a k - c w k * fderiv ℂ c w a j) z := by |
| 3175 | exact (((continuousAt_pi.mp hc) j).mul ((continuousAt_pi.mp (hD.clm_apply continuousAt_const)) k)).sub |
| 3176 | (((continuousAt_pi.mp hc) k).mul ((continuousAt_pi.mp (hD.clm_apply continuousAt_const)) j)) |
| 3177 | have hfs : ContinuousAt (fun w => fubiniStudyForm (c w) (fderiv ℂ c w).toLinearMap u v) z := by |
| 3178 | apply hscale.mul |
| 3179 | apply tendsto_finsetSum |
| 3180 | intro jk _ |
| 3181 | exact (hh u jk.1 jk.2).star.mul (hh v jk.1 jk.2) |
| 3182 | apply hfs.congr_of_eventuallyEq |
| 3183 | filter_upwards [projective_patch_eventually p hp i z hi] with w hw |
| 3184 | exact congrArg (fun H : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ => H u v) |
| 3185 | (projectiveFubiniStudy_eq_chart p hp w (hhol w) i hw) |
| 3186 | |
| 3187 | omit hp in |
| 3188 | def projectiveBerryConnection (i : ι) (z u : V) : ℝ := |
| 3189 | berryConnection (projectivePullbackChart p i z) |
| 3190 | (fderiv ℂ (projectivePullbackChart p i) z).toLinearMap u |
| 3191 | |
| 3192 | theorem projectiveBerryConnection_change (i j : ι) (z u : V) |
| 3193 | (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z)) (hj : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch j (p z)) |
| 3194 | (hdi : DifferentiableAt ℂ (projectivePullbackChart p i) z) |
| 3195 | (hdj : DifferentiableAt ℂ (projectivePullbackChart p j) z) : |
| 3196 | projectiveBerryConnection p i z u = projectiveBerryConnection p j z u + |
| 3197 | (fderiv ℂ (fun w => projectivePullbackChart p i w j) z u / |
| 3198 | projectivePullbackChart p i z j).im / (2 * Real.pi) := by |
| 3199 | let a := projectivePullbackChart p i z j |
| 3200 | let w := projectivePullbackChart p j z |
| 3201 | let D := (fderiv ℂ (projectivePullbackChart p j) z).toLinearMap |
| 3202 | let b := (fderiv ℂ (fun x => projectivePullbackChart p i x j) z).toLinearMap |
| 3203 | have hw : w ≠ 0 := AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.normalized_ne_zero j w hj |
| 3204 | have ha : a ≠ 0 := (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.inPatch_iff_ratio_ne_zero i j (p z) hi).mp hj |
| 3205 | have hD : (fderiv ℂ (projectivePullbackChart p i) z).toLinearMap = |
| 3206 | a • D + b.smulRight w := by |
| 3207 | exact congrArg ContinuousLinearMap.toLinearMap |
| 3208 | (projective_chart_fderiv_transition p hp i j z hi hj hdi hdj) |
| 3209 | calc |
| 3210 | _ = berryConnection (a • w) (a • D + b.smulRight w) u := |
| 3211 | congrArg₂ (fun w D => berryConnection w D u) (projective_chart_transition p i j z hi hj) hD |
| 3212 | _ = _ := berryConnection_gauge a ha w hw D b u |
| 3213 | |
| 3214 | theorem projectiveBerryConnection_continuousAt [FiniteDimensional ℂ V] |
| 3215 | (hhol : ∀ z, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z) ∧ |
| 3216 | DifferentiableAt ℂ (projectivePullbackChart p i) z) (i : ι) (z u : V) |
| 3217 | (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z)) : ContinuousAt (fun w => projectiveBerryConnection p i w u) z := by |
| 3218 | have hpatch : {w | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p w)} ∈ 𝓝 z := projective_patch_eventually p hp i z hi |
| 3219 | exact berryConnection_continuousAt ((projective_chart_contDiffOn_one p hp hhol i).contDiffAt hpatch) |
| 3220 | (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.normalized_ne_zero i (projectivePullbackChart p i z) hi) u |
| 3221 | |
| 3222 | omit hp in |
| 3223 | theorem projectiveBerryConnection_periodic (a : V) (ha : ∀ z, p (z + a) = p z) (i : ι) (z u : V) : |
| 3224 | projectiveBerryConnection p i (z + a) u = projectiveBerryConnection p i z u := by |
| 3225 | have he : (fun w => projectivePullbackChart p i (w + a)) = projectivePullbackChart p i := by |
| 3226 | funext w |
| 3227 | exact congrArg (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i) (ha w) |
| 3228 | have hD := congrArg (fun g : V → (ι → ℂ) => fderiv ℂ g z) he |
| 3229 | rw [fderiv_comp_add_right] at hD |
| 3230 | unfold projectiveBerryConnection |
| 3231 | rw [hD, congrFun he z] |
| 3232 | |
| 3233 | end ProjectivePullback |
| 3234 | |
| 3235 | section TorusPullback |
| 3236 | |
| 3237 | open OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 3238 | |
| 3239 | variable (Λ : AddSubgroup V) {ι : Type*} [Fintype ι] |
| 3240 | variable (f : V ⧸ Λ → Projectivization ℂ (ι → ℂ)) |
| 3241 | |
| 3242 | def torusFubiniStudy (q : V ⧸ Λ) : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ := |
| 3243 | projectiveFubiniStudy (fun z => f (QuotientAddGroup.mk z)) (Quotient.out q) |
| 3244 | |
| 3245 | variable (hf : Continuous f) |
| 3246 | (hhol : ∀ z : V, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f (QuotientAddGroup.mk z)) ∧ |
| 3247 | DifferentiableAt ℂ (fun w : V => AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk w))) z) |
| 3248 | |
| 3249 | include hf hhol |
| 3250 | |
| 3251 | theorem torusFubiniStudy_lift (z : V) : |
| 3252 | torusFubiniStudy Λ f (QuotientAddGroup.mk z) = |
| 3253 | projectiveFubiniStudy (fun w => f (QuotientAddGroup.mk w)) z := by |
| 3254 | let a := Quotient.out (QuotientAddGroup.mk z : V ⧸ Λ) - z |
| 3255 | have ha : a ∈ Λ := QuotientAddGroup.eq_iff_sub_mem.mp (Quotient.out_eq _) |
| 3256 | have hper (w : V) : f (QuotientAddGroup.mk (w + a)) = f (QuotientAddGroup.mk w) := by |
| 3257 | apply congrArg f |
| 3258 | apply QuotientAddGroup.eq_iff_sub_mem.mpr |
| 3259 | simpa only [add_sub_cancel_left] using ha |
| 3260 | have he : z + a = Quotient.out (QuotientAddGroup.mk z : V ⧸ Λ) := by dsimp [a]; abel |
| 3261 | simpa only [he, torusFubiniStudy, Function.comp_def] using |
| 3262 | projectiveFubiniStudy_periodic _ (hf.comp QuotientAddGroup.continuous_mk) a hper hhol z |
| 3263 | |
| 3264 | omit hf hhol in |
| 3265 | theorem torusFubiniStudy_symm (q : V ⧸ Λ) (u v : V) : |
| 3266 | torusFubiniStudy Λ f q v u = star (torusFubiniStudy Λ f q u v) := |
| 3267 | projectiveFubiniStudy_symm _ _ u v |
| 3268 | |
| 3269 | omit hhol in |
| 3270 | theorem torusFubiniStudy_positive |
| 3271 | (himm : ∀ z : V, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f (QuotientAddGroup.mk z)) ∧ |
| 3272 | DifferentiableAt ℂ (fun w : V => AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk w))) z ∧ |
| 3273 | Function.Injective (fderiv ℂ (fun w : V => AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk w))) z)) |
| 3274 | (q : V ⧸ Λ) (u : V) (hu : u ≠ 0) : 0 < (torusFubiniStudy Λ f q u u).re := |
| 3275 | projectiveFubiniStudy_positive _ (hf.comp QuotientAddGroup.continuous_mk) |
| 3276 | (Quotient.out q) (himm (Quotient.out q)) u hu |
| 3277 | |
| 3278 | theorem torusFubiniStudy_continuous [FiniteDimensional ℂ V] (u v : V) : |
| 3279 | Continuous (fun q => torusFubiniStudy Λ f q u v) := by |
| 3280 | apply (QuotientAddGroup.isQuotientMap_mk Λ).continuous_iff.mpr |
| 3281 | have hc := projectiveFubiniStudy_continuous _ (hf.comp QuotientAddGroup.continuous_mk) hhol u v |
| 3282 | convert! hc using 1 |
| 3283 | funext z |
| 3284 | exact congrArg (fun H : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ => H u v) (torusFubiniStudy_lift Λ f hf hhol z) |
| 3285 | |
| 3286 | end TorusPullback |
| 3287 | |
| 3288 | section HermitianAveraging |
| 3289 | |
| 3290 | open _root_.MeasureTheory |
| 3291 | variable {T : Type*} [MeasurableSpace T] |
| 3292 | variable (μ : Measure T) (K : T → V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ) |
| 3293 | (hK : ∀ u v, Integrable (fun q => K q u v) μ) |
| 3294 | |
| 3295 | /-- Averaging a family of Hermitian forms, using its scalar coefficients. -/ |
| 3296 | def averageHermitian : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ where |
| 3297 | toFun u := |
| 3298 | { toFun v := ∫ q, K q u v ∂μ |
| 3299 | map_add' := by |
| 3300 | intro v w |
| 3301 | simp only [map_add] |
| 3302 | exact integral_add (hK u v) (hK u w) |
| 3303 | map_smul' := by |
| 3304 | intro a v |
| 3305 | simp only [map_smul, RingHom.id_apply, smul_eq_mul] |
| 3306 | exact integral_const_mul a _ } |
| 3307 | map_add' := by |
| 3308 | intro u v |
| 3309 | ext w |
| 3310 | simp only [map_add, LinearMap.add_apply] |
| 3311 | exact integral_add (hK u w) (hK v w) |
| 3312 | map_smul' := by |
| 3313 | intro a u |
| 3314 | ext v |
| 3315 | change (∫ q, K q (a • u) v ∂μ) = star a * ∫ q, K q u v ∂μ |
| 3316 | have he (q : T) : K q (a • u) v = star a * K q u v := by simp |
| 3317 | simp_rw [he] |
| 3318 | exact integral_const_mul (star a) (fun q => K q u v) |
| 3319 | |
| 3320 | theorem averageHermitian_apply (u v : V) : |
| 3321 | averageHermitian μ K hK u v = ∫ q, K q u v ∂μ := rfl |
| 3322 | |
| 3323 | theorem averageHermitian_symm (hsym : ∀ q u v, K q v u = star (K q u v)) (u v : V) : |
| 3324 | averageHermitian μ K hK v u = star (averageHermitian μ K hK u v) := by |
| 3325 | calc |
| 3326 | _ = ∫ q, star (K q u v) ∂μ := integral_congr_ae |
| 3327 | (Filter.Eventually.of_forall (fun q => hsym q u v)) |
| 3328 | _ = _ := integral_conj |
| 3329 | |
| 3330 | theorem averageHermitian_positive [IsProbabilityMeasure μ] |
| 3331 | (hpos : ∀ q u, u ≠ 0 → 0 < (K q u u).re) (u : V) (hu : u ≠ 0) : |
| 3332 | 0 < (averageHermitian μ K hK u u).re := by |
| 3333 | have hre : (∫ q, K q u u ∂μ).re = ∫ q, (K q u u).re ∂μ := (integral_re (hK u u)).symm |
| 3334 | rw [averageHermitian_apply, hre] |
| 3335 | have hr : Integrable (fun q => (K q u u).re) μ := (hK u u).re |
| 3336 | rw [integral_pos_iff_support_of_nonneg (fun q => (hpos q u hu).le) hr] |
| 3337 | have hs : Function.support (fun q => (K q u u).re) = Set.univ := by |
| 3338 | ext q |
| 3339 | simp only [Function.mem_support, Set.mem_univ, iff_true] |
| 3340 | exact (hpos q u hu).ne' |
| 3341 | rw [hs, measure_univ] |
| 3342 | exact zero_lt_one |
| 3343 | |
| 3344 | end HermitianAveraging |
| 3345 | |
| 3346 | open _root_.MeasureTheory _root_.TopologicalSpace OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 3347 | |
| 3348 | def normalizedAddHaar (T : Type*) [AddGroup T] [TopologicalSpace T] |
| 3349 | [IsTopologicalAddGroup T] [MeasurableSpace T] [BorelSpace T] [CompactSpace T] : Measure T := |
| 3350 | Measure.addHaarMeasure (⟨⟨Set.univ, isCompact_univ⟩, by simp⟩ : PositiveCompacts T) |
| 3351 | |
| 3352 | instance normalizedAddHaar_probability (T : Type*) [AddGroup T] [TopologicalSpace T] |
| 3353 | [IsTopologicalAddGroup T] [MeasurableSpace T] [BorelSpace T] [CompactSpace T] : |
| 3354 | IsProbabilityMeasure (normalizedAddHaar T) := ⟨Measure.addHaarMeasure_self⟩ |
| 3355 | |
| 3356 | instance normalizedAddHaar_invariant (T : Type*) [AddGroup T] [TopologicalSpace T] |
| 3357 | [IsTopologicalAddGroup T] [MeasurableSpace T] [BorelSpace T] [CompactSpace T] : |
| 3358 | (normalizedAddHaar T).IsAddLeftInvariant := by unfold normalizedAddHaar; infer_instance |
| 3359 | |
| 3360 | variable [FiniteDimensional ℂ V] (Λ : AddSubgroup V) [CompactSpace (V ⧸ Λ)] |
| 3361 | [MeasurableSpace (V ⧸ Λ)] [BorelSpace (V ⧸ Λ)] {ι : Type*} [Fintype ι] |
| 3362 | (f : V ⧸ Λ → Projectivization ℂ (ι → ℂ)) (hf : Continuous f) |
| 3363 | (hhol : ∀ z : V, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f (QuotientAddGroup.mk z)) ∧ |
| 3364 | DifferentiableAt ℂ (fun w : V => AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk w))) z) |
| 3365 | |
| 3366 | include hf hhol in |
| 3367 | theorem torusFubiniStudy_integrable (u v : V) : |
| 3368 | Integrable (fun q => torusFubiniStudy Λ f q u v) (normalizedAddHaar (V ⧸ Λ)) := |
| 3369 | (torusFubiniStudy_continuous Λ f hf hhol u v).integrable_of_hasCompactSupport |
| 3370 | (isClosed_tsupport _).isCompact |
| 3371 | |
| 3372 | /-- The constant Hermitian form obtained by averaging projective curvature over |
| 3373 | the torus with its normalized translation-invariant measure. -/ |
| 3374 | def averagedProjectiveForm : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ := |
| 3375 | averageHermitian (normalizedAddHaar (V ⧸ Λ)) (torusFubiniStudy Λ f) |
| 3376 | (torusFubiniStudy_integrable Λ f hf hhol) |
| 3377 | |
| 3378 | theorem averagedProjectiveForm_apply (u v : V) : |
| 3379 | averagedProjectiveForm Λ f hf hhol u v = |
| 3380 | ∫ q, torusFubiniStudy Λ f q u v ∂ normalizedAddHaar (V ⧸ Λ) := rfl |
| 3381 | |
| 3382 | theorem averagedProjectiveForm_symm (u v : V) : |
| 3383 | averagedProjectiveForm Λ f hf hhol v u = star (averagedProjectiveForm Λ f hf hhol u v) := |
| 3384 | averageHermitian_symm _ _ _ (torusFubiniStudy_symm Λ f) u v |
| 3385 | |
| 3386 | theorem averagedProjectiveForm_positive |
| 3387 | (himm : ∀ z : V, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f (QuotientAddGroup.mk z)) ∧ |
| 3388 | DifferentiableAt ℂ (fun w : V => AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk w))) z ∧ |
| 3389 | Function.Injective (fderiv ℂ (fun w : V => AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk w))) z)) |
| 3390 | (u : V) (hu : u ≠ 0) : 0 < (averagedProjectiveForm Λ f hf hhol u u).re := |
| 3391 | averageHermitian_positive _ _ _ (torusFubiniStudy_positive Λ f hf himm) u hu |
| 3392 | |
| 3393 | theorem averagedProjectiveForm_translate (a : V ⧸ Λ) (u v : V) : |
| 3394 | (∫ q, torusFubiniStudy Λ f (a + q) u v ∂ normalizedAddHaar (V ⧸ Λ)) = |
| 3395 | averagedProjectiveForm Λ f hf hhol u v := by |
| 3396 | rw [averagedProjectiveForm_apply] |
| 3397 | exact integral_add_left_eq_self (μ := normalizedAddHaar (V ⧸ Λ)) |
| 3398 | (fun q => torusFubiniStudy Λ f q u v) a |
| 3399 | |
| 3400 | end |
| 3401 | |
| 3402 | section |
| 3403 | |
| 3404 | open _root_.MeasureTheory Set Filter _root_.Topology |
| 3405 | |
| 3406 | theorem exp_integral_logarithmicDerivative {g g' : ℝ → ℂ} {a b : ℝ} (hab : a ≤ b) |
| 3407 | (hg : ContinuousOn g (Icc a b)) (hg' : ContinuousOn g' (Icc a b)) |
| 3408 | (hd : ∀ t ∈ Ioo a b, HasDerivAt g (g' t) t) (hne : ∀ t ∈ Icc a b, g t ≠ 0) : |
| 3409 | Complex.exp (∫ t in a..b, g' t / g t) = g b / g a := by |
| 3410 | let h : ℝ → ℂ := fun t => g' t / g t |
| 3411 | have hc : ContinuousOn h (Icc a b) := hg'.div hg hne |
| 3412 | have hi : IntervalIntegrable h volume a b := hc.intervalIntegrable_of_Icc hab |
| 3413 | let F : ℝ → ℂ := fun t => ∫ r in a..t, h r |
| 3414 | have hFc : ContinuousOn F (Icc a b) := by |
| 3415 | simpa only [uIcc_of_le hab] using intervalIntegral.continuousOn_primitive_interval' hi |
| 3416 | (left_mem_uIcc : a ∈ uIcc a b) |
| 3417 | have hFd (t : ℝ) (ht : t ∈ Ioo a b) : HasDerivAt F (h t) t := by |
| 3418 | have hsub : uIcc a t ⊆ uIcc a b := by |
| 3419 | rw [uIcc_of_le ht.1.le, uIcc_of_le hab] |
| 3420 | exact Icc_subset_Icc le_rfl ht.2.le |
| 3421 | exact intervalIntegral.integral_hasDerivAt_right (hi.mono_set hsub) |
| 3422 | ⟨Icc a b, Icc_mem_nhds ht.1 ht.2, hc.aestronglyMeasurable measurableSet_Icc⟩ |
| 3423 | ((hc t ⟨ht.1.le, ht.2.le⟩).continuousAt (Icc_mem_nhds ht.1 ht.2)) |
| 3424 | let k : ℝ → ℂ := fun t => Complex.exp (-F t) * g t |
| 3425 | have hkc : ContinuousOn k (Icc a b) := |
| 3426 | (Complex.continuous_exp.comp_continuousOn hFc.neg).mul hg |
| 3427 | have hkd (t : ℝ) (ht : t ∈ Ioo a b) : HasDerivAt k (0 : ℂ) t := by |
| 3428 | have hn := hne t ⟨ht.1.le, ht.2.le⟩ |
| 3429 | have he : (Complex.exp (-F t) * -(h t)) * g t + Complex.exp (-F t) * g' t = 0 := by |
| 3430 | dsimp [h] |
| 3431 | field_simp |
| 3432 | ring |
| 3433 | convert! ((hFd t ht).neg.cexp.mul (hd t ht)) using 1 |
| 3434 | exact he.symm |
| 3435 | have hk := intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le hab hkc hkd |
| 3436 | (intervalIntegrable_const : IntervalIntegrable (fun _ : ℝ => (0 : ℂ)) volume a b) |
| 3437 | have hka : k a = g a := by simp [k, F] |
| 3438 | have hkb : Complex.exp (-F b) * g b = g a := by |
| 3439 | simpa only [intervalIntegral.integral_zero, hka, sub_eq_zero, k] using hk.symm |
| 3440 | have hgb : g b = Complex.exp (F b) * g a := by |
| 3441 | have he := congrArg (fun z : ℂ => Complex.exp (F b) * z) hkb |
| 3442 | simpa only [← mul_assoc, ← Complex.exp_add, add_neg_cancel, Complex.exp_zero, one_mul] using he |
| 3443 | change Complex.exp (F b) = g b / g a |
| 3444 | rw [hgb, mul_div_cancel_right₀ _ (hne a ⟨le_rfl, hab⟩)] |
| 3445 | |
| 3446 | def complexPhase (z : ℂ) : ℂ := z / (‖z‖ : ℂ) |
| 3447 | |
| 3448 | theorem complexPhase_exp (z : ℂ) : complexPhase (Complex.exp z) = Complex.exp (z.im * Complex.I) := by |
| 3449 | rw [complexPhase, Complex.norm_exp] |
| 3450 | have he : Complex.exp z = Complex.exp (z.re : ℂ) * Complex.exp (z.im * Complex.I) := by |
| 3451 | rw [← Complex.exp_add, Complex.re_add_im] |
| 3452 | rw [he, ← Complex.ofReal_exp] |
| 3453 | exact mul_div_cancel_left₀ _ (by exact_mod_cast (Real.exp_pos z.re).ne') |
| 3454 | |
| 3455 | theorem complexPhase_div (a b : ℂ) : complexPhase (a / b) = complexPhase a / complexPhase b := by |
| 3456 | simp only [complexPhase, norm_div, Complex.ofReal_div] |
| 3457 | ring |
| 3458 | |
| 3459 | theorem exp_integral_im_logarithmicDerivative {g g' : ℝ → ℂ} {a b : ℝ} (hab : a ≤ b) |
| 3460 | (hg : ContinuousOn g (Icc a b)) (hg' : ContinuousOn g' (Icc a b)) |
| 3461 | (hd : ∀ t ∈ Ioo a b, HasDerivAt g (g' t) t) (hne : ∀ t ∈ Icc a b, g t ≠ 0) : |
| 3462 | Complex.exp ((∫ t in a..b, (g' t / g t).im : ℝ) * Complex.I) = |
| 3463 | complexPhase (g b) / complexPhase (g a) := by |
| 3464 | have hi : IntervalIntegrable (fun t => g' t / g t) volume a b := |
| 3465 | (hg'.div hg hne).intervalIntegrable_of_Icc hab |
| 3466 | have him : (∫ t in a..b, g' t / g t).im = ∫ t in a..b, (g' t / g t).im := by |
| 3467 | exact (Complex.imCLM.intervalIntegral_comp_comm hi).symm |
| 3468 | have he := congrArg complexPhase (exp_integral_logarithmicDerivative hab hg hg' hd hne) |
| 3469 | rwa [complexPhase_exp, complexPhase_div, him] at he |
| 3470 | |
| 3471 | def connectionTransport (α : ℝ → ℝ) (a b : ℝ) : ℂ := |
| 3472 | Complex.exp ((2 * Real.pi * ∫ t in a..b, α t : ℝ) * Complex.I) |
| 3473 | |
| 3474 | theorem connectionTransport_ne_zero (α : ℝ → ℝ) (a b : ℝ) : |
| 3475 | connectionTransport α a b ≠ 0 := Complex.exp_ne_zero _ |
| 3476 | |
| 3477 | theorem complexPhase_ne_zero {z : ℂ} (hz : z ≠ 0) : complexPhase z ≠ 0 := |
| 3478 | div_ne_zero hz (by exact_mod_cast norm_ne_zero_iff.mpr hz) |
| 3479 | |
| 3480 | theorem complexPhase_mul (a b : ℂ) : complexPhase (a * b) = complexPhase a * complexPhase b := by |
| 3481 | simp only [complexPhase, norm_mul, Complex.ofReal_mul, div_mul_div_comm] |
| 3482 | |
| 3483 | theorem connectionTransport_change {α β : ℝ → ℝ} {g g' : ℝ → ℂ} {a b : ℝ} |
| 3484 | (hab : a ≤ b) (hβ : IntervalIntegrable β volume a b) |
| 3485 | (hg : ContinuousOn g (Icc a b)) (hg' : ContinuousOn g' (Icc a b)) |
| 3486 | (hd : ∀ t ∈ Ioo a b, HasDerivAt g (g' t) t) (hne : ∀ t ∈ Icc a b, g t ≠ 0) |
| 3487 | (hchange : ∀ t ∈ Icc a b, α t = β t + (g' t / g t).im / (2 * Real.pi)) : |
| 3488 | connectionTransport α a b = connectionTransport β a b * complexPhase (g b) / complexPhase (g a) := by |
| 3489 | have hi : IntervalIntegrable (fun t => (g' t / g t).im) volume a b := |
| 3490 | (Complex.continuous_im.comp_continuousOn (hg'.div hg hne)).intervalIntegrable_of_Icc hab |
| 3491 | have hα : (∫ t in a..b, α t) = (∫ t in a..b, β t) + |
| 3492 | (∫ t in a..b, (g' t / g t).im) / (2 * Real.pi) := by |
| 3493 | calc |
| 3494 | _ = ∫ t in a..b, (β t + (g' t / g t).im / (2 * Real.pi)) := |
| 3495 | intervalIntegral.integral_congr (fun t ht => hchange t (by simpa [uIcc_of_le hab] using ht)) |
| 3496 | _ = _ := by |
| 3497 | rw [intervalIntegral.integral_add hβ (hi.div_const _)] |
| 3498 | simp_rw [div_eq_mul_inv] |
| 3499 | rw [intervalIntegral.integral_mul_const] |
| 3500 | rw [connectionTransport, hα] |
| 3501 | have he (r s : ℝ) : ((2 * Real.pi * (r + s / (2 * Real.pi)) : ℝ) : ℂ) * Complex.I = |
| 3502 | ((2 * Real.pi * r : ℝ) : ℂ) * Complex.I + (s : ℂ) * Complex.I := by |
| 3503 | have hreal : 2 * Real.pi * (r + s / (2 * Real.pi)) = 2 * Real.pi * r + s := by |
| 3504 | field_simp |
| 3505 | rw [hreal, Complex.ofReal_add] |
| 3506 | ring |
| 3507 | rw [he, Complex.exp_add, exp_integral_im_logarithmicDerivative hab hg hg' hd hne, mul_div_assoc] |
| 3508 | rfl |
| 3509 | |
| 3510 | theorem connectionTransport_rectangle {A B : ℝ → ℝ → ℝ} {a b c d : ℝ} |
| 3511 | (hAb : IntervalIntegrable (fun s => A s c) volume a b) |
| 3512 | (hAt : IntervalIntegrable (fun s => A s d) volume a b) |
| 3513 | (hBl : IntervalIntegrable (B a) volume c d) (hBr : IntervalIntegrable (B b) volume c d) : |
| 3514 | Complex.exp ((2 * Real.pi * ((∫ t in c..d, B b t - B a t) - |
| 3515 | ∫ s in a..b, A s d - A s c) : ℝ) * Complex.I) = |
| 3516 | connectionTransport (fun s => A s c) a b * connectionTransport (B b) c d / |
| 3517 | (connectionTransport (fun s => A s d) a b * connectionTransport (B a) c d) := by |
| 3518 | rw [intervalIntegral.integral_sub hBr hBl, intervalIntegral.integral_sub hAt hAb] |
| 3519 | unfold connectionTransport |
| 3520 | rw [← Complex.exp_add, ← Complex.exp_add, ← Complex.exp_sub] |
| 3521 | congr 1 |
| 3522 | push_cast |
| 3523 | ring |
| 3524 | |
| 3525 | theorem rectangle_normalization_cancel (h₀ h₁ v₀ v₁ a b c d : ℂ) |
| 3526 | (ha : a ≠ 0) (hb : b ≠ 0) (hc : c ≠ 0) (hd : d ≠ 0) : |
| 3527 | ((h₀ * b / a) * (v₁ * d / b)) / ((h₁ * d / c) * (v₀ * c / a)) = |
| 3528 | (h₀ * v₁) / (h₁ * v₀) := by |
| 3529 | by_cases hh : h₁ = 0 |
| 3530 | · simp [hh] |
| 3531 | by_cases hv : v₀ = 0 |
| 3532 | · simp [hv] |
| 3533 | field_simp |
| 3534 | |
| 3535 | theorem rectangle_integral_swap {F : ℝ → ℝ → ℝ} {a b c d : ℝ} |
| 3536 | (hab : a ≤ b) (hcd : c ≤ d) (hF : ContinuousOn F.uncurry (Icc a b ×ˢ Icc c d)) : |
| 3537 | (∫ s in a..b, ∫ t in c..d, F s t) = ∫ t in c..d, ∫ s in a..b, F s t := by |
| 3538 | have hi : Integrable F.uncurry ((volume.restrict (Ioc a b)).prod (volume.restrict (Ioc c d))) := by |
| 3539 | rw [Measure.prod_restrict] |
| 3540 | exact (hF.integrableOn_compact (isCompact_Icc.prod isCompact_Icc)).mono_set |
| 3541 | (Set.prod_mono Ioc_subset_Icc_self Ioc_subset_Icc_self) |
| 3542 | simpa only [intervalIntegral.integral_of_le hab, intervalIntegral.integral_of_le hcd] using |
| 3543 | integral_integral_swap hi |
| 3544 | |
| 3545 | theorem rectangle_stokes {A B As Bt : ℝ → ℝ → ℝ} {a b c d : ℝ} |
| 3546 | (hab : a ≤ b) (hcd : c ≤ d) |
| 3547 | (hAs : ContinuousOn As.uncurry (Icc a b ×ˢ Icc c d)) |
| 3548 | (hBt : ContinuousOn Bt.uncurry (Icc a b ×ˢ Icc c d)) |
| 3549 | (hA : ∀ s ∈ Icc a b, ∀ t ∈ Icc c d, HasDerivAt (A s) (As s t) t) |
| 3550 | (hB : ∀ t ∈ Icc c d, ∀ s ∈ Icc a b, HasDerivAt (fun r => B r t) (Bt s t) s) : |
| 3551 | (∫ s in a..b, ∫ t in c..d, (Bt s t - As s t)) = |
| 3552 | (∫ t in c..d, (B b t - B a t)) - ∫ s in a..b, (A s d - A s c) := by |
| 3553 | have hAsc (s : ℝ) (hs : s ∈ Icc a b) : ContinuousOn (As s) (Icc c d) := |
| 3554 | hAs.comp (continuous_const.prodMk continuous_id).continuousOn (fun t ht => ⟨hs, ht⟩) |
| 3555 | have hBtc (s : ℝ) (hs : s ∈ Icc a b) : ContinuousOn (Bt s) (Icc c d) := |
| 3556 | hBt.comp (continuous_const.prodMk continuous_id).continuousOn (fun t ht => ⟨hs, ht⟩) |
| 3557 | have hBts (t : ℝ) (ht : t ∈ Icc c d) : ContinuousOn (fun s => Bt s t) (Icc a b) := |
| 3558 | hBt.comp (continuous_id.prodMk continuous_const).continuousOn (fun s hs => ⟨hs, ht⟩) |
| 3559 | have hFTC_A (s : ℝ) (hs : s ∈ Icc a b) : |
| 3560 | (∫ t in c..d, As s t) = A s d - A s c := |
| 3561 | intervalIntegral.integral_eq_sub_of_hasDerivAt (fun t ht => hA s hs t (by simpa [uIcc_of_le hcd] using ht)) |
| 3562 | ((hAsc s hs).intervalIntegrable_of_Icc hcd) |
| 3563 | have hFTC_B (t : ℝ) (ht : t ∈ Icc c d) : |
| 3564 | (∫ s in a..b, Bt s t) = B b t - B a t := |
| 3565 | intervalIntegral.integral_eq_sub_of_hasDerivAt (fun s hs => hB t ht s (by simpa [uIcc_of_le hab] using hs)) |
| 3566 | ((hBts t ht).intervalIntegrable_of_Icc hab) |
| 3567 | have hAsc_int : IntervalIntegrable (fun s => ∫ t in c..d, As s t) volume a b := by |
| 3568 | have hi : Integrable As.uncurry ((volume.restrict (Ioc a b)).prod (volume.restrict (Ioc c d))) := by |
| 3569 | rw [Measure.prod_restrict] |
| 3570 | exact (hAs.integrableOn_compact (isCompact_Icc.prod isCompact_Icc)).mono_set |
| 3571 | (Set.prod_mono Ioc_subset_Icc_self Ioc_subset_Icc_self) |
| 3572 | rw [intervalIntegrable_iff_integrableOn_Ioc_of_le hab] |
| 3573 | simpa only [intervalIntegral.integral_of_le hcd, Function.uncurry, IntegrableOn] using hi.integral_prod_left |
| 3574 | have hBtc_int : IntervalIntegrable (fun s => ∫ t in c..d, Bt s t) volume a b := by |
| 3575 | have hi : Integrable Bt.uncurry ((volume.restrict (Ioc a b)).prod (volume.restrict (Ioc c d))) := by |
| 3576 | rw [Measure.prod_restrict] |
| 3577 | exact (hBt.integrableOn_compact (isCompact_Icc.prod isCompact_Icc)).mono_set |
| 3578 | (Set.prod_mono Ioc_subset_Icc_self Ioc_subset_Icc_self) |
| 3579 | rw [intervalIntegrable_iff_integrableOn_Ioc_of_le hab] |
| 3580 | simpa only [intervalIntegral.integral_of_le hcd, Function.uncurry, IntegrableOn] using hi.integral_prod_left |
| 3581 | calc |
| 3582 | _ = ∫ s in a..b, ((∫ t in c..d, Bt s t) - ∫ t in c..d, As s t) := by |
| 3583 | apply intervalIntegral.integral_congr |
| 3584 | intro s hs |
| 3585 | have hs' : s ∈ Icc a b := by simpa [uIcc_of_le hab] using hs |
| 3586 | exact intervalIntegral.integral_sub ((hBtc s hs').intervalIntegrable_of_Icc hcd) |
| 3587 | ((hAsc s hs').intervalIntegrable_of_Icc hcd) |
| 3588 | _ = (∫ s in a..b, ∫ t in c..d, Bt s t) - ∫ s in a..b, ∫ t in c..d, As s t := |
| 3589 | intervalIntegral.integral_sub hBtc_int hAsc_int |
| 3590 | _ = _ := by |
| 3591 | rw [rectangle_integral_swap hab hcd hBt] |
| 3592 | congr 1 |
| 3593 | · apply intervalIntegral.integral_congr |
| 3594 | intro t ht |
| 3595 | exact hFTC_B t (by simpa [uIcc_of_le hcd] using ht) |
| 3596 | · apply intervalIntegral.integral_congr |
| 3597 | intro s hs |
| 3598 | exact hFTC_A s (by simpa [uIcc_of_le hab] using hs) |
| 3599 | |
| 3600 | section LocalStokes |
| 3601 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 3602 | [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] {ι : Type*} [Fintype ι] |
| 3603 | |
| 3604 | theorem berryConnection_stokes_rectangle (f : V → ι → ℂ) (z u v : V) {a b c d : ℝ} |
| 3605 | (hab : a ≤ b) (hcd : c ≤ d) |
| 3606 | (hf : ∀ s ∈ Icc a b, ∀ t ∈ Icc c d, ContDiffAt ℂ 2 f (z + s • u + t • v)) |
| 3607 | (hne : ∀ s ∈ Icc a b, ∀ t ∈ Icc c d, f (z + s • u + t • v) ≠ 0) : |
| 3608 | (∫ s in a..b, ∫ t in c..d, (fubiniStudyForm (f (z + s • u + t • v)) |
| 3609 | (fderiv ℂ f (z + s • u + t • v)).toLinearMap u v).im) = |
| 3610 | (∫ t in c..d, berryConnection (f (z + b • u + t • v)) |
| 3611 | (fderiv ℂ f (z + b • u + t • v)).toLinearMap v - |
| 3612 | berryConnection (f (z + a • u + t • v)) |
| 3613 | (fderiv ℂ f (z + a • u + t • v)).toLinearMap v) - |
| 3614 | ∫ s in a..b, berryConnection (f (z + s • u + d • v)) |
| 3615 | (fderiv ℂ f (z + s • u + d • v)).toLinearMap u - |
| 3616 | berryConnection (f (z + s • u + c • v)) |
| 3617 | (fderiv ℂ f (z + s • u + c • v)).toLinearMap u := by |
| 3618 | let A (s t : ℝ) := berryConnection (f (z + s • u + t • v)) |
| 3619 | (fderiv ℂ f (z + s • u + t • v)).toLinearMap u |
| 3620 | let B (s t : ℝ) := berryConnection (f (z + s • u + t • v)) |
| 3621 | (fderiv ℂ f (z + s • u + t • v)).toLinearMap v |
| 3622 | let D (r w : V) (s t : ℝ) := berryDerivativeCandidate (f (z + s • u + t • v)) |
| 3623 | (fderiv ℂ f (z + s • u + t • v)).toLinearMap |
| 3624 | (fun e g => fderiv ℂ (fderiv ℂ f) (z + s • u + t • v) e g) r w |
| 3625 | have hmap : Continuous (fun q : ℝ × ℝ => z + q.1 • u + q.2 • v) := by fun_prop |
| 3626 | have hDc (r w : V) : ContinuousOn (D r w).uncurry (Icc a b ×ˢ Icc c d) := by |
| 3627 | intro q hq |
| 3628 | exact ((berryDerivativeCandidate_continuousAt (hf q.1 hq.1 q.2 hq.2) |
| 3629 | (hne q.1 hq.1 q.2 hq.2) r w).comp |
| 3630 | (f := fun q : ℝ × ℝ => z + q.1 • u + q.2 • v) (x := q) |
| 3631 | hmap.continuousAt).continuousWithinAt |
| 3632 | have hAd (s : ℝ) (hs : s ∈ Icc a b) (t : ℝ) (ht : t ∈ Icc c d) : |
| 3633 | HasDerivAt (A s) (D v u s t) t := |
| 3634 | berryConnection_hasDerivAt_affine (z + s • u) v u t (hf s hs t ht) (hne s hs t ht) |
| 3635 | have hBd (t : ℝ) (ht : t ∈ Icc c d) (s : ℝ) (hs : s ∈ Icc a b) : |
| 3636 | HasDerivAt (fun r => B r t) (D u v s t) s := by |
| 3637 | have he (r : ℝ) : z + t • v + r • u = z + r • u + t • v := by abel |
| 3638 | have hfs : ContDiffAt ℂ 2 f (z + t • v + s • u) := by rw [he]; exact hf s hs t ht |
| 3639 | have hns : f (z + t • v + s • u) ≠ 0 := by rw [he]; exact hne s hs t ht |
| 3640 | simpa only [he, B, D] using berryConnection_hasDerivAt_affine (z + t • v) u v s hfs hns |
| 3641 | have he := rectangle_stokes hab hcd (hDc v u) (hDc u v) hAd hBd |
| 3642 | change _ = (∫ t in c..d, B b t - B a t) - ∫ s in a..b, A s d - A s c |
| 3643 | rw [← he] |
| 3644 | apply intervalIntegral.integral_congr |
| 3645 | intro s hs |
| 3646 | have hs' : s ∈ Icc a b := by simpa [uIcc_of_le hab] using hs |
| 3647 | apply intervalIntegral.integral_congr |
| 3648 | intro t ht |
| 3649 | have ht' : t ∈ Icc c d := by simpa [uIcc_of_le hcd] using ht |
| 3650 | exact (berry_curvature_algebra _ (hne s hs' t ht') _ _ u v |
| 3651 | (((hf s hs' t ht').isSymmSndFDerivAt (by norm_num)).eq v u)).symm |
| 3652 | |
| 3653 | end LocalStokes |
| 3654 | |
| 3655 | def gridPoint (n i : ℕ) : ℝ := (i : ℝ) / n |
| 3656 | |
| 3657 | theorem gridPoint_mem_unitInterval (n i : ℕ) (hn : 0 < n) (hi : i ≤ n) : |
| 3658 | OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i ∈ Icc (0 : ℝ) 1 := by |
| 3659 | have hnr : (0 : ℝ) < n := by exact_mod_cast hn |
| 3660 | constructor |
| 3661 | · exact div_nonneg (Nat.cast_nonneg i) hnr.le |
| 3662 | · exact (div_le_one hnr).mpr (by exact_mod_cast hi) |
| 3663 | |
| 3664 | theorem gridPoint_step (n i : ℕ) : OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1) - OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i = 1 / (n : ℝ) := by |
| 3665 | simp only [OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint, Nat.cast_add, Nat.cast_one] |
| 3666 | ring |
| 3667 | |
| 3668 | theorem gridPoint_mono (n : ℕ) {i j : ℕ} (hij : i ≤ j) : OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i ≤ OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j := |
| 3669 | div_le_div_of_nonneg_right (by exact_mod_cast hij) (Nat.cast_nonneg n) |
| 3670 | |
| 3671 | theorem exists_grid_subordinate {ι : Sort*} (U : ι → Set (ℝ × ℝ)) |
| 3672 | (hU : ∀ i, IsOpen (U i)) (hcover : Icc (0 : ℝ) 1 ×ˢ Icc (0 : ℝ) 1 ⊆ ⋃ i, U i) : |
| 3673 | ∃ n : ℕ, 0 < n ∧ ∀ i < n, ∀ j < n, ∃ k, |
| 3674 | Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)) ×ˢ |
| 3675 | Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1)) ⊆ U k := by |
| 3676 | obtain ⟨δ, hδ, hδU⟩ := lebesgue_number_lemma_of_metric |
| 3677 | (isCompact_Icc.prod isCompact_Icc) hU hcover |
| 3678 | obtain ⟨N, hN⟩ := exists_nat_one_div_lt hδ |
| 3679 | let n := N + 1 |
| 3680 | have hn : 0 < n := Nat.succ_pos N |
| 3681 | have hmesh : 1 / (n : ℝ) < δ := by simpa [n] using hN |
| 3682 | refine ⟨n, hn, fun i hi j hj => ?_⟩ |
| 3683 | obtain ⟨k, hk⟩ := hδU (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i, OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) |
| 3684 | ⟨gridPoint_mem_unitInterval n i hn hi.le, gridPoint_mem_unitInterval n j hn hj.le⟩ |
| 3685 | refine ⟨k, fun q hq => hk ?_⟩ |
| 3686 | have hdist (i : ℕ) (s : ℝ) (hs : s ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1))) : |
| 3687 | dist s (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) < δ := by |
| 3688 | rw [Real.dist_eq, abs_of_nonneg (sub_nonneg.mpr hs.1)] |
| 3689 | have hstep := gridPoint_step n i |
| 3690 | linarith [hs.2] |
| 3691 | rw [Metric.mem_ball, Prod.dist_eq, max_lt_iff] |
| 3692 | exact ⟨hdist i q.1 hq.1, hdist j q.2 hq.2⟩ |
| 3693 | |
| 3694 | theorem grid_boundary_cancel {G : Type*} [CommGroup G] (H V : ℕ → ℕ → G) (n : ℕ) |
| 3695 | (hH : ∀ i < n, H i n = H i 0) (hV : ∀ j < n, V n j = V 0 j) : |
| 3696 | (∏ i ∈ Finset.range n, ∏ j ∈ Finset.range n, |
| 3697 | H i j * V (i + 1) j / (H i (j + 1) * V i j)) = 1 := by |
| 3698 | have he (i j : ℕ) : H i j * V (i + 1) j / (H i (j + 1) * V i j) = |
| 3699 | (V (i + 1) j / V i j) * (H i j / H i (j + 1)) := by |
| 3700 | simp only [div_eq_mul_inv, mul_inv_rev] |
| 3701 | ac_rfl |
| 3702 | simp_rw [he, Finset.prod_mul_distrib] |
| 3703 | rw [Finset.prod_comm (f := fun i j => V (i + 1) j / V i j)] |
| 3704 | have hv (j : ℕ) : (∏ i ∈ Finset.range n, V (i + 1) j / V i j) = V n j / V 0 j := |
| 3705 | Finset.prod_range_div (fun i => V i j) n |
| 3706 | have hh (i : ℕ) : (∏ j ∈ Finset.range n, H i j / H i (j + 1)) = H i 0 / H i n := |
| 3707 | Finset.prod_range_div' (fun j => H i j) n |
| 3708 | simp_rw [hv, hh] |
| 3709 | have hVp : (∏ j ∈ Finset.range n, V n j / V 0 j) = 1 := by |
| 3710 | apply Finset.prod_eq_one |
| 3711 | intro j hj |
| 3712 | rw [hV j (Finset.mem_range.mp hj)] |
| 3713 | exact div_self' _ |
| 3714 | have hHp : (∏ i ∈ Finset.range n, H i 0 / H i n) = 1 := by |
| 3715 | apply Finset.prod_eq_one |
| 3716 | intro i hi |
| 3717 | rw [hH i (Finset.mem_range.mp hi)] |
| 3718 | exact div_self' _ |
| 3719 | rw [hVp, hHp, one_mul] |
| 3720 | |
| 3721 | theorem rectangle_iterated_integrable {F : ℝ → ℝ → ℝ} {a b c d : ℝ} |
| 3722 | (hab : a ≤ b) (hcd : c ≤ d) (hF : ContinuousOn F.uncurry (Icc a b ×ˢ Icc c d)) : |
| 3723 | IntervalIntegrable (fun s => ∫ t in c..d, F s t) volume a b := by |
| 3724 | have hi : Integrable F.uncurry ((volume.restrict (Ioc a b)).prod (volume.restrict (Ioc c d))) := by |
| 3725 | rw [Measure.prod_restrict] |
| 3726 | exact (hF.integrableOn_compact (isCompact_Icc.prod isCompact_Icc)).mono_set |
| 3727 | (Set.prod_mono Ioc_subset_Icc_self Ioc_subset_Icc_self) |
| 3728 | rw [intervalIntegrable_iff_integrableOn_Ioc_of_le hab] |
| 3729 | simpa only [intervalIntegral.integral_of_le hcd, Function.uncurry, IntegrableOn] using hi.integral_prod_left |
| 3730 | |
| 3731 | theorem gridCell_subset_unitInterval (n i : ℕ) (hn : 0 < n) (hi : i < n) : |
| 3732 | Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)) ⊆ Icc (0 : ℝ) 1 := |
| 3733 | Icc_subset_Icc (gridPoint_mem_unitInterval n i hn hi.le).1 |
| 3734 | (gridPoint_mem_unitInterval n (i + 1) hn (Nat.succ_le_iff.mpr hi)).2 |
| 3735 | |
| 3736 | theorem rectangle_integral_grid_sum {F : ℝ → ℝ → ℝ} (n : ℕ) (hn : 0 < n) |
| 3737 | (hF : ContinuousOn F.uncurry (Icc (0 : ℝ) 1 ×ˢ Icc (0 : ℝ) 1)) : |
| 3738 | (∑ i ∈ Finset.range n, ∑ j ∈ Finset.range n, |
| 3739 | ∫ s in OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i.._root_.OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1), ∫ t in OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j.._root_.OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1), F s t) = |
| 3740 | ∫ s in (0 : ℝ)..1, ∫ t in (0 : ℝ)..1, F s t := by |
| 3741 | have hmono (i : ℕ) : OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i ≤ OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1) := gridPoint_mono n (Nat.le_succ i) |
| 3742 | have hzero : OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n 0 = 0 := by simp [OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint] |
| 3743 | have hone : OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n n = 1 := by simp [OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint, hn.ne'] |
| 3744 | have hslice (s : ℝ) (hs : s ∈ Icc (0 : ℝ) 1) : ContinuousOn (F s) (Icc (0 : ℝ) 1) := |
| 3745 | hF.comp (continuous_const.prodMk continuous_id).continuousOn (fun t ht => ⟨hs, ht⟩) |
| 3746 | have hint (i : ℕ) (hi : i < n) (j : ℕ) (hj : j < n) : |
| 3747 | IntervalIntegrable (fun s => ∫ t in OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j.._root_.OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1), F s t) |
| 3748 | volume (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)) := |
| 3749 | rectangle_iterated_integrable (hmono i) (hmono j) |
| 3750 | (hF.mono (Set.prod_mono (gridCell_subset_unitInterval n i hn hi) (gridCell_subset_unitInterval n j hn hj))) |
| 3751 | have hinner (s : ℝ) (hs : s ∈ Icc (0 : ℝ) 1) : |
| 3752 | (∑ j ∈ Finset.range n, ∫ t in OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j.._root_.OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1), F s t) = |
| 3753 | ∫ t in (0 : ℝ)..1, F s t := by |
| 3754 | have he := intervalIntegral.sum_integral_adjacent_intervals (μ := volume) (a := OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n) |
| 3755 | (n := n) (fun j hj => ((hslice s hs).mono (gridCell_subset_unitInterval n j hn hj)).intervalIntegrable_of_Icc (hmono j)) |
| 3756 | simpa only [hzero, hone] using he |
| 3757 | calc |
| 3758 | _ = ∑ i ∈ Finset.range n, ∫ s in OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i.._root_.OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1), |
| 3759 | ∑ j ∈ Finset.range n, ∫ t in OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j.._root_.OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1), F s t := by |
| 3760 | apply Finset.sum_congr rfl |
| 3761 | intro i hi |
| 3762 | exact (intervalIntegral.integral_finsetSum (fun j hj => hint i (Finset.mem_range.mp hi) j (Finset.mem_range.mp hj))).symm |
| 3763 | _ = ∑ i ∈ Finset.range n, ∫ s in OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i.._root_.OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1), ∫ t in (0 : ℝ)..1, F s t := by |
| 3764 | apply Finset.sum_congr rfl |
| 3765 | intro i hi |
| 3766 | apply intervalIntegral.integral_congr |
| 3767 | intro s hs |
| 3768 | apply hinner |
| 3769 | apply gridCell_subset_unitInterval n i hn (Finset.mem_range.mp hi) |
| 3770 | simpa only [uIcc_of_le (hmono i)] using hs |
| 3771 | _ = _ := by |
| 3772 | have he := intervalIntegral.sum_integral_adjacent_intervals (μ := volume) (a := OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n) (n := n) |
| 3773 | (fun i hi => rectangle_iterated_integrable (hmono i) (by norm_num : (0 : ℝ) ≤ 1) |
| 3774 | (hF.mono (Set.prod_mono (gridCell_subset_unitInterval n i hn hi) Set.Subset.rfl))) |
| 3775 | simpa only [hzero, hone] using he |
| 3776 | |
| 3777 | theorem complex_prod_range_div (f : ℕ → ℂ) (n : ℕ) (hf : ∀ i ≤ n, f i ≠ 0) : |
| 3778 | (∏ i ∈ Finset.range n, f (i + 1) / f i) = f n / f 0 := by |
| 3779 | induction n with |
| 3780 | | zero => simp [hf 0 le_rfl] |
| 3781 | | succ n ih => |
| 3782 | rw [Finset.prod_range_succ, ih (fun i hi => hf i (Nat.le_trans hi (Nat.le_succ n)))] |
| 3783 | have hn := hf n (Nat.le_succ n) |
| 3784 | have h0 := hf 0 (Nat.zero_le _) |
| 3785 | field_simp |
| 3786 | |
| 3787 | theorem complex_prod_range_div_rev (f : ℕ → ℂ) (n : ℕ) (hf : ∀ i ≤ n, f i ≠ 0) : |
| 3788 | (∏ i ∈ Finset.range n, f i / f (i + 1)) = f 0 / f n := by |
| 3789 | have h := complex_prod_range_div (fun i => (f i)⁻¹) n (fun i hi => inv_ne_zero (hf i hi)) |
| 3790 | simpa only [inv_div_inv] using h |
| 3791 | |
| 3792 | theorem complex_grid_boundary_cancel (H V : ℕ → ℕ → ℂ) (n : ℕ) |
| 3793 | (hHn : ∀ i < n, ∀ j ≤ n, H i j ≠ 0) (hVn : ∀ i ≤ n, ∀ j < n, V i j ≠ 0) |
| 3794 | (hH : ∀ i < n, H i n = H i 0) (hV : ∀ j < n, V n j = V 0 j) : |
| 3795 | (∏ i ∈ Finset.range n, ∏ j ∈ Finset.range n, |
| 3796 | H i j * V (i + 1) j / (H i (j + 1) * V i j)) = 1 := by |
| 3797 | have he (i j : ℕ) : H i j * V (i + 1) j / (H i (j + 1) * V i j) = |
| 3798 | (V (i + 1) j / V i j) * (H i j / H i (j + 1)) := by |
| 3799 | simp only [div_eq_mul_inv, mul_inv_rev] |
| 3800 | ring |
| 3801 | simp_rw [he, Finset.prod_mul_distrib] |
| 3802 | rw [Finset.prod_comm (f := fun i j => V (i + 1) j / V i j)] |
| 3803 | have hVp : (∏ j ∈ Finset.range n, ∏ i ∈ Finset.range n, V (i + 1) j / V i j) = 1 := by |
| 3804 | apply Finset.prod_eq_one |
| 3805 | intro j hj |
| 3806 | have hj' := Finset.mem_range.mp hj |
| 3807 | rw [complex_prod_range_div (fun i => V i j) n (fun i hi => hVn i hi j hj'), hV j hj'] |
| 3808 | exact div_self (hVn 0 (Nat.zero_le n) j hj') |
| 3809 | have hHp : (∏ i ∈ Finset.range n, ∏ j ∈ Finset.range n, H i j / H i (j + 1)) = 1 := by |
| 3810 | apply Finset.prod_eq_one |
| 3811 | intro i hi |
| 3812 | have hi' := Finset.mem_range.mp hi |
| 3813 | rw [complex_prod_range_div_rev (fun j => H i j) n (hHn i hi'), hH i hi'] |
| 3814 | exact div_self (hHn i hi' 0 (Nat.zero_le n)) |
| 3815 | rw [hVp, hHp, one_mul] |
| 3816 | |
| 3817 | section ProjectiveGridCover |
| 3818 | |
| 3819 | open OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 3820 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] {ι : Type*} |
| 3821 | |
| 3822 | /-- A fine rectangular subdivision with a projective chart containing each |
| 3823 | closed cell. It records only the finite open-cover data. -/ |
| 3824 | structure ProjectiveGridCover (p : V → Projectivization ℂ (ι → ℂ)) (z u v : V) (n : ℕ) where |
| 3825 | positive : 0 < n |
| 3826 | chart : ℕ → ℕ → ι |
| 3827 | inPatch : ∀ i < n, ∀ j < n, ∀ s ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)), |
| 3828 | ∀ t ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1)), |
| 3829 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch (chart i j) (p (z + s • u + t • v)) |
| 3830 | |
| 3831 | theorem exists_projectiveGridCover (p : V → Projectivization ℂ (ι → ℂ)) (hp : Continuous p) |
| 3832 | (z u v : V) : ∃ n : ℕ, Nonempty (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.ProjectiveGridCover p z u v n) := by |
| 3833 | classical |
| 3834 | let U (i : ι) : Set (ℝ × ℝ) := {q | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p (z + q.1 • u + q.2 • v))} |
| 3835 | have hmap : Continuous (fun q : ℝ × ℝ => z + q.1 • u + q.2 • v) := by fun_prop |
| 3836 | have hU (i : ι) : IsOpen (U i) := |
| 3837 | (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.isOpen_projectivePatch i).preimage (hp.comp hmap) |
| 3838 | have hcover : Icc (0 : ℝ) 1 ×ˢ Icc (0 : ℝ) 1 ⊆ ⋃ i, U i := by |
| 3839 | intro q _ |
| 3840 | obtain ⟨i, hi⟩ := AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.exists_inPatch (p (z + q.1 • u + q.2 • v)) |
| 3841 | exact Set.mem_iUnion.mpr ⟨i, hi⟩ |
| 3842 | obtain ⟨n, hn, hc⟩ := exists_grid_subordinate U hU hcover |
| 3843 | let d := Classical.choose (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.exists_inPatch (p z)) |
| 3844 | let C (i j : ℕ) : ι := if hi : i < n then |
| 3845 | if hj : j < n then Classical.choose (hc i hi j hj) else d else d |
| 3846 | refine ⟨n, ⟨{ positive := hn, chart := C, inPatch := ?_ }⟩⟩ |
| 3847 | intro i hi j hj s hs t ht |
| 3848 | simp only [C, dite_eq_left hi, dite_eq_left hj] |
| 3849 | exact (Classical.choose_spec (hc i hi j hj)) |
| 3850 | (show (s, t) ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)) ×ˢ |
| 3851 | Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1)) from ⟨hs, ht⟩) |
| 3852 | |
| 3853 | namespace ProjectiveGridCover |
| 3854 | variable {p : V → Projectivization ℂ (ι → ℂ)} {z u v : V} {n : ℕ} |
| 3855 | (C : OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.ProjectiveGridCover p z u v n) |
| 3856 | |
| 3857 | def clamp (_C : OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.ProjectiveGridCover p z u v n) (j : ℕ) : ℕ := min j (n - 1) |
| 3858 | |
| 3859 | theorem clamp_lt (j : ℕ) : C.clamp j < n := by |
| 3860 | have hn := C.positive |
| 3861 | dsimp [OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.ProjectiveGridCover.clamp] |
| 3862 | omega |
| 3863 | |
| 3864 | theorem gridPoint_mem_clamped_cell (j : ℕ) (hj : j ≤ n) : |
| 3865 | OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (C.clamp j)) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (C.clamp j + 1)) := by |
| 3866 | have hn := C.positive |
| 3867 | constructor |
| 3868 | · apply gridPoint_mono n |
| 3869 | exact Nat.min_le_left _ _ |
| 3870 | · apply gridPoint_mono n |
| 3871 | dsimp [OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.ProjectiveGridCover.clamp] |
| 3872 | omega |
| 3873 | |
| 3874 | theorem horizontal_inPatch (i : ℕ) (hi : i < n) (j : ℕ) (hj : j ≤ n) |
| 3875 | (s : ℝ) (hs : s ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1))) : |
| 3876 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch (C.chart i (C.clamp j)) (p (z + s • u + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j • v)) := |
| 3877 | C.inPatch i hi (C.clamp j) (C.clamp_lt j) s hs (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (C.gridPoint_mem_clamped_cell j hj) |
| 3878 | |
| 3879 | theorem vertical_inPatch (i : ℕ) (hi : i ≤ n) (j : ℕ) (hj : j < n) |
| 3880 | (t : ℝ) (ht : t ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1))) : |
| 3881 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch (C.chart (C.clamp i) j) (p (z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i • u + t • v)) := |
| 3882 | C.inPatch (C.clamp i) (C.clamp_lt i) j hj (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) |
| 3883 | (C.gridPoint_mem_clamped_cell i hi) t ht |
| 3884 | |
| 3885 | end ProjectiveGridCover |
| 3886 | end ProjectiveGridCover |
| 3887 | |
| 3888 | section ProjectiveReference |
| 3889 | |
| 3890 | open OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 3891 | variable {ι : Type*} |
| 3892 | |
| 3893 | def projectiveReference (P : Projectivization ℂ (ι → ℂ)) : ι → ℂ := |
| 3894 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates (Classical.choose (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.exists_inPatch P)) P |
| 3895 | |
| 3896 | theorem projectiveReference_coordinate_ne_zero (P : Projectivization ℂ (ι → ℂ)) (i : ι) |
| 3897 | (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i P) : projectiveReference P i ≠ 0 := |
| 3898 | (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.inPatch_iff_ratio_ne_zero _ i P (Classical.choose_spec (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.exists_inPatch P))).mp hi |
| 3899 | |
| 3900 | theorem projectiveReference_factor (P : Projectivization ℂ (ι → ℂ)) (i j : ι) |
| 3901 | (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i P) : projectiveReference P j = projectiveReference P i * AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i P j := by |
| 3902 | let k := Classical.choose (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.exists_inPatch P) |
| 3903 | have hk : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch k P := Classical.choose_spec (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.exists_inPatch P) |
| 3904 | have hn : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.ratio k i P ≠ 0 := (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.inPatch_iff_ratio_ne_zero k i P hk).mp hi |
| 3905 | change AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.ratio k j P = AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.ratio k i P * AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.ratio i j P |
| 3906 | rw [AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.transition_formula k i j P hk] |
| 3907 | field_simp |
| 3908 | |
| 3909 | def projectiveVertexPhase (P : Projectivization ℂ (ι → ℂ)) (i : ι) : ℂ := |
| 3910 | complexPhase (projectiveReference P i) |
| 3911 | |
| 3912 | theorem projectiveVertexPhase_ne_zero (P : Projectivization ℂ (ι → ℂ)) (i : ι) (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i P) : |
| 3913 | projectiveVertexPhase P i ≠ 0 := |
| 3914 | complexPhase_ne_zero (projectiveReference_coordinate_ne_zero P i hi) |
| 3915 | |
| 3916 | theorem projectiveVertexPhase_change (P : Projectivization ℂ (ι → ℂ)) (i j : ι) (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i P) : |
| 3917 | projectiveVertexPhase P j = projectiveVertexPhase P i * complexPhase (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i P j) := by |
| 3918 | rw [projectiveVertexPhase, projectiveReference_factor P i j hi, complexPhase_mul] |
| 3919 | rfl |
| 3920 | |
| 3921 | end ProjectiveReference |
| 3922 | |
| 3923 | open OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 3924 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 3925 | [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] [FiniteDimensional ℂ V] |
| 3926 | {ι : Type*} [Fintype ι] (p : V → Projectivization ℂ (ι → ℂ)) (hp : Continuous p) |
| 3927 | (hhol : ∀ z, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z) ∧ DifferentiableAt ℂ (projectivePullbackChart p i) z) |
| 3928 | |
| 3929 | def projectiveEdgeTransport (i : ι) (z u : V) (a b : ℝ) : ℂ := |
| 3930 | connectionTransport (fun t => projectiveBerryConnection p i (z + t • u) u) a b |
| 3931 | |
| 3932 | include hp hhol |
| 3933 | |
| 3934 | omit [FiniteDimensional ℂ V] in |
| 3935 | theorem projective_chart_scalar_affine_hasDerivAt (i j : ι) (z u : V) (t : ℝ) |
| 3936 | (hi : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p (z + t • u))) : |
| 3937 | HasDerivAt (fun r : ℝ => projectivePullbackChart p i (z + r • u) j) |
| 3938 | (fderiv ℂ (fun w => projectivePullbackChart p i w j) (z + t • u) u) t := by |
| 3939 | have hd := (differentiableAt_pi.mp |
| 3940 | (projective_chart_differentiableAt p hp _ (hhol _) i hi)) j |
| 3941 | have hline : HasDerivAt (fun r : ℝ => z + r • u) u t := by |
| 3942 | simpa only [one_smul, id_eq] using (((hasDerivAt_id t).smul_const u).const_add z) |
| 3943 | simpa only [Function.comp_def, ContinuousLinearMap.coe_restrictScalars'] using |
| 3944 | (hd.hasFDerivAt.restrictScalars ℝ).comp_hasDerivAt t hline |
| 3945 | |
| 3946 | theorem projectiveEdgeTransport_change (i j : ι) (z u : V) {a b : ℝ} (hab : a ≤ b) |
| 3947 | (hi : ∀ t ∈ Icc a b, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p (z + t • u))) |
| 3948 | (hj : ∀ t ∈ Icc a b, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch j (p (z + t • u))) : |
| 3949 | projectiveEdgeTransport p i z u a b = projectiveEdgeTransport p j z u a b * |
| 3950 | complexPhase (projectivePullbackChart p i (z + b • u) j) / |
| 3951 | complexPhase (projectivePullbackChart p i (z + a • u) j) := by |
| 3952 | let g : ℝ → ℂ := fun t => projectivePullbackChart p i (z + t • u) j |
| 3953 | let g' : ℝ → ℂ := fun t => fderiv ℂ (fun w => projectivePullbackChart p i w j) (z + t • u) u |
| 3954 | have hline : Continuous (fun t : ℝ => z + t • u) := by fun_prop |
| 3955 | have hβ : ContinuousOn (fun t => projectiveBerryConnection p j (z + t • u) u) (Icc a b) := by |
| 3956 | intro t ht |
| 3957 | exact ((projectiveBerryConnection_continuousAt p hp hhol j _ u (hj t ht)).comp |
| 3958 | (f := fun r : ℝ => z + r • u) (x := t) hline.continuousAt).continuousWithinAt |
| 3959 | have hgd (t : ℝ) (ht : t ∈ Icc a b) : HasDerivAt g (g' t) t := |
| 3960 | projective_chart_scalar_affine_hasDerivAt p hp hhol i j z u t (hi t ht) |
| 3961 | have hgc : ContinuousOn g (Icc a b) := fun t ht => (hgd t ht).continuousAt.continuousWithinAt |
| 3962 | have hg'c : ContinuousOn g' (Icc a b) := by |
| 3963 | intro t ht |
| 3964 | have hs : ContDiffAt ℂ 1 (fun w => projectivePullbackChart p i w j) (z + t • u) := |
| 3965 | (contDiffAt_pi.mp ((projective_chart_contDiffOn_one p hp hhol i).contDiffAt |
| 3966 | (projective_patch_eventually p hp i _ (hi t ht)))) j |
| 3967 | exact (((hs.continuousAt_fderiv (by norm_num)).clm_apply continuousAt_const).comp |
| 3968 | (f := fun r : ℝ => z + r • u) (x := t) hline.continuousAt).continuousWithinAt |
| 3969 | have hgn (t : ℝ) (ht : t ∈ Icc a b) : g t ≠ 0 := |
| 3970 | (AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.inPatch_iff_ratio_ne_zero i j _ (hi t ht)).mp (hj t ht) |
| 3971 | apply connectionTransport_change hab (hβ.intervalIntegrable_of_Icc hab) hgc hg'c |
| 3972 | (fun t ht => hgd t ⟨ht.1.le, ht.2.le⟩) hgn |
| 3973 | intro t ht |
| 3974 | exact projectiveBerryConnection_change p hp i j _ u (hi t ht) (hj t ht) |
| 3975 | (projective_chart_differentiableAt p hp _ (hhol _) i (hi t ht)) |
| 3976 | (projective_chart_differentiableAt p hp _ (hhol _) j (hj t ht)) |
| 3977 | |
| 3978 | omit hp hhol in |
| 3979 | def normalizedProjectiveEdgeTransport (i : ι) (z u : V) (a b : ℝ) : ℂ := |
| 3980 | projectiveEdgeTransport p i z u a b * projectiveVertexPhase (p (z + b • u)) i / |
| 3981 | projectiveVertexPhase (p (z + a • u)) i |
| 3982 | |
| 3983 | omit hp hhol [FiniteDimensional ℂ V] [IsScalarTower ℝ ℂ V] in |
| 3984 | theorem normalizedProjectiveEdgeTransport_ne_zero (i : ι) (z u : V) (a b : ℝ) |
| 3985 | (ha : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p (z + a • u))) (hb : AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p (z + b • u))) : |
| 3986 | normalizedProjectiveEdgeTransport p i z u a b ≠ 0 := |
| 3987 | div_ne_zero (mul_ne_zero (connectionTransport_ne_zero _ _ _) |
| 3988 | (projectiveVertexPhase_ne_zero _ i hb)) (projectiveVertexPhase_ne_zero _ i ha) |
| 3989 | |
| 3990 | theorem normalizedProjectiveEdgeTransport_chart_independent (i j : ι) (z u : V) {a b : ℝ} |
| 3991 | (hab : a ≤ b) (hi : ∀ t ∈ Icc a b, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p (z + t • u))) |
| 3992 | (hj : ∀ t ∈ Icc a b, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch j (p (z + t • u))) : |
| 3993 | normalizedProjectiveEdgeTransport p i z u a b = normalizedProjectiveEdgeTransport p j z u a b := by |
| 3994 | have hia := hi a ⟨le_rfl, hab⟩ |
| 3995 | have hib := hi b ⟨hab, le_rfl⟩ |
| 3996 | have hva := projectiveVertexPhase_ne_zero _ i hia |
| 3997 | have hga : complexPhase (projectivePullbackChart p i (z + a • u) j) ≠ 0 := |
| 3998 | complexPhase_ne_zero ((AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.inPatch_iff_ratio_ne_zero i j _ hia).mp (hj a ⟨le_rfl, hab⟩)) |
| 3999 | unfold normalizedProjectiveEdgeTransport |
| 4000 | rw [projectiveEdgeTransport_change p hp hhol i j z u hab hi hj, |
| 4001 | projectiveVertexPhase_change _ i j hib, projectiveVertexPhase_change _ i j hia] |
| 4002 | change _ = _ * (projectiveVertexPhase (p (z + b • u)) i * |
| 4003 | complexPhase (projectivePullbackChart p i (z + b • u) j)) / |
| 4004 | (projectiveVertexPhase (p (z + a • u)) i * complexPhase (projectivePullbackChart p i (z + a • u) j)) |
| 4005 | field_simp |
| 4006 | |
| 4007 | omit [IsScalarTower ℝ ℂ V] in |
| 4008 | theorem projectiveBerryConnection_affine_integrable (i : ι) (z u : V) {a b : ℝ} |
| 4009 | (hab : a ≤ b) (hi : ∀ t ∈ Icc a b, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p (z + t • u))) : |
| 4010 | IntervalIntegrable (fun t => projectiveBerryConnection p i (z + t • u) u) volume a b := by |
| 4011 | apply ContinuousOn.intervalIntegrable_of_Icc hab |
| 4012 | intro t ht |
| 4013 | have hline : Continuous (fun r : ℝ => z + r • u) := by fun_prop |
| 4014 | exact ((projectiveBerryConnection_continuousAt p hp hhol i _ u (hi t ht)).comp |
| 4015 | (f := fun r : ℝ => z + r • u) (x := t) hline.continuousAt).continuousWithinAt |
| 4016 | |
| 4017 | omit hp hhol [FiniteDimensional ℂ V] [IsScalarTower ℝ ℂ V] in |
| 4018 | theorem normalizedProjectiveEdgeTransport_periodic (l : V) (hl : ∀ w, p (w + l) = p w) |
| 4019 | (i : ι) (z u : V) (a b : ℝ) : |
| 4020 | normalizedProjectiveEdgeTransport p i (z + l) u a b = normalizedProjectiveEdgeTransport p i z u a b := by |
| 4021 | have hx (t : ℝ) : z + l + t • u = (z + t • u) + l := by abel |
| 4022 | have hE : projectiveEdgeTransport p i (z + l) u a b = projectiveEdgeTransport p i z u a b := by |
| 4023 | apply congrArg (fun α => connectionTransport α a b) |
| 4024 | funext t |
| 4025 | rw [hx] |
| 4026 | exact projectiveBerryConnection_periodic p l hl i _ u |
| 4027 | unfold normalizedProjectiveEdgeTransport |
| 4028 | rw [hE, hx, hx, hl, hl] |
| 4029 | |
| 4030 | omit hp hhol in |
| 4031 | def projectiveCurvatureRectangle (z u v : V) (a b c d : ℝ) : ℝ := |
| 4032 | ∫ s in a..b, ∫ t in c..d, (projectiveFubiniStudy p (z + s • u + t • v) u v).im |
| 4033 | |
| 4034 | theorem projectiveCurvatureRectangle_local_stokes (i : ι) (z u v : V) {a b c d : ℝ} |
| 4035 | (hab : a ≤ b) (hcd : c ≤ d) |
| 4036 | (hi : ∀ s ∈ Icc a b, ∀ t ∈ Icc c d, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p (z + s • u + t • v))) : |
| 4037 | projectiveCurvatureRectangle p z u v a b c d = |
| 4038 | (∫ t in c..d, projectiveBerryConnection p i (z + b • u + t • v) v - |
| 4039 | projectiveBerryConnection p i (z + a • u + t • v) v) - |
| 4040 | ∫ s in a..b, projectiveBerryConnection p i (z + s • u + d • v) u - |
| 4041 | projectiveBerryConnection p i (z + s • u + c • v) u := by |
| 4042 | have hf (s : ℝ) (hs : s ∈ Icc a b) (t : ℝ) (ht : t ∈ Icc c d) : |
| 4043 | ContDiffAt ℂ 2 (projectivePullbackChart p i) (z + s • u + t • v) := |
| 4044 | (projective_chart_contDiffOn_two p hp hhol i).contDiffAt |
| 4045 | (projective_patch_eventually p hp i _ (hi s hs t ht)) |
| 4046 | have hn (s : ℝ) (hs : s ∈ Icc a b) (t : ℝ) (ht : t ∈ Icc c d) : |
| 4047 | projectivePullbackChart p i (z + s • u + t • v) ≠ 0 := |
| 4048 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.normalized_ne_zero i _ (hi s hs t ht) |
| 4049 | unfold projectiveBerryConnection projectiveCurvatureRectangle |
| 4050 | rw [← berryConnection_stokes_rectangle (projectivePullbackChart p i) z u v hab hcd hf hn] |
| 4051 | apply intervalIntegral.integral_congr |
| 4052 | intro s hs |
| 4053 | apply intervalIntegral.integral_congr |
| 4054 | intro t ht |
| 4055 | exact congrArg (fun H : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ => (H u v).im) |
| 4056 | (projectiveFubiniStudy_eq_chart p hp _ (hhol _) i |
| 4057 | (hi s (by simpa [uIcc_of_le hab] using hs) t (by simpa [uIcc_of_le hcd] using ht))) |
| 4058 | |
| 4059 | theorem projectiveCurvatureRectangle_holonomy (i : ι) (z u v : V) {a b c d : ℝ} |
| 4060 | (hab : a ≤ b) (hcd : c ≤ d) |
| 4061 | (hi : ∀ s ∈ Icc a b, ∀ t ∈ Icc c d, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p (z + s • u + t • v))) : |
| 4062 | Complex.exp ((2 * Real.pi * projectiveCurvatureRectangle p z u v a b c d : ℝ) * Complex.I) = |
| 4063 | normalizedProjectiveEdgeTransport p i (z + c • v) u a b * |
| 4064 | normalizedProjectiveEdgeTransport p i (z + b • u) v c d / |
| 4065 | (normalizedProjectiveEdgeTransport p i (z + d • v) u a b * |
| 4066 | normalizedProjectiveEdgeTransport p i (z + a • u) v c d) := by |
| 4067 | have he (s t : ℝ) : z + t • v + s • u = z + s • u + t • v := by abel |
| 4068 | have hbottom : ∀ s ∈ Icc a b, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p (z + c • v + s • u)) := by |
| 4069 | intro s hs |
| 4070 | rw [he] |
| 4071 | exact hi s hs c ⟨le_rfl, hcd⟩ |
| 4072 | have htop : ∀ s ∈ Icc a b, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p (z + d • v + s • u)) := by |
| 4073 | intro s hs |
| 4074 | rw [he] |
| 4075 | exact hi s hs d ⟨hcd, le_rfl⟩ |
| 4076 | have hAb : IntervalIntegrable (fun s => projectiveBerryConnection p i (z + s • u + c • v) u) volume a b := by |
| 4077 | simpa only [he] using projectiveBerryConnection_affine_integrable p hp hhol i (z + c • v) u hab hbottom |
| 4078 | have hAt : IntervalIntegrable (fun s => projectiveBerryConnection p i (z + s • u + d • v) u) volume a b := by |
| 4079 | simpa only [he] using projectiveBerryConnection_affine_integrable p hp hhol i (z + d • v) u hab htop |
| 4080 | have hBl := projectiveBerryConnection_affine_integrable p hp hhol i (z + a • u) v hcd |
| 4081 | (hi a ⟨le_rfl, hab⟩) |
| 4082 | have hBr := projectiveBerryConnection_affine_integrable p hp hhol i (z + b • u) v hcd |
| 4083 | (hi b ⟨hab, le_rfl⟩) |
| 4084 | have hraw : Complex.exp ((2 * Real.pi * projectiveCurvatureRectangle p z u v a b c d : ℝ) * Complex.I) = |
| 4085 | projectiveEdgeTransport p i (z + c • v) u a b * projectiveEdgeTransport p i (z + b • u) v c d / |
| 4086 | (projectiveEdgeTransport p i (z + d • v) u a b * projectiveEdgeTransport p i (z + a • u) v c d) := by |
| 4087 | rw [projectiveCurvatureRectangle_local_stokes p hp hhol i z u v hab hcd hi] |
| 4088 | simpa only [projectiveEdgeTransport, he] using connectionTransport_rectangle |
| 4089 | (A := fun s t => projectiveBerryConnection p i (z + s • u + t • v) u) |
| 4090 | (B := fun s t => projectiveBerryConnection p i (z + s • u + t • v) v) |
| 4091 | (a := a) (b := b) (c := c) (d := d) hAb hAt hBl hBr |
| 4092 | rw [hraw] |
| 4093 | symm |
| 4094 | unfold normalizedProjectiveEdgeTransport |
| 4095 | simp_rw [he] |
| 4096 | exact rectangle_normalization_cancel _ _ _ _ _ _ _ _ |
| 4097 | (projectiveVertexPhase_ne_zero _ i (hi a ⟨le_rfl, hab⟩ c ⟨le_rfl, hcd⟩)) |
| 4098 | (projectiveVertexPhase_ne_zero _ i (hi b ⟨hab, le_rfl⟩ c ⟨le_rfl, hcd⟩)) |
| 4099 | (projectiveVertexPhase_ne_zero _ i (hi a ⟨le_rfl, hab⟩ d ⟨hcd, le_rfl⟩)) |
| 4100 | (projectiveVertexPhase_ne_zero _ i (hi b ⟨hab, le_rfl⟩ d ⟨hcd, le_rfl⟩)) |
| 4101 | |
| 4102 | end |
| 4103 | |
| 4104 | section |
| 4105 | open _root_.MeasureTheory Set Filter _root_.Topology OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 4106 | |
| 4107 | namespace ProjectiveGridCover |
| 4108 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 4109 | [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] [FiniteDimensional ℂ V] |
| 4110 | {ι : Type*} [Fintype ι] {p : V → Projectivization ℂ (ι → ℂ)} |
| 4111 | {z u v : V} {n : ℕ} (C : OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.ProjectiveGridCover p z u v n) |
| 4112 | |
| 4113 | def horizontalTransport (i j : ℕ) : ℂ := |
| 4114 | normalizedProjectiveEdgeTransport p (C.chart i (C.clamp j)) (z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j • v) u |
| 4115 | (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)) |
| 4116 | |
| 4117 | def verticalTransport (i j : ℕ) : ℂ := |
| 4118 | normalizedProjectiveEdgeTransport p (C.chart (C.clamp i) j) (z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i • u) v |
| 4119 | (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1)) |
| 4120 | |
| 4121 | omit [IsScalarTower ℝ ℂ V] [FiniteDimensional ℂ V] in |
| 4122 | theorem horizontalTransport_ne_zero (i : ℕ) (hi : i < n) (j : ℕ) (hj : j ≤ n) : |
| 4123 | C.horizontalTransport i j ≠ 0 := by |
| 4124 | have hm := gridPoint_mono n (Nat.le_succ i) |
| 4125 | apply normalizedProjectiveEdgeTransport_ne_zero |
| 4126 | · have he : z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j • v + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i • u = z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i • u + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j • v := by abel |
| 4127 | rw [he] |
| 4128 | exact C.horizontal_inPatch i hi j hj _ ⟨le_rfl, hm⟩ |
| 4129 | · have he : z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j • v + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1) • u = |
| 4130 | z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1) • u + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j • v := by abel |
| 4131 | rw [he] |
| 4132 | exact C.horizontal_inPatch i hi j hj _ ⟨hm, le_rfl⟩ |
| 4133 | |
| 4134 | omit [IsScalarTower ℝ ℂ V] [FiniteDimensional ℂ V] in |
| 4135 | theorem verticalTransport_ne_zero (i : ℕ) (hi : i ≤ n) (j : ℕ) (hj : j < n) : |
| 4136 | C.verticalTransport i j ≠ 0 := by |
| 4137 | have hm := gridPoint_mono n (Nat.le_succ j) |
| 4138 | exact normalizedProjectiveEdgeTransport_ne_zero p _ _ _ _ _ |
| 4139 | (C.vertical_inPatch i hi j hj _ ⟨le_rfl, hm⟩) |
| 4140 | (C.vertical_inPatch i hi j hj _ ⟨hm, le_rfl⟩) |
| 4141 | |
| 4142 | variable (hp : Continuous p) |
| 4143 | (hhol : ∀ z, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z) ∧ DifferentiableAt ℂ (projectivePullbackChart p i) z) |
| 4144 | include hp hhol |
| 4145 | |
| 4146 | theorem horizontalTransport_eq_of_inPatch (i : ℕ) (hi : i < n) (j : ℕ) (hj : j ≤ n) (k : ι) |
| 4147 | (hk : ∀ s ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)), |
| 4148 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch k (p (z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j • v + s • u))) : |
| 4149 | C.horizontalTransport i j = normalizedProjectiveEdgeTransport p k (z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j • v) u |
| 4150 | (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)) := by |
| 4151 | apply normalizedProjectiveEdgeTransport_chart_independent p hp hhol _ k _ _ |
| 4152 | (gridPoint_mono n (Nat.le_succ i)) _ hk |
| 4153 | intro s hs |
| 4154 | have he : z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j • v + s • u = z + s • u + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j • v := by abel |
| 4155 | rw [he] |
| 4156 | exact C.horizontal_inPatch i hi j hj s hs |
| 4157 | |
| 4158 | theorem verticalTransport_eq_of_inPatch (i : ℕ) (hi : i ≤ n) (j : ℕ) (hj : j < n) (k : ι) |
| 4159 | (hk : ∀ t ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1)), |
| 4160 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch k (p (z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i • u + t • v))) : |
| 4161 | C.verticalTransport i j = normalizedProjectiveEdgeTransport p k (z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i • u) v |
| 4162 | (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1)) := |
| 4163 | normalizedProjectiveEdgeTransport_chart_independent p hp hhol _ k _ _ |
| 4164 | (gridPoint_mono n (Nat.le_succ j)) (C.vertical_inPatch i hi j hj) hk |
| 4165 | |
| 4166 | theorem cell_holonomy (i : ℕ) (hi : i < n) (j : ℕ) (hj : j < n) : |
| 4167 | Complex.exp ((2 * Real.pi * projectiveCurvatureRectangle p z u v |
| 4168 | (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1)) : ℝ) * Complex.I) = |
| 4169 | C.horizontalTransport i j * C.verticalTransport (i + 1) j / |
| 4170 | (C.horizontalTransport i (j + 1) * C.verticalTransport i j) := by |
| 4171 | have him := gridPoint_mono n (Nat.le_succ i) |
| 4172 | have hjm := gridPoint_mono n (Nat.le_succ j) |
| 4173 | have hph (t : ℝ) (ht : t ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1))) : |
| 4174 | ∀ s ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)), AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch (C.chart i j) (p (z + t • v + s • u)) := by |
| 4175 | intro s hs |
| 4176 | have he : z + t • v + s • u = z + s • u + t • v := by abel |
| 4177 | rw [he] |
| 4178 | exact C.inPatch i hi j hj s hs t ht |
| 4179 | rw [C.horizontalTransport_eq_of_inPatch hp hhol i hi j hj.le (C.chart i j) (hph _ ⟨le_rfl, hjm⟩), |
| 4180 | C.horizontalTransport_eq_of_inPatch hp hhol i hi (j + 1) (Nat.succ_le_iff.mpr hj) |
| 4181 | (C.chart i j) (hph _ ⟨hjm, le_rfl⟩), |
| 4182 | C.verticalTransport_eq_of_inPatch hp hhol (i + 1) (Nat.succ_le_iff.mpr hi) j hj |
| 4183 | (C.chart i j) (C.inPatch i hi j hj _ ⟨him, le_rfl⟩), |
| 4184 | C.verticalTransport_eq_of_inPatch hp hhol i hi.le j hj |
| 4185 | (C.chart i j) (C.inPatch i hi j hj _ ⟨le_rfl, him⟩)] |
| 4186 | exact projectiveCurvatureRectangle_holonomy p hp hhol (C.chart i j) z u v him hjm (C.inPatch i hi j hj) |
| 4187 | |
| 4188 | theorem horizontalTransport_periodic (hv : ∀ w, p (w + v) = p w) (i : ℕ) (hi : i < n) : |
| 4189 | C.horizontalTransport i n = C.horizontalTransport i 0 := by |
| 4190 | have hzero : OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n 0 = 0 := by simp [OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint] |
| 4191 | have hone : OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n n = 1 := by simp [OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint, C.positive.ne'] |
| 4192 | have hbase (s : ℝ) (hs : s ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1))) : |
| 4193 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch (C.chart i 0) (p (z + s • u)) := by |
| 4194 | have hm := gridPoint_mono n (Nat.zero_le 1) |
| 4195 | have h := C.inPatch i hi 0 C.positive s hs (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n 0) ⟨le_rfl, hm⟩ |
| 4196 | simpa only [hzero, zero_smul, add_zero] using h |
| 4197 | have hb : ∀ s ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)), |
| 4198 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch (C.chart i 0) (p (z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n 0 • v + s • u)) := by |
| 4199 | simpa only [hzero, zero_smul, add_zero] using hbase |
| 4200 | have ht : ∀ s ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)), |
| 4201 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch (C.chart i 0) (p (z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n n • v + s • u)) := by |
| 4202 | intro s hs |
| 4203 | rw [hone, one_smul, show z + v + s • u = (z + s • u) + v by abel, hv] |
| 4204 | exact hbase s hs |
| 4205 | rw [C.horizontalTransport_eq_of_inPatch hp hhol i hi n le_rfl (C.chart i 0) ht, |
| 4206 | C.horizontalTransport_eq_of_inPatch hp hhol i hi 0 (Nat.zero_le n) (C.chart i 0) hb] |
| 4207 | simp only [hzero, hone, zero_smul, one_smul, add_zero] |
| 4208 | exact normalizedProjectiveEdgeTransport_periodic p v hv _ z u _ _ |
| 4209 | |
| 4210 | theorem verticalTransport_periodic (hu : ∀ w, p (w + u) = p w) (j : ℕ) (hj : j < n) : |
| 4211 | C.verticalTransport n j = C.verticalTransport 0 j := by |
| 4212 | have hzero : OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n 0 = 0 := by simp [OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint] |
| 4213 | have hone : OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n n = 1 := by simp [OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint, C.positive.ne'] |
| 4214 | have hbase (t : ℝ) (ht : t ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1))) : |
| 4215 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch (C.chart 0 j) (p (z + t • v)) := by |
| 4216 | have hm := gridPoint_mono n (Nat.zero_le 1) |
| 4217 | have h := C.inPatch 0 C.positive j hj (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n 0) ⟨le_rfl, hm⟩ t ht |
| 4218 | simpa only [hzero, zero_smul, add_zero] using h |
| 4219 | have hl : ∀ t ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1)), |
| 4220 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch (C.chart 0 j) (p (z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n 0 • u + t • v)) := by |
| 4221 | simpa only [hzero, zero_smul, add_zero] using hbase |
| 4222 | have hr : ∀ t ∈ Icc (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1)), |
| 4223 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch (C.chart 0 j) (p (z + OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n n • u + t • v)) := by |
| 4224 | intro t ht |
| 4225 | rw [hone, one_smul, show z + u + t • v = (z + t • v) + u by abel, hu] |
| 4226 | exact hbase t ht |
| 4227 | rw [C.verticalTransport_eq_of_inPatch hp hhol n le_rfl j hj (C.chart 0 j) hr, |
| 4228 | C.verticalTransport_eq_of_inPatch hp hhol 0 (Nat.zero_le n) j hj (C.chart 0 j) hl] |
| 4229 | simp only [hzero, hone, zero_smul, one_smul, add_zero] |
| 4230 | exact normalizedProjectiveEdgeTransport_periodic p u hu _ z v _ _ |
| 4231 | |
| 4232 | end ProjectiveGridCover |
| 4233 | |
| 4234 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 4235 | [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] [FiniteDimensional ℂ V] |
| 4236 | {ι : Type*} [Fintype ι] (p : V → Projectivization ℂ (ι → ℂ)) (hp : Continuous p) |
| 4237 | (hhol : ∀ z, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (p z) ∧ DifferentiableAt ℂ (projectivePullbackChart p i) z) |
| 4238 | |
| 4239 | include hp hhol |
| 4240 | |
| 4241 | theorem projectiveCurvatureRectangle_exp_eq_one (z u v : V) |
| 4242 | (hu : ∀ w, p (w + u) = p w) (hv : ∀ w, p (w + v) = p w) : |
| 4243 | Complex.exp ((2 * Real.pi * projectiveCurvatureRectangle p z u v 0 1 0 1 : ℝ) * Complex.I) = 1 := by |
| 4244 | obtain ⟨n, ⟨C⟩⟩ := exists_projectiveGridCover p hp z u v |
| 4245 | let R (i j : ℕ) := projectiveCurvatureRectangle p z u v |
| 4246 | (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n i) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (i + 1)) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n j) (OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.gridPoint n (j + 1)) |
| 4247 | have hprod : (∏ i ∈ Finset.range n, ∏ j ∈ Finset.range n, |
| 4248 | Complex.exp ((2 * Real.pi * R i j : ℝ) * Complex.I)) = 1 := by |
| 4249 | calc |
| 4250 | _ = ∏ i ∈ Finset.range n, ∏ j ∈ Finset.range n, |
| 4251 | C.horizontalTransport i j * C.verticalTransport (i + 1) j / |
| 4252 | (C.horizontalTransport i (j + 1) * C.verticalTransport i j) := by |
| 4253 | apply Finset.prod_congr rfl |
| 4254 | intro i hi |
| 4255 | apply Finset.prod_congr rfl |
| 4256 | intro j hj |
| 4257 | exact C.cell_holonomy hp hhol i (Finset.mem_range.mp hi) j (Finset.mem_range.mp hj) |
| 4258 | _ = 1 := complex_grid_boundary_cancel C.horizontalTransport C.verticalTransport n |
| 4259 | C.horizontalTransport_ne_zero C.verticalTransport_ne_zero |
| 4260 | (C.horizontalTransport_periodic hp hhol hv) (C.verticalTransport_periodic hp hhol hu) |
| 4261 | have hmap : Continuous (fun q : ℝ × ℝ => z + q.1 • u + q.2 • v) := by fun_prop |
| 4262 | have hc : Continuous (fun q : ℝ × ℝ => (projectiveFubiniStudy p (z + q.1 • u + q.2 • v) u v).im) := |
| 4263 | Complex.continuous_im.comp ((projectiveFubiniStudy_continuous p hp hhol u v).comp hmap) |
| 4264 | have hsum : (∑ i ∈ Finset.range n, ∑ j ∈ Finset.range n, R i j) = |
| 4265 | projectiveCurvatureRectangle p z u v 0 1 0 1 := by |
| 4266 | exact rectangle_integral_grid_sum n C.positive hc.continuousOn |
| 4267 | have hexp : Complex.exp ((2 * Real.pi * (∑ i ∈ Finset.range n, ∑ j ∈ Finset.range n, R i j) : ℝ) * Complex.I) = |
| 4268 | ∏ i ∈ Finset.range n, ∏ j ∈ Finset.range n, Complex.exp ((2 * Real.pi * R i j : ℝ) * Complex.I) := by |
| 4269 | simp only [Finset.mul_sum, Complex.ofReal_sum, Finset.sum_mul, Complex.exp_sum] |
| 4270 | rw [← hsum, hexp, hprod] |
| 4271 | |
| 4272 | /-- Every lattice parallelogram has an integer period of the pulled-back |
| 4273 | normalized projective curvature. The proof uses local Stokes and edge cancellation. -/ |
| 4274 | theorem projectiveCurvatureRectangle_integral (z u v : V) |
| 4275 | (hu : ∀ w, p (w + u) = p w) (hv : ∀ w, p (w + v) = p w) : |
| 4276 | ∃ m : ℤ, projectiveCurvatureRectangle p z u v 0 1 0 1 = (m : ℝ) := by |
| 4277 | obtain ⟨m, hm⟩ := Complex.exp_eq_one_iff.mp (projectiveCurvatureRectangle_exp_eq_one p hp hhol z u v hu hv) |
| 4278 | refine ⟨m, ?_⟩ |
| 4279 | have him := congrArg Complex.im hm |
| 4280 | have h2r : (2 : ℂ).re = 2 := rfl |
| 4281 | have h2i : (2 : ℂ).im = 0 := rfl |
| 4282 | simp only [Complex.mul_im, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, |
| 4283 | Complex.intCast_re, Complex.intCast_im, Complex.I_re, Complex.I_im, |
| 4284 | zero_mul, mul_zero, mul_one, add_zero, sub_zero, h2r, h2i] at him |
| 4285 | nlinarith [Real.pi_pos] |
| 4286 | |
| 4287 | end |
| 4288 | |
| 4289 | section |
| 4290 | open _root_.MeasureTheory Set Filter _root_.Topology |
| 4291 | |
| 4292 | theorem continuous_integer_valued_constant {T : Type*} [TopologicalSpace T] |
| 4293 | [PreconnectedSpace T] [Nonempty T] {P : T → ℝ} (hP : Continuous P) |
| 4294 | (hInt : ∀ q, ∃ m : ℤ, P q = (m : ℝ)) : ∃ m : ℤ, ∀ q, P q = (m : ℝ) := by |
| 4295 | choose m hm using hInt |
| 4296 | have hmc : Continuous m := Real.isClosedEmbedding_intCast.isEmbedding.isInducing.continuous_iff.mpr (by |
| 4297 | change Continuous (fun q => (m q : ℝ)) |
| 4298 | exact hP.congr hm) |
| 4299 | let q₀ : T := Classical.arbitrary T |
| 4300 | refine ⟨m q₀, fun q => ?_⟩ |
| 4301 | rw [hm q, (inferInstance : PreconnectedSpace T).constant hmc (x := q) (y := q₀)] |
| 4302 | |
| 4303 | theorem integral_intervalIntegral_swap_compact {T : Type*} [TopologicalSpace T] |
| 4304 | [CompactSpace T] [T2Space T] [MeasurableSpace T] [BorelSpace T] |
| 4305 | (μ : Measure T) [IsFiniteMeasure μ] {g : T → ℝ → ℝ} {a b : ℝ} |
| 4306 | (hab : a ≤ b) (hg : Continuous g.uncurry) : |
| 4307 | (∫ q, (∫ t in a..b, g q t) ∂μ) = ∫ t in a..b, ∫ q, g q t ∂μ := by |
| 4308 | have hi₀ : IntegrableOn g.uncurry (univ ×ˢ Icc a b) (μ.prod volume) := |
| 4309 | hg.continuousOn.integrableOn_compact (isCompact_univ.prod isCompact_Icc) |
| 4310 | have hi : Integrable g.uncurry (μ.prod (volume.restrict (Ioc a b))) := by |
| 4311 | have hi₁ := hi₀.mono_set (Set.prod_mono Set.Subset.rfl Ioc_subset_Icc_self) |
| 4312 | simpa only [IntegrableOn, ← Measure.prod_restrict, Measure.restrict_univ] using hi₁ |
| 4313 | simpa only [intervalIntegral.integral_of_le hab] using integral_integral_swap hi |
| 4314 | |
| 4315 | variable {T : Type*} [AddCommGroup T] [TopologicalSpace T] [IsTopologicalAddGroup T] |
| 4316 | [CompactSpace T] [T2Space T] [MeasurableSpace T] [BorelSpace T] |
| 4317 | (μ : Measure T) [IsProbabilityMeasure μ] [μ.IsAddLeftInvariant] |
| 4318 | (k : T → ℝ) (hk : Continuous k) (A B : ℝ → T) (hA : Continuous A) (hB : Continuous B) |
| 4319 | |
| 4320 | def translatedRectangleAverage (q : T) : ℝ := |
| 4321 | ∫ s in (0 : ℝ)..1, ∫ t in (0 : ℝ)..1, k (A s + B t + q) |
| 4322 | |
| 4323 | include hk hA hB |
| 4324 | |
| 4325 | omit [CompactSpace T] [T2Space T] [MeasurableSpace T] [BorelSpace T] in |
| 4326 | theorem translatedRectangleAverage_continuous : Continuous (translatedRectangleAverage k A B) := by |
| 4327 | have h1 : Continuous (fun r : (T × ℝ) × ℝ => k (A r.1.2 + B r.2 + r.1.1)) := by fun_prop |
| 4328 | have h2 : Continuous (fun q : T × ℝ => ∫ t in (0 : ℝ)..1, k (A q.2 + B t + q.1)) := |
| 4329 | intervalIntegral.continuous_parametric_intervalIntegral_of_continuous' h1 _ _ |
| 4330 | exact intervalIntegral.continuous_parametric_intervalIntegral_of_continuous' h2 _ _ |
| 4331 | |
| 4332 | theorem integral_translatedRectangleAverage : |
| 4333 | (∫ q, translatedRectangleAverage k A B q ∂μ) = ∫ q, k q ∂μ := by |
| 4334 | have h1 : Continuous (fun r : (T × ℝ) × ℝ => k (A r.1.2 + B r.2 + r.1.1)) := by fun_prop |
| 4335 | have h2 : Continuous (fun q : T × ℝ => ∫ t in (0 : ℝ)..1, k (A q.2 + B t + q.1)) := |
| 4336 | intervalIntegral.continuous_parametric_intervalIntegral_of_continuous' h1 _ _ |
| 4337 | have h3 (s : ℝ) : Continuous (fun q : T × ℝ => k (A s + B q.2 + q.1)) := by fun_prop |
| 4338 | unfold translatedRectangleAverage |
| 4339 | rw [integral_intervalIntegral_swap_compact μ |
| 4340 | (g := fun q s => ∫ t in (0 : ℝ)..1, k (A s + B t + q)) (by norm_num : (0 : ℝ) ≤ 1) h2] |
| 4341 | calc |
| 4342 | _ = ∫ s in (0 : ℝ)..1, ∫ t in (0 : ℝ)..1, ∫ q, k (A s + B t + q) ∂μ := by |
| 4343 | apply intervalIntegral.integral_congr |
| 4344 | intro s _ |
| 4345 | exact integral_intervalIntegral_swap_compact μ (by norm_num) (h3 s) |
| 4346 | _ = _ := by |
| 4347 | simp_rw [integral_add_left_eq_self (μ := μ) k] |
| 4348 | simp |
| 4349 | |
| 4350 | theorem integral_integer_of_translatedRectangleAverage [PreconnectedSpace T] |
| 4351 | (hInt : ∀ q, ∃ m : ℤ, translatedRectangleAverage k A B q = (m : ℝ)) : |
| 4352 | ∃ m : ℤ, (∫ q, k q ∂μ) = (m : ℝ) := by |
| 4353 | obtain ⟨m, hm⟩ := continuous_integer_valued_constant |
| 4354 | (translatedRectangleAverage_continuous k hk A B hA hB) hInt |
| 4355 | refine ⟨m, ?_⟩ |
| 4356 | rw [← integral_translatedRectangleAverage μ k hk A B hA hB] |
| 4357 | simp_rw [hm] |
| 4358 | simp |
| 4359 | |
| 4360 | end |
| 4361 | |
| 4362 | open _root_.MeasureTheory OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 4363 | |
| 4364 | section IntegralAverage |
| 4365 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 4366 | [NormedSpace ℝ V] [IsScalarTower ℝ ℂ V] [FiniteDimensional ℂ V] |
| 4367 | (Λ : AddSubgroup V) [DiscreteTopology Λ] [CompactSpace (V ⧸ Λ)] |
| 4368 | [MeasurableSpace (V ⧸ Λ)] [BorelSpace (V ⧸ Λ)] {ι : Type*} [Fintype ι] |
| 4369 | (f : V ⧸ Λ → Projectivization ℂ (ι → ℂ)) (hf : Continuous f) |
| 4370 | (hhol : ∀ z : V, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f (QuotientAddGroup.mk z)) ∧ |
| 4371 | DifferentiableAt ℂ (fun w : V => AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk w))) z) |
| 4372 | |
| 4373 | theorem averagedProjectiveForm_integral (u : V) (hu : u ∈ Λ) (v : V) (hv : v ∈ Λ) : |
| 4374 | ∃ m : ℤ, (averagedProjectiveForm Λ f hf hhol u v).im = (m : ℝ) := by |
| 4375 | let : ConnectedSpace (V ⧸ Λ) := |
| 4376 | (QuotientAddGroup.mk_surjective : Function.Surjective (QuotientAddGroup.mk : V → V ⧸ Λ)).connectedSpace |
| 4377 | QuotientAddGroup.continuous_mk |
| 4378 | let k : V ⧸ Λ → ℝ := fun q => (torusFubiniStudy Λ f q u v).im |
| 4379 | let A : ℝ → V ⧸ Λ := fun s => QuotientAddGroup.mk (s • u) |
| 4380 | let B : ℝ → V ⧸ Λ := fun t => QuotientAddGroup.mk (t • v) |
| 4381 | have hk : Continuous k := Complex.continuous_im.comp (torusFubiniStudy_continuous Λ f hf hhol u v) |
| 4382 | have hA : Continuous A := QuotientAddGroup.continuous_mk.comp (continuous_id.smul continuous_const) |
| 4383 | have hB : Continuous B := QuotientAddGroup.continuous_mk.comp (continuous_id.smul continuous_const) |
| 4384 | let p : V → Projectivization ℂ (ι → ℂ) := fun w => f (QuotientAddGroup.mk w) |
| 4385 | have hp : Continuous p := hf.comp QuotientAddGroup.continuous_mk |
| 4386 | have hpu (w : V) : p (w + u) = p w := by |
| 4387 | apply congrArg f |
| 4388 | apply QuotientAddGroup.eq_iff_sub_mem.mpr |
| 4389 | simpa only [add_sub_cancel_left] using hu |
| 4390 | have hpv (w : V) : p (w + v) = p w := by |
| 4391 | apply congrArg f |
| 4392 | apply QuotientAddGroup.eq_iff_sub_mem.mpr |
| 4393 | simpa only [add_sub_cancel_left] using hv |
| 4394 | have hInt (q : V ⧸ Λ) : ∃ m : ℤ, translatedRectangleAverage k A B q = (m : ℝ) := by |
| 4395 | let z := Quotient.out q |
| 4396 | obtain ⟨m, hm⟩ := projectiveCurvatureRectangle_integral p hp hhol z u v hpu hpv |
| 4397 | refine ⟨m, ?_⟩ |
| 4398 | have he : translatedRectangleAverage k A B q = projectiveCurvatureRectangle p z u v 0 1 0 1 := by |
| 4399 | apply intervalIntegral.integral_congr |
| 4400 | intro s _ |
| 4401 | apply intervalIntegral.integral_congr |
| 4402 | intro t _ |
| 4403 | have hq : A s + B t + q = (QuotientAddGroup.mk (z + s • u + t • v) : V ⧸ Λ) := by |
| 4404 | have hout : (QuotientAddGroup.mk z : V ⧸ Λ) = q := Quotient.out_eq q |
| 4405 | calc |
| 4406 | _ = QuotientAddGroup.mk (s • u + t • v + z) := by rw [← hout]; rfl |
| 4407 | _ = _ := congrArg QuotientAddGroup.mk (by abel) |
| 4408 | change (torusFubiniStudy Λ f (A s + B t + q) u v).im = |
| 4409 | (projectiveFubiniStudy p (z + s • u + t • v) u v).im |
| 4410 | rw [hq] |
| 4411 | exact congrArg (fun H : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ => (H u v).im) |
| 4412 | (torusFubiniStudy_lift Λ f hf hhol _) |
| 4413 | exact he.trans hm |
| 4414 | obtain ⟨m, hm⟩ := integral_integer_of_translatedRectangleAverage |
| 4415 | (normalizedAddHaar (V ⧸ Λ)) k hk A B hA hB hInt |
| 4416 | refine ⟨m, ?_⟩ |
| 4417 | rw [averagedProjectiveForm_apply] |
| 4418 | have him : (∫ q, torusFubiniStudy Λ f q u v ∂ normalizedAddHaar (V ⧸ Λ)).im = |
| 4419 | ∫ q, k q ∂ normalizedAddHaar (V ⧸ Λ) := |
| 4420 | (integral_im (torusFubiniStudy_integrable Λ f hf hhol u v)).symm |
| 4421 | exact him.trans hm |
| 4422 | |
| 4423 | end IntegralAverage |
| 4424 | |
| 4425 | /-- A closed holomorphic projective immersion yields the positive integral |
| 4426 | Hermitian form required in RiemannProjectivity, by averaging its projective curvature. -/ |
| 4427 | theorem positive_integral_hermitian_of_projective_embedding |
| 4428 | {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] [FiniteDimensional ℂ V] |
| 4429 | (Λ : AddSubgroup V) [DiscreteTopology Λ] [CompactSpace (V ⧸ Λ)] |
| 4430 | (n : ℕ) (f : V ⧸ Λ → Projectivization ℂ (Fin (n + 1) → ℂ)) |
| 4431 | (hf : Topology.IsClosedEmbedding f) |
| 4432 | (himm : ∀ z : V, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f (QuotientAddGroup.mk z)) ∧ |
| 4433 | DifferentiableAt ℂ (fun w : V => AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk w))) z ∧ |
| 4434 | Function.Injective (fderiv ℂ (fun w : V => AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk w))) z)) : |
| 4435 | ∃ H : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ, |
| 4436 | (∀ u v : V, H v u = star (H u v)) ∧ |
| 4437 | (∀ u : V, u ≠ 0 → 0 < (H u u).re) ∧ |
| 4438 | (∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) := by |
| 4439 | let : NormedSpace ℝ V := NormedSpace.complexToReal |
| 4440 | let : IsScalarTower ℝ ℂ V := inferInstance |
| 4441 | borelize (V ⧸ Λ) |
| 4442 | have hhol : ∀ z : V, ∃ i, AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f (QuotientAddGroup.mk z)) ∧ |
| 4443 | DifferentiableAt ℂ (fun w : V => AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk w))) z := by |
| 4444 | intro z |
| 4445 | obtain ⟨i, hi, hd, _⟩ := himm z |
| 4446 | exact ⟨i, hi, hd⟩ |
| 4447 | refine ⟨averagedProjectiveForm Λ f hf.continuous hhol, |
| 4448 | averagedProjectiveForm_symm Λ f hf.continuous hhol, |
| 4449 | averagedProjectiveForm_positive Λ f hf.continuous hhol himm, ?_⟩ |
| 4450 | exact averagedProjectiveForm_integral Λ f hf.continuous hhol |
| 4451 | |
| 4452 | end Construction |
| 4453 | |
| 4454 | open OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 4455 | variable (V : Type*) [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 4456 | |
| 4457 | /-- Existence of a closed holomorphic embedding of `V / Λ` |
| 4458 | into finite-dimensional complex projective space. -/ |
| 4459 | def IsProjectiveComplexTorus (Λ : AddSubgroup V) : Prop := |
| 4460 | ∃ (n : ℕ) (f : V ⧸ Λ → Projectivization ℂ (Fin (n + 1) → ℂ)), |
| 4461 | Topology.IsClosedEmbedding f ∧ |
| 4462 | ∀ z : V, ∃ i : Fin (n + 1), |
| 4463 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f (QuotientAddGroup.mk z)) ∧ |
| 4464 | DifferentiableAt ℂ |
| 4465 | (fun w : V => AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk w))) z ∧ |
| 4466 | Function.Injective (fderiv ℂ |
| 4467 | (fun w : V => AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f (QuotientAddGroup.mk w))) z) |
| 4468 | |
| 4469 | /-- The Riemann projectivity criterion, with precisely the hypotheses and |
| 4470 | conclusion of the committed RiemannProjectivity specification. -/ |
| 4471 | theorem riemann_projectivity_criterion [FiniteDimensional ℂ V] |
| 4472 | (Λ : AddSubgroup V) [DiscreteTopology Λ] [CompactSpace (V ⧸ Λ)] : |
| 4473 | IsProjectiveComplexTorus V Λ ↔ |
| 4474 | ∃ H : V →ₗ⋆[ℂ] V →ₗ[ℂ] ℂ, |
| 4475 | (∀ u v : V, H v u = star (H u v)) ∧ |
| 4476 | (∀ u : V, u ≠ 0 → 0 < (H u u).re) ∧ |
| 4477 | (∀ u ∈ Λ, ∀ v ∈ Λ, ∃ m : ℤ, (H u v).im = (m : ℝ)) := by |
| 4478 | constructor |
| 4479 | · rintro ⟨n, f, hf, himm⟩ |
| 4480 | exact OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.positive_integral_hermitian_of_projective_embedding Λ n f hf himm |
| 4481 | · rintro ⟨H, hsym, hpos, hint⟩ |
| 4482 | exact OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.projective_embedding_of_positive_integral_hermitian H Λ hsym hpos hint |
| 4483 | |
| 4484 | end |
| 4485 | |
| 4486 | end OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion |