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.RepresentationTheory.Theta.CosetPoisson |
| 2 | import OAI.RepresentationTheory.Theta.CosetTests |
| 3 | import OAI.RepresentationTheory.Theta.AdelicTopology |
| 4 | import OAI.RepresentationTheory.Theta.Generators |
| 5 | |
| 6 | /-! # Poisson Automorphy Gaussian Poisson -/ |
| 7 | |
| 8 | namespace OAI.RepresentationTheory.Theta.PoissonAutomorphyGaussianPoisson.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Adelic Poisson summation and rational theta invariance for the supplied Weil data. -/ |
| 15 | |
| 16 | open scoped Classical |
| 17 | |
| 18 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 19 | {MpR MpF MpA : Type*} [Group MpR] [Group MpF] [Group MpA] |
| 20 | (D : PoissonAutomorphyNormalizationData.WeilData ι MpR MpF MpA) |
| 21 | |
| 22 | theorem theta_weyl_coset (f : PoissonAutomorphyNormalizationData.realSchwartz ι) (n : ℕ) (hn : 0 < n) (a : ι → ℚ) : |
| 23 | PoissonAutomorphyNormalizationData.thetaFunctional (D.rationalAction (Generators.PoissonAutomorphyConstruction.weyl ι) |
| 24 | (PoissonAutomorphyNormalizationData.tensor f (CosetTests.PoissonAutomorphyConstruction.latticeCosetTest (n : ℚ) (by exact_mod_cast hn.ne') (PoissonAutomorphyNormalizationData.finiteDiagonal a)))) = |
| 25 | PoissonAutomorphyNormalizationData.thetaFunctional (PoissonAutomorphyNormalizationData.tensor f (CosetTests.PoissonAutomorphyConstruction.latticeCosetTest (n : ℚ) (by exact_mod_cast hn.ne') (PoissonAutomorphyNormalizationData.finiteDiagonal a))) := by |
| 26 | let φ := CosetTests.PoissonAutomorphyConstruction.latticeCosetTest (n : ℚ) (by exact_mod_cast hn.ne') (PoissonAutomorphyNormalizationData.finiteDiagonal a) |
| 27 | obtain ⟨F, hF⟩ := (PoissonAutomorphyNormalizationData.Construction.realSchwartz_mem_iff f.val).mp f.property |
| 28 | calc |
| 29 | _ = ∑' x : ι → ℚ, PoissonAutomorphyNormalizationData.fourier PoissonAutomorphyNormalizationData.standardRealCharacter MeasureTheory.volume f.val (PoissonAutomorphyNormalizationData.Construction.rationalReal x) * |
| 30 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure φ.val (PoissonAutomorphyNormalizationData.finiteDiagonal x) := by |
| 31 | apply tsum_congr |
| 32 | intro x |
| 33 | exact (D.rational_fourier (Generators.PoissonAutomorphyConstruction.weyl ι) rfl (PoissonAutomorphyNormalizationData.tensor f φ) (PoissonAutomorphyNormalizationData.diagonal x)).trans |
| 34 | (AdelicTopology.PoissonAutomorphyConstruction.adelic_fourier_pureTensor D f φ (PoissonAutomorphyNormalizationData.diagonal x)) |
| 35 | _ = _ := by |
| 36 | change (∑' x : ι → ℚ, PoissonAutomorphyNormalizationData.fourier PoissonAutomorphyNormalizationData.standardRealCharacter MeasureTheory.volume f.val (PoissonAutomorphyNormalizationData.Construction.rationalReal x) * |
| 37 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure |
| 38 | (PoissonAutomorphyFiniteFourier.Construction.latticeCosetIndicator (n : ℚ) (by exact_mod_cast hn.ne') (PoissonAutomorphyNormalizationData.finiteDiagonal a)) (PoissonAutomorphyNormalizationData.finiteDiagonal x)) = |
| 39 | ∑' x : ι → ℚ, f.val (PoissonAutomorphyNormalizationData.Construction.rationalReal x) * |
| 40 | PoissonAutomorphyFiniteFourier.Construction.latticeCosetIndicator (n : ℚ) (by exact_mod_cast hn.ne') (PoissonAutomorphyNormalizationData.finiteDiagonal a) (PoissonAutomorphyNormalizationData.finiteDiagonal x) |
| 41 | rw [hF] |
| 42 | exact (CosetPoisson.AutomorphyConstruction.coset_poisson_summation D n hn a F).symm |
| 43 | |
| 44 | theorem theta_weyl_tensor (f : PoissonAutomorphyNormalizationData.realSchwartz ι) (φ : PoissonAutomorphyNormalizationData.finiteSchwartz ι) : |
| 45 | PoissonAutomorphyNormalizationData.thetaFunctional (D.rationalAction (Generators.PoissonAutomorphyConstruction.weyl ι) (PoissonAutomorphyNormalizationData.tensor f φ)) = PoissonAutomorphyNormalizationData.thetaFunctional (PoissonAutomorphyNormalizationData.tensor f φ) := by |
| 46 | let A : PoissonAutomorphyNormalizationData.finiteSchwartz ι →ₗ[ℂ] ℂ := |
| 47 | (Convergence.PoissonAutomorphyConstruction.thetaLinearFunctional.comp (D.rationalAction (Generators.PoissonAutomorphyConstruction.weyl ι)).toLinearMap).comp (CosetTests.PoissonAutomorphyConstruction.tensorLeft f) |
| 48 | let B : PoissonAutomorphyNormalizationData.finiteSchwartz ι →ₗ[ℂ] ℂ := Convergence.PoissonAutomorphyConstruction.thetaLinearFunctional.comp (CosetTests.PoissonAutomorphyConstruction.tensorLeft f) |
| 49 | change A φ = B φ |
| 50 | obtain ⟨n, hn, s, hφ⟩ := CosetTests.PoissonAutomorphyConstruction.finiteSchwartz_coset_expansion_eq φ |
| 51 | rw [hφ] |
| 52 | simp only [map_sum, map_smul] |
| 53 | apply Finset.sum_congr rfl |
| 54 | intro c _ |
| 55 | congr 1 |
| 56 | exact theta_weyl_coset D f n hn (PoissonAutomorphyFiniteFourier.Construction.finiteQuotientRep (n : ℚ) (by exact_mod_cast hn.ne') c) |
| 57 | |
| 58 | theorem theta_weyl_invariant (f : PoissonAutomorphyNormalizationData.adelicSchwartz ι) : |
| 59 | PoissonAutomorphyNormalizationData.thetaFunctional (D.rationalAction (Generators.PoissonAutomorphyConstruction.weyl ι) f) = PoissonAutomorphyNormalizationData.thetaFunctional f := by |
| 60 | let A : PoissonAutomorphyNormalizationData.adelicSchwartz ι →ₗ[ℂ] ℂ := |
| 61 | Convergence.PoissonAutomorphyConstruction.thetaLinearFunctional.comp (D.rationalAction (Generators.PoissonAutomorphyConstruction.weyl ι)).toLinearMap |
| 62 | let B : PoissonAutomorphyNormalizationData.adelicSchwartz ι →ₗ[ℂ] ℂ := Convergence.PoissonAutomorphyConstruction.thetaLinearFunctional |
| 63 | change A f = B f |
| 64 | rcases f with ⟨f, hf⟩ |
| 65 | induction hf using Submodule.span_induction with |
| 66 | | mem f hf => |
| 67 | obtain ⟨g, φ, rfl⟩ := hf |
| 68 | exact theta_weyl_tensor D g φ |
| 69 | | zero => |
| 70 | change A 0 = B 0 |
| 71 | rw [map_zero, map_zero] |
| 72 | | add f g hf hg ihf ihg => |
| 73 | change A (⟨f, hf⟩ + ⟨g, hg⟩) = B (⟨f, hf⟩ + ⟨g, hg⟩) |
| 74 | rw [map_add, map_add, ihf, ihg] |
| 75 | | smul c f hf ih => |
| 76 | change A (c • ⟨f, hf⟩) = B (c • ⟨f, hf⟩) |
| 77 | rw [map_smul, map_smul, ih] |
| 78 | |
| 79 | theorem adelic_poisson_summation (f : PoissonAutomorphyNormalizationData.adelicSchwartz ι) : |
| 80 | (∑' x : ι → ℚ, PoissonAutomorphyNormalizationData.fourier D.character (PoissonAutomorphyNormalizationData.adelicMeasure D.finiteMeasure) f.val (PoissonAutomorphyNormalizationData.diagonal x)) = |
| 81 | PoissonAutomorphyNormalizationData.thetaFunctional f := by |
| 82 | calc |
| 83 | _ = PoissonAutomorphyNormalizationData.thetaFunctional (D.rationalAction (Generators.PoissonAutomorphyConstruction.weyl ι) f) := by |
| 84 | apply tsum_congr |
| 85 | intro x |
| 86 | exact (D.rational_fourier (Generators.PoissonAutomorphyConstruction.weyl ι) rfl f (PoissonAutomorphyNormalizationData.diagonal x)).symm |
| 87 | _ = _ := theta_weyl_invariant D f |
| 88 | |
| 89 | theorem rational_theta_invariant (γ : PoissonAutomorphyNormalizationData.Sp ι ℚ) (f : PoissonAutomorphyNormalizationData.adelicSchwartz ι) : |
| 90 | PoissonAutomorphyNormalizationData.thetaFunctional (D.rationalAction γ f) = PoissonAutomorphyNormalizationData.thetaFunctional f := |
| 91 | Generators.PoissonAutomorphyConstruction.theta_invariant_of_fourier_summation D (adelic_poisson_summation D) γ f |
| 92 | |
| 93 | end |
| 94 | |
| 95 | section |
| 96 | |
| 97 | /-! Polynomial oscillatory factors preserve the real Schwartz space. -/ |
| 98 | |
| 99 | open scoped Classical |
| 100 | |
| 101 | def phaseExp (t : ℝ) : ℂ := Complex.exp ((t : ℂ) * Complex.I) |
| 102 | |
| 103 | theorem phaseExp_hasDerivAt (t : ℝ) : |
| 104 | HasDerivAt phaseExp (phaseExp t * Complex.I) t := by |
| 105 | have h : HasDerivAt (fun s : ℝ => (s : ℂ) * Complex.I) Complex.I t := by |
| 106 | simpa using ((hasDerivAt_id t).ofReal_comp).mul_const Complex.I |
| 107 | exact h.cexp |
| 108 | |
| 109 | theorem phaseExp_iteratedDeriv (n : ℕ) : |
| 110 | iteratedDeriv n phaseExp = fun t => Complex.I ^ n * phaseExp t := by |
| 111 | induction n with |
| 112 | | zero => simp |
| 113 | | succ n ih => |
| 114 | rw [iteratedDeriv_succ, ih] |
| 115 | funext t |
| 116 | rw [((phaseExp_hasDerivAt t).const_mul (Complex.I ^ n)).deriv] |
| 117 | rw [pow_succ] |
| 118 | ring |
| 119 | |
| 120 | theorem phaseExp_norm (t : ℝ) : ‖phaseExp t‖ = 1 := by |
| 121 | simp [phaseExp, Complex.norm_exp] |
| 122 | |
| 123 | theorem phaseExp_temperate : Function.HasTemperateGrowth phaseExp := by |
| 124 | refine ⟨?_, fun n => ⟨0, 1, fun t => ?_⟩⟩ |
| 125 | · unfold phaseExp |
| 126 | exact (Complex.ofRealCLM.contDiff.mul contDiff_const).cexp |
| 127 | · rw [norm_iteratedFDeriv_eq_norm_iteratedDeriv, phaseExp_iteratedDeriv] |
| 128 | simp [norm_pow, phaseExp_norm] |
| 129 | |
| 130 | variable {ι : Type*} [Fintype ι] |
| 131 | |
| 132 | def realChirpPhase (B : Matrix ι ι ℝ) (p : ι → ℝ) (x : ι → ℝ) : ℝ := |
| 133 | Real.pi * (∑ i, ∑ j, x i * B i j * x j) + 2 * Real.pi * ∑ i, x i * p i |
| 134 | |
| 135 | theorem realChirpPhase_temperate (B : Matrix ι ι ℝ) (p : ι → ℝ) : |
| 136 | Function.HasTemperateGrowth (realChirpPhase B p) := by |
| 137 | have hc (i : ι) : Function.HasTemperateGrowth (fun x : ι → ℝ => x i) := |
| 138 | (ContinuousLinearMap.proj i : (ι → ℝ) →L[ℝ] ℝ).hasTemperateGrowth |
| 139 | have hq : Function.HasTemperateGrowth (fun x : ι → ℝ => ∑ i, ∑ j, x i * B i j * x j) := |
| 140 | .sum (fun i _ => .sum (fun j _ => ((hc i).mul (.const (B i j))).mul (hc j))) |
| 141 | have hp : Function.HasTemperateGrowth (fun x : ι → ℝ => ∑ i, x i * p i) := |
| 142 | .sum (fun i _ => (hc i).mul (.const (p i))) |
| 143 | exact ((Function.HasTemperateGrowth.const Real.pi).mul hq).add |
| 144 | ((Function.HasTemperateGrowth.const (2 * Real.pi)).mul hp) |
| 145 | |
| 146 | def realChirp (B : Matrix ι ι ℝ) (p : ι → ℝ) (x : ι → ℝ) : ℂ := |
| 147 | phaseExp (realChirpPhase B p x) |
| 148 | |
| 149 | theorem realChirp_temperate (B : Matrix ι ι ℝ) (p : ι → ℝ) : |
| 150 | Function.HasTemperateGrowth (realChirp B p) := |
| 151 | phaseExp_temperate.comp (realChirpPhase_temperate B p) |
| 152 | |
| 153 | def chirpSchwartz (B : Matrix ι ι ℝ) (p : ι → ℝ) (f : SchwartzMap (ι → ℝ) ℂ) : |
| 154 | SchwartzMap (ι → ℝ) ℂ := SchwartzMap.smulLeftCLM ℂ (realChirp B p) f |
| 155 | |
| 156 | theorem chirpSchwartz_apply (B : Matrix ι ι ℝ) (p : ι → ℝ) |
| 157 | (f : SchwartzMap (ι → ℝ) ℂ) (x : ι → ℝ) : |
| 158 | chirpSchwartz B p f x = realChirp B p x * f x := by |
| 159 | exact SchwartzMap.smulLeftCLM_apply_apply (realChirp_temperate B p) f x |
| 160 | |
| 161 | end |
| 162 | |
| 163 | section |
| 164 | |
| 165 | /-! Polynomially controlled exponents with bounded real part give temperate factors. -/ |
| 166 | |
| 167 | theorem complex_exp_iteratedFDeriv_norm (n : ℕ) (z : ℂ) : |
| 168 | ‖iteratedFDeriv ℝ n Complex.exp z‖ = Real.exp z.re := by |
| 169 | have hrestrict := (Complex.contDiff_exp (𝕜 := ℂ) (n := n)).contDiffAt.restrictScalars_iteratedFDeriv |
| 170 | (𝕜 := ℝ) (x := z) |
| 171 | rw [← hrestrict] |
| 172 | change ‖(iteratedFDeriv ℂ n Complex.exp z).restrictScalars ℝ‖ = _ |
| 173 | rw [ContinuousMultilinearMap.norm_restrictScalars, norm_iteratedFDeriv_eq_norm_iteratedDeriv] |
| 174 | have hiter : iteratedDeriv n Complex.exp = Complex.exp := by |
| 175 | simpa only [one_mul, one_pow] using iteratedDeriv_cexp_const_mul n 1 |
| 176 | rw [hiter, Complex.norm_exp] |
| 177 | |
| 178 | theorem exp_temperate_of_re_bounded {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 179 | (Q : V → ℂ) (hQ : Function.HasTemperateGrowth Q) |
| 180 | (C : ℝ) (hC : ∀ x, (Q x).re ≤ C) : |
| 181 | Function.HasTemperateGrowth (fun x => Complex.exp (Q x)) := by |
| 182 | let U : Set ℂ := {z | z.re < C + 1} |
| 183 | have hU : IsOpen U := isOpen_lt Complex.continuous_re continuous_const |
| 184 | apply Function.HasTemperateGrowth.comp' (t := U) ?_ hU.uniqueDiffOn |
| 185 | (Complex.contDiff_exp (𝕜 := ℝ)).contDiffOn ?_ hQ |
| 186 | · rintro _ ⟨x, rfl⟩ |
| 187 | exact lt_of_le_of_lt (hC x) (by linarith) |
| 188 | · intro N |
| 189 | refine ⟨0, Real.exp (C + 1), (Real.exp_pos _).le, fun n _ z hz => ?_⟩ |
| 190 | rw [iteratedFDerivWithin_eq_iteratedFDeriv hU.uniqueDiffOn |
| 191 | (Complex.contDiff_exp (𝕜 := ℝ) (n := n)).contDiffAt hz, |
| 192 | complex_exp_iteratedFDeriv_norm] |
| 193 | simpa only [pow_zero, mul_one] using Real.exp_le_exp.mpr hz.le |
| 194 | |
| 195 | theorem real_quadratic_linear_upper (a b : ℝ) (ha : 0 < a) (t : ℝ) : |
| 196 | -a * t ^ 2 + b * t ≤ b ^ 2 / (4 * a) := by |
| 197 | have hid : b ^ 2 / (4 * a) - (-a * t ^ 2 + b * t) = a * (t - b / (2 * a)) ^ 2 := by |
| 198 | field_simp |
| 199 | ring |
| 200 | exact sub_nonneg.mp (hid.symm ▸ mul_nonneg ha.le (sq_nonneg _)) |
| 201 | |
| 202 | end |
| 203 | |
| 204 | section |
| 205 | |
| 206 | /-! Temperate exponents and Gaussian bounds on the Siegel domain. -/ |
| 207 | |
| 208 | open scoped Classical |
| 209 | |
| 210 | variable {ι : Type*} [Fintype ι] |
| 211 | |
| 212 | def gaussianExponent (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) (x : ι → ℝ) : ℂ := |
| 213 | (Real.pi : ℂ) * Complex.I * Z.phase.form x x + |
| 214 | (2 * (Real.pi : ℂ) * Complex.I) * AlgebraicGeometry.ComplexMultiplication.ThetaCoordinates.CM.thetaCoordinatePairing ι x z |
| 215 | |
| 216 | def gaussianFunction (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) (x : ι → ℝ) : ℂ := |
| 217 | Complex.exp (gaussianExponent Z z x) |
| 218 | |
| 219 | theorem gaussianFunction_eq_phase (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) (x : ι → ℝ) : |
| 220 | gaussianFunction Z z x = Z.phase.thetaTerm (AlgebraicGeometry.ComplexMultiplication.ThetaCoordinates.CM.thetaCoordinatePairing ι) x z := rfl |
| 221 | |
| 222 | theorem gaussianExponent_temperate (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) : |
| 223 | Function.HasTemperateGrowth (gaussianExponent Z z) := by |
| 224 | have hquad : Function.HasTemperateGrowth (fun x => Z.phase.form x x) := |
| 225 | Z.phase.form.bilinear_hasTemperateGrowth .id .id |
| 226 | have hc (i : ι) : Function.HasTemperateGrowth (fun x : ι → ℝ => (x i : ℂ)) := |
| 227 | (Complex.ofRealCLM.comp (ContinuousLinearMap.proj i : (ι → ℝ) →L[ℝ] ℝ)).hasTemperateGrowth |
| 228 | have hlin : Function.HasTemperateGrowth (fun x : ι → ℝ => ∑ i, (x i : ℂ) * z i) := |
| 229 | .sum (fun i _ => (hc i).mul (.const (z i))) |
| 230 | unfold gaussianExponent |
| 231 | simp only [AlgebraicGeometry.ComplexMultiplication.ThetaCoordinates.CM.thetaCoordinatePairing_apply] |
| 232 | exact ((Function.HasTemperateGrowth.const ((Real.pi : ℂ) * Complex.I)).mul hquad).add |
| 233 | ((Function.HasTemperateGrowth.const (2 * (Real.pi : ℂ) * Complex.I)).mul hlin) |
| 234 | |
| 235 | theorem gaussianExponent_re_le (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) (x : ι → ℝ) : |
| 236 | (gaussianExponent Z z x).re ≤ -(Real.pi * Z.phase.lowerBound) * ‖x‖ ^ 2 + |
| 237 | (2 * Real.pi * ‖AlgebraicGeometry.ComplexMultiplication.ThetaCoordinates.CM.thetaCoordinatePairing ι‖ * ‖z‖) * ‖x‖ := by |
| 238 | apply Real.exp_le_exp.mp |
| 239 | rw [← Complex.norm_exp] |
| 240 | change ‖Z.phase.thetaTerm (AlgebraicGeometry.ComplexMultiplication.ThetaCoordinates.CM.thetaCoordinatePairing ι) x z‖ ≤ _ |
| 241 | exact Z.phase.thetaTerm_norm_le (AlgebraicGeometry.ComplexMultiplication.ThetaCoordinates.CM.thetaCoordinatePairing ι) ‖z‖ x z le_rfl |
| 242 | |
| 243 | theorem coordinate_sum_sq_le (x : ι → ℝ) : |
| 244 | (∑ i, (x i) ^ 2) ≤ (Fintype.card ι : ℝ) * ‖x‖ ^ 2 := by |
| 245 | calc |
| 246 | _ ≤ ∑ _i : ι, ‖x‖ ^ 2 := by |
| 247 | apply Finset.sum_le_sum |
| 248 | intro i _ |
| 249 | have h := pow_le_pow_left₀ (norm_nonneg (x i)) (norm_le_pi_norm x i) 2 |
| 250 | simpa only [Real.norm_eq_abs, sq_abs] using h |
| 251 | _ = _ := by simp |
| 252 | |
| 253 | def gaussianDamping (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) : ℝ := |
| 254 | Real.sqrt (Z.phase.lowerBound / (2 * ((Fintype.card ι : ℝ) + 1))) |
| 255 | |
| 256 | theorem gaussianDamping_pos (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) : 0 < gaussianDamping Z := by |
| 257 | apply Real.sqrt_pos.mpr |
| 258 | exact div_pos Z.phase.lowerBound_pos (by positivity) |
| 259 | |
| 260 | theorem gaussianDamping_bound (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) : |
| 261 | gaussianDamping Z ^ 2 * (Fintype.card ι : ℝ) ≤ Z.phase.lowerBound / 2 := by |
| 262 | have hden : 0 < 2 * ((Fintype.card ι : ℝ) + 1) := by positivity |
| 263 | have hs : gaussianDamping Z ^ 2 = Z.phase.lowerBound / (2 * ((Fintype.card ι : ℝ) + 1)) := |
| 264 | Real.sq_sqrt (le_of_lt (div_pos Z.phase.lowerBound_pos hden)) |
| 265 | have heq := (eq_div_iff hden.ne').mp hs |
| 266 | nlinarith [sq_nonneg (gaussianDamping Z)] |
| 267 | |
| 268 | def radialExponent (r : ℝ) (x : ι → ℝ) : ℂ := |
| 269 | ((Real.pi * r ^ 2 * (∑ i, x i ^ 2) : ℝ) : ℂ) |
| 270 | |
| 271 | theorem radialExponent_temperate (r : ℝ) : Function.HasTemperateGrowth (radialExponent (ι := ι) r) := by |
| 272 | have hc (i : ι) : Function.HasTemperateGrowth (fun x : ι → ℝ => x i) := |
| 273 | (ContinuousLinearMap.proj i : (ι → ℝ) →L[ℝ] ℝ).hasTemperateGrowth |
| 274 | exact Complex.ofRealCLM.hasTemperateGrowth.comp |
| 275 | ((Function.HasTemperateGrowth.const (Real.pi * r ^ 2)).mul (.sum fun i _ => (hc i).pow 2)) |
| 276 | |
| 277 | theorem gaussianRemainder_re_bounded (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) : |
| 278 | ∃ C : ℝ, ∀ x : ι → ℝ, |
| 279 | (gaussianExponent Z z x + radialExponent (gaussianDamping Z) x).re ≤ C := by |
| 280 | let a := Real.pi * Z.phase.lowerBound / 2 |
| 281 | let b := 2 * Real.pi * ‖AlgebraicGeometry.ComplexMultiplication.ThetaCoordinates.CM.thetaCoordinatePairing ι‖ * ‖z‖ |
| 282 | have ha : 0 < a := div_pos (mul_pos Real.pi_pos Z.phase.lowerBound_pos) (by norm_num) |
| 283 | refine ⟨b ^ 2 / (4 * a), fun x => ?_⟩ |
| 284 | have hrad : Real.pi * gaussianDamping Z ^ 2 * (∑ i, x i ^ 2) ≤ a * ‖x‖ ^ 2 := by |
| 285 | calc |
| 286 | _ ≤ Real.pi * gaussianDamping Z ^ 2 * ((Fintype.card ι : ℝ) * ‖x‖ ^ 2) := |
| 287 | mul_le_mul_of_nonneg_left (coordinate_sum_sq_le x) (by positivity) |
| 288 | _ = (Real.pi * (gaussianDamping Z ^ 2 * (Fintype.card ι : ℝ))) * ‖x‖ ^ 2 := by ring |
| 289 | _ ≤ (Real.pi * (Z.phase.lowerBound / 2)) * ‖x‖ ^ 2 := |
| 290 | mul_le_mul_of_nonneg_right |
| 291 | (mul_le_mul_of_nonneg_left (gaussianDamping_bound Z) Real.pi_pos.le) (sq_nonneg _) |
| 292 | _ = _ := by dsimp [a]; ring |
| 293 | have hQ := gaussianExponent_re_le Z z x |
| 294 | have hb := real_quadratic_linear_upper a b ha ‖x‖ |
| 295 | simp only [Complex.add_re, radialExponent, Complex.ofReal_re] |
| 296 | dsimp [a, b] at * |
| 297 | linarith |
| 298 | |
| 299 | theorem gaussianRemainder_temperate (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) : |
| 300 | Function.HasTemperateGrowth (fun x => Complex.exp |
| 301 | (gaussianExponent Z z x + radialExponent (gaussianDamping Z) x)) := by |
| 302 | obtain ⟨C, hC⟩ := gaussianRemainder_re_bounded Z z |
| 303 | exact exp_temperate_of_re_bounded _ |
| 304 | ((gaussianExponent_temperate Z z).add (radialExponent_temperate (gaussianDamping Z))) C hC |
| 305 | |
| 306 | end |
| 307 | |
| 308 | section |
| 309 | |
| 310 | /-! The full Siegel Gaussian is an actual real Schwartz test function. -/ |
| 311 | |
| 312 | open scoped Classical |
| 313 | |
| 314 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 315 | {MpR MpF MpA : Type*} [Group MpR] [Group MpF] [Group MpA] |
| 316 | (D : PoissonAutomorphyNormalizationData.WeilData ι MpR MpF MpA) |
| 317 | |
| 318 | theorem scaled_vacuum_formula (F : SchwartzMap (ι → ℝ) ℂ) (hF : D.vacuum.val = F) |
| 319 | (r : ℝ) (hr : r ≠ 0) (x : ι → ℝ) : |
| 320 | RealPoisson.AutomorphyConstruction.scaledRealSchwartz r hr F x = Complex.exp (-radialExponent r x) := by |
| 321 | rw [RealPoisson.AutomorphyConstruction.scaledRealSchwartz_apply, ← hF, D.vacuum_eq] |
| 322 | congr 1 |
| 323 | simp only [radialExponent, Pi.smul_apply, smul_eq_mul] |
| 324 | push_cast |
| 325 | simp only [mul_pow, ← Finset.mul_sum] |
| 326 | ring |
| 327 | |
| 328 | include D in |
| 329 | theorem gaussianFunction_mem_realSchwartz (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) : |
| 330 | gaussianFunction Z z ∈ PoissonAutomorphyNormalizationData.realSchwartz ι := by |
| 331 | obtain ⟨F, hF⟩ := (PoissonAutomorphyNormalizationData.Construction.realSchwartz_mem_iff D.vacuum.val).mp D.vacuum.property |
| 332 | let r := gaussianDamping Z |
| 333 | let hr : r ≠ 0 := (gaussianDamping_pos Z).ne' |
| 334 | let R : (ι → ℝ) → ℂ := fun x => Complex.exp (gaussianExponent Z z x + radialExponent r x) |
| 335 | have hR : Function.HasTemperateGrowth R := gaussianRemainder_temperate Z z |
| 336 | let G := SchwartzMap.smulLeftCLM ℂ R (RealPoisson.AutomorphyConstruction.scaledRealSchwartz r hr F) |
| 337 | apply (PoissonAutomorphyNormalizationData.Construction.realSchwartz_mem_iff _).mpr |
| 338 | refine ⟨G, funext fun x => ?_⟩ |
| 339 | dsimp only [G] |
| 340 | rw [SchwartzMap.smulLeftCLM_apply_apply hR, smul_eq_mul, scaled_vacuum_formula D F hF] |
| 341 | dsimp only [R, gaussianFunction] |
| 342 | rw [← Complex.exp_add] |
| 343 | congr 1 |
| 344 | ring |
| 345 | |
| 346 | def gaussianTest (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) : PoissonAutomorphyNormalizationData.realSchwartz ι := |
| 347 | ⟨gaussianFunction Z z, gaussianFunction_mem_realSchwartz D Z z⟩ |
| 348 | |
| 349 | theorem gaussianTest_apply (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) (x : ι → ℝ) : |
| 350 | (gaussianTest D Z z).val x = gaussianFunction Z z x := rfl |
| 351 | |
| 352 | theorem thetaFunctional_gaussian_tensor (φ : PoissonAutomorphyNormalizationData.finiteSchwartz ι) (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) : |
| 353 | PoissonAutomorphyNormalizationData.thetaFunctional (PoissonAutomorphyNormalizationData.tensor (gaussianTest D Z z) φ) = PoissonAutomorphyNormalizationData.theta φ Z z := by |
| 354 | apply tsum_congr |
| 355 | intro x |
| 356 | change gaussianFunction Z z (PoissonAutomorphyNormalizationData.Construction.rationalReal x) * φ.val (PoissonAutomorphyNormalizationData.finiteDiagonal x) = PoissonAutomorphyNormalizationData.thetaTerm φ Z z x |
| 357 | rw [Convergence.PoissonAutomorphyConstruction.thetaTerm_eq_weightedPhase, gaussianFunction_eq_phase] |
| 358 | exact mul_comm _ _ |
| 359 | |
| 360 | end |
| 361 | |
| 362 | /-! Real simultaneous diagonalization of the real and imaginary parts of a Siegel matrix. -/ |
| 363 | |
| 364 | open scoped Classical MatrixOrder |
| 365 | open _root_.Matrix |
| 366 | |
| 367 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 368 | |
| 369 | theorem posDef_real_factorization (Y : Matrix ι ι ℝ) (hY : Y.PosDef) : |
| 370 | ∃ P : Matrix ι ι ℝ, P.det ≠ 0 ∧ P.transpose * P = Y := by |
| 371 | obtain ⟨P, hP⟩ := CStarAlgebra.nonneg_iff_eq_star_mul_self.mp hY.posSemidef.nonneg |
| 372 | have hreal : P.transpose * P = Y := by |
| 373 | simpa only [Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial] using hP.symm |
| 374 | refine ⟨P, ?_, hreal⟩ |
| 375 | intro hz |
| 376 | have h := hY.det_pos |
| 377 | rw [← hreal, Matrix.det_mul, Matrix.det_transpose, hz, mul_zero] at h |
| 378 | exact (lt_irrefl 0) h |
| 379 | |
| 380 | theorem real_pair_diagonalization (X Y : Matrix ι ι ℝ) (hX : X.IsSymm) (hY : Y.PosDef) : |
| 381 | ∃ (L : Matrix ι ι ℝ) (d : ι → ℝ), L.det ≠ 0 ∧ |
| 382 | L.transpose * Y * L = 1 ∧ L.transpose * X * L = Matrix.diagonal d := by |
| 383 | obtain ⟨P, hP, hPY⟩ := posDef_real_factorization Y hY |
| 384 | let C := P⁻¹ |
| 385 | have hPC : P * C = 1 := Matrix.mul_nonsing_inv P (isUnit_iff_ne_zero.mpr hP) |
| 386 | have hCY : C.transpose * Y * C = 1 := by |
| 387 | rw [← hPY] |
| 388 | calc |
| 389 | _ = (P * C).transpose * (P * C) := by simp only [Matrix.transpose_mul, Matrix.mul_assoc] |
| 390 | _ = 1 := by rw [hPC, Matrix.transpose_one, one_mul] |
| 391 | let W := C.transpose * X * C |
| 392 | have hW : W.IsHermitian := by |
| 393 | apply Matrix.isHermitian_iff_isSymm.mpr |
| 394 | change (C.transpose * X * C).transpose = C.transpose * X * C |
| 395 | simp only [Matrix.transpose_mul, Matrix.transpose_transpose, hX.eq, Matrix.mul_assoc] |
| 396 | let U : Matrix ι ι ℝ := hW.eigenvectorUnitary |
| 397 | have hU : U.transpose * U = 1 := by |
| 398 | simpa only [Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial] using |
| 399 | Unitary.coe_star_mul_self hW.eigenvectorUnitary |
| 400 | have hdiag : U.transpose * W * U = Matrix.diagonal hW.eigenvalues := by |
| 401 | simpa only [Unitary.conjStarAlgAut_star_apply, Matrix.star_eq_conjTranspose, |
| 402 | Matrix.conjTranspose_eq_transpose_of_trivial, RCLike.ofReal_real_eq_id, Function.comp_def, id_eq] using |
| 403 | hW.conjStarAlgAut_star_eigenvectorUnitary |
| 404 | refine ⟨C * U, hW.eigenvalues, ?_, ?_, ?_⟩ |
| 405 | · apply Matrix.det_ne_zero_of_left_inverse (A := C * U) (B := U.transpose * P) |
| 406 | calc |
| 407 | _ = U.transpose * (P * C) * U := by simp only [Matrix.mul_assoc] |
| 408 | _ = 1 := by rw [hPC, mul_one, hU] |
| 409 | · calc |
| 410 | _ = U.transpose * (C.transpose * Y * C) * U := by |
| 411 | simp only [Matrix.transpose_mul, Matrix.mul_assoc] |
| 412 | _ = 1 := by rw [hCY, mul_one, hU] |
| 413 | · calc |
| 414 | _ = U.transpose * W * U := by simp only [W, Matrix.transpose_mul, Matrix.mul_assoc] |
| 415 | _ = _ := hdiag |
| 416 | |
| 417 | theorem siegel_real_diagonalization (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) : |
| 418 | ∃ (L : Matrix ι ι ℝ) (d : ι → ℝ), L.det ≠ 0 ∧ |
| 419 | (L.map (algebraMap ℝ ℂ)).transpose * Z.matrix * L.map (algebraMap ℝ ℂ) = |
| 420 | Matrix.diagonal (fun i => (d i : ℂ) + Complex.I) := by |
| 421 | let X : Matrix ι ι ℝ := fun i j => (Z.matrix i j).re |
| 422 | let Y : Matrix ι ι ℝ := fun i j => (Z.matrix i j).im |
| 423 | obtain ⟨L, d, hL, hY, hX⟩ := real_pair_diagonalization X Y |
| 424 | (Z.symmetric.map Complex.re) Z.imaginary_posDef |
| 425 | refine ⟨L, d, hL, ?_⟩ |
| 426 | have hcomplex : Z.matrix = X.map (algebraMap ℝ ℂ) + Complex.I • Y.map (algebraMap ℝ ℂ) := by |
| 427 | ext i j |
| 428 | change Z.matrix i j = ((Z.matrix i j).re : ℂ) + Complex.I * ((Z.matrix i j).im : ℂ) |
| 429 | rw [mul_comm] |
| 430 | exact (Complex.re_add_im _).symm |
| 431 | have hXc : (L.map (algebraMap ℝ ℂ)).transpose * X.map (algebraMap ℝ ℂ) * L.map (algebraMap ℝ ℂ) = |
| 432 | Matrix.diagonal (fun i => (d i : ℂ)) := by |
| 433 | convert! (show (L.transpose * X * L).map (algebraMap ℝ ℂ) = |
| 434 | (Matrix.diagonal d).map (algebraMap ℝ ℂ) from |
| 435 | congrArg (fun A : Matrix ι ι ℝ => A.map (algebraMap ℝ ℂ)) hX) using 1 <;> |
| 436 | simp only [Matrix.map_mul, ← Matrix.transpose_map, Matrix.diagonal_map, map_zero, |
| 437 | RCLike.algebraMap_eq_ofReal] |
| 438 | ext i j |
| 439 | by_cases hij : i = j <;> simp [Matrix.diagonal, hij] |
| 440 | have hYc : (L.map (algebraMap ℝ ℂ)).transpose * Y.map (algebraMap ℝ ℂ) * L.map (algebraMap ℝ ℂ) = 1 := by |
| 441 | simpa only [Matrix.map_mul, ← Matrix.transpose_map, Matrix.map_one, map_zero, map_one] using |
| 442 | congrArg (fun A : Matrix ι ι ℝ => A.map (algebraMap ℝ ℂ)) hY |
| 443 | rw [hcomplex, Matrix.mul_add, Matrix.add_mul, Matrix.mul_smul, Matrix.smul_mul, hXc, hYc] |
| 444 | ext i j |
| 445 | by_cases hij : i = j <;> simp [hij] |
| 446 | |
| 447 | end |
| 448 | |
| 449 | end OAI.RepresentationTheory.Theta.PoissonAutomorphyGaussianPoisson.Construction |