Download data/lean/OAI/AlgebraicGeometry/ComplexMultiplication/CMSiegelPhase.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.75 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/ComplexMultiplication/CMSiegelPhase.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/ComplexMultiplication/CMSiegelPhase.lean
-
curl -L -o CMSiegelPhase.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/ComplexMultiplication/CMSiegelPhase.lean
4.75 kB
| import Mathlib.Analysis.Normed.Module.FiniteDimension | |
| import Mathlib.Analysis.SpecialFunctions.Complex.Analytic | |
| import Mathlib.Topology.Order.Compact | |
| import Mathlib.Tactic.FieldSimp | |
| import Mathlib.Tactic.Linarith | |
| import Mathlib.Tactic.Ring | |
| /-! # CM Siegel Phase -/ | |
| namespace OAI.AlgebraicGeometry.ComplexMultiplication.CMSiegelPhase.CM | |
| noncomputable section | |
| /-! | |
| # Positive complex quadratic phases in real position space | |
| A symmetric complex bilinear form on a finite-dimensional real position | |
| space, whose imaginary part is positive definite, is the basis-independent | |
| form of a Siegel period matrix. Its Gaussian is the actual expression | |
| `exp (Ο i B(x,x))`. Positivity implies a proved uniform Gaussian bound. | |
| -/ | |
| open Filter _root_.Topology _root_.Metric | |
| variable (V : Type*) [NormedAddCommGroup V] [NormedSpace β V] | |
| structure SiegelPhase where | |
| form : V βL[β] V βL[β] β | |
| symmetric : β x y, form x y = form y x | |
| positive : β x : V, x β 0 β 0 < (form x x).im | |
| namespace SiegelPhase | |
| variable {V} (Z : SiegelPhase V) | |
| def imaginaryQuadratic (x : V) : β := (Z.form x x).im | |
| theorem imaginaryQuadratic_zero : Z.imaginaryQuadratic 0 = 0 := by | |
| simp [SiegelPhase.imaginaryQuadratic] | |
| theorem imaginaryQuadratic_smul (r : β) (x : V) : | |
| Z.imaginaryQuadratic (r β’ x) = r ^ 2 * Z.imaginaryQuadratic x := by | |
| simp only [SiegelPhase.imaginaryQuadratic, map_smul, smul_apply, | |
| Complex.real_smul, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, | |
| zero_mul, add_zero] | |
| ring | |
| theorem imaginaryQuadratic_continuous : Continuous Z.imaginaryQuadratic := | |
| Complex.continuous_im.comp (Z.form.continuous.clm_apply continuous_id) | |
| theorem imaginaryQuadratic_nonneg (x : V) : 0 β€ Z.imaginaryQuadratic x := by | |
| by_cases hx : x = 0 | |
| Β· rw [hx, Z.imaginaryQuadratic_zero] | |
| Β· exact (Z.positive x hx).le | |
| /-- Compactness of the unit sphere supplies a positive quadratic lower | |
| bound, including the zero-dimensional position space. -/ | |
| theorem exists_lower_bound [FiniteDimensional β V] : | |
| β c : β, 0 < c β§ β x : V, c * βxβ ^ 2 β€ Z.imaginaryQuadratic x := by | |
| rcases subsingleton_or_nontrivial V with hV | hV | |
| Β· exact β¨1, zero_lt_one, fun x => by | |
| rw [Subsingleton.elim x 0, norm_zero, zero_pow (by decide), mul_zero, | |
| Z.imaginaryQuadratic_zero]β© | |
| Β· obtain β¨y, hy, hminβ© := (isCompact_sphere (0 : V) 1).exists_isMinOn | |
| (NormedSpace.sphere_nonempty.mpr (by norm_num : (0 : β) β€ 1)) | |
| Z.imaginaryQuadratic_continuous.continuousOn | |
| have hyn : βyβ = 1 := by simpa only [mem_sphere, dist_zero_right] using hy | |
| have hy0 : y β 0 := by intro h; simp [h] at hyn | |
| refine β¨Z.imaginaryQuadratic y, Z.positive y hy0, fun x => ?_β© | |
| by_cases hx : x = 0 | |
| Β· simp only [hx, norm_zero, ne_eq, OfNat.ofNat_ne_zero, not_false_eq_true, | |
| zero_pow, mul_zero, Z.imaginaryQuadratic_zero, le_refl] | |
| Β· have hxn : βxβ β 0 := norm_ne_zero_iff.mpr hx | |
| have hunit : β(βxββ»ΒΉ : β) β’ xβ = 1 := by | |
| rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg (inv_nonneg.mpr (norm_nonneg x)), | |
| inv_mul_cancelβ hxn] | |
| have hb := hmin (show (βxββ»ΒΉ : β) β’ x β sphere (0 : V) 1 from by | |
| simpa only [mem_sphere, dist_zero_right] using hunit) | |
| have hb' := mul_le_mul_of_nonneg_right hb (sq_nonneg βxβ) | |
| rw [Z.imaginaryQuadratic_smul] at hb' | |
| have heq : (βxββ»ΒΉ ^ 2 * Z.imaginaryQuadratic x) * βxβ ^ 2 = | |
| Z.imaginaryQuadratic x := by field_simp | |
| rwa [heq] at hb' | |
| variable [FiniteDimensional β V] | |
| def lowerBound : β := Z.exists_lower_bound.choose | |
| theorem lowerBound_pos : 0 < Z.lowerBound := Z.exists_lower_bound.choose_spec.1 | |
| theorem imaginaryQuadratic_lower_bound (x : V) : | |
| Z.lowerBound * βxβ ^ 2 β€ Z.imaginaryQuadratic x := Z.exists_lower_bound.choose_spec.2 x | |
| def gaussianWeight (x : V) : β := Complex.exp ((Real.pi : β) * Complex.I * Z.form x x) | |
| omit [FiniteDimensional β V] in | |
| theorem gaussianWeight_ne_zero (x : V) : Z.gaussianWeight x β 0 := Complex.exp_ne_zero _ | |
| omit [FiniteDimensional β V] in | |
| theorem gaussianWeight_norm (x : V) : | |
| βZ.gaussianWeight xβ = Real.exp (-Real.pi * Z.imaginaryQuadratic x) := by | |
| rw [SiegelPhase.gaussianWeight, Complex.norm_exp] | |
| congr 1 | |
| simp [SiegelPhase.imaginaryQuadratic, Complex.mul_re, Complex.mul_im] | |
| theorem gaussianWeight_norm_le (x : V) : | |
| βZ.gaussianWeight xβ β€ Real.exp (-(Real.pi * Z.lowerBound) * βxβ ^ 2) := by | |
| rw [Z.gaussianWeight_norm] | |
| apply Real.exp_le_exp.mpr | |
| have h := mul_le_mul_of_nonneg_left (Z.imaginaryQuadratic_lower_bound x) Real.pi_pos.le | |
| nlinarith | |
| end SiegelPhase | |
| end | |
| end OAI.AlgebraicGeometry.ComplexMultiplication.CMSiegelPhase.CM | |