Buckets:
| import Mathlib | |
| import OAI.NumberTheory.CubicGram.ResidueCharacters | |
| import OAI.NumberTheory.CubicGram.LatticePoisson | |
| namespace OAI | |
| /-! Periodic lattice Poisson summation and exact trace frequencies. -/ | |
| section | |
| noncomputable section | |
| open scoped BigOperators FourierTransform SchwartzMap | |
| open Set Filter MeasureTheory Topology | |
| noncomputable section | |
| open scoped BigOperators | |
| open UniqueFactorizationMonoid | |
| attribute [local instance] Classical.propDecidable | |
| namespace CubicFirstMoment | |
| open CubicPoisson | |
| def traceFourierSchwartz (f : π’(β, β)) : π’(β, β) := | |
| SchwartzMap.compCLMOfContinuousLinearEquiv β | |
| (Complex.conjCLE.trans (complexMulEquiv 2 (by norm_num))) (π f) | |
| lemma traceFourierSchwartz_apply (f : π’(β, β)) (w : β) : | |
| traceFourierSchwartz f w = traceFourier f w := by | |
| change (π f) (2 * star w) = _ | |
| rw [SchwartzMap.fourier_coe, Real.fourier_eq, traceFourier] | |
| apply integral_congr_ae | |
| filter_upwards with z | |
| simp only [Circle.smul_def, smul_eq_mul] | |
| congr 2 | |
| simp only [real_inner_eq_re_inner β, RCLike.inner_apply, tracePair, | |
| Complex.star_def, RCLike.re_to_complex, Complex.mul_re, Complex.mul_im, Complex.conj_re, Complex.conj_im, | |
| Complex.re_ofNat, Complex.im_ofNat] | |
| congr 1 | |
| ring | |
| lemma schwartz_summable_eisenstein (f : π’(β, β)) : | |
| Summable (fun a : Eisenstein => f (a : β)) := by | |
| apply coordinatesEquiv.toEquiv.summable_iff.mp | |
| change Summable (fun n : Fin 2 β β€ => f (coordinatesEquiv n : β)) | |
| simpa only [coordinatesEquiv_coe, eisensteinPullback, | |
| SchwartzMap.compCLMOfContinuousLinearEquiv_apply, Function.comp_apply] using | |
| schwartz_summable_integerCoordinates (eisensteinPullback f) | |
| lemma schwartz_summable_eisenstein_coset (f : π’(β, β)) (q : β) (hq : q β 0) (z : β) : | |
| Summable (fun a : Eisenstein => f (z + q * (a : β))) := by | |
| have h := schwartz_summable_eisenstein | |
| (SchwartzMap.compCLMOfContinuousLinearEquiv β (complexMulEquiv q hq) | |
| (f.compSubConstCLM β (-z))) | |
| simpa only [SchwartzMap.compCLMOfContinuousLinearEquiv_apply, Function.comp_apply, | |
| complexMulEquiv_apply, SchwartzMap.compSubConstCLM_apply, sub_neg_eq_add, | |
| add_comm] using h | |
| lemma traceFourier_summable_eisenstein (f : π’(β, β)) (q : β) (hq : q β 0) : | |
| Summable (fun h : Eisenstein => traceFourier f ((h : β) / q)) := by | |
| have h := schwartz_summable_eisenstein_coset | |
| (traceFourierSchwartz f) qβ»ΒΉ (inv_ne_zero hq) 0 | |
| simpa only [traceFourierSchwartz_apply, zero_add, div_eq_mul_inv, mul_comm] using h | |
| lemma traceFourier_phase_summable (f : π’(β, β)) (q : β) (hq : q β 0) (z : β) : | |
| Summable (fun h : Eisenstein => | |
| (Real.fourierChar (tracePair z ((h : β) / q)) : β) * | |
| traceFourier f ((h : β) / q)) := by | |
| apply Summable.of_norm_bounded (traceFourier_summable_eisenstein f q hq).norm | |
| intro h | |
| simp only [norm_mul, Circle.norm_coe, one_mul, le_refl] | |
| end CubicFirstMoment | |
| namespace CubicFirstMoment | |
| def residueCosetMap (c : Eisenstein) (x : Residues c Γ Eisenstein) : Eisenstein := | |
| residueRepresentative c x.1 + c * x.2 | |
| lemma residueCosetMap_mk (c : Eisenstein) (x : Residues c Γ Eisenstein) : | |
| Ideal.Quotient.mk (modulus c) (residueCosetMap c x) = x.1 := by | |
| simp only [residueCosetMap, map_add, map_mul, residueRepresentative_spec] | |
| have h : Ideal.Quotient.mk (modulus c) c = 0 := by | |
| rw [Ideal.Quotient.eq_zero_iff_mem] | |
| exact Ideal.subset_span (Set.mem_singleton c) | |
| simp [h] | |
| lemma residueCosetMap_bijective {c : Eisenstein} (hc : c β 0) : | |
| Function.Bijective (residueCosetMap c) := by | |
| constructor | |
| Β· intro x y h | |
| have hxy : x.1 = y.1 := by | |
| simpa only [residueCosetMap_mk] using congrArg (Ideal.Quotient.mk (modulus c)) h | |
| apply Prod.ext hxy | |
| have : c * x.2 = c * y.2 := by | |
| simpa only [residueCosetMap, hxy, add_right_inj] using h | |
| exact mul_left_cancelβ hc this | |
| Β· intro a | |
| let v := Ideal.Quotient.mk (modulus c) a | |
| have hd : c β£ a - residueRepresentative c v := by | |
| rw [β Ideal.mem_span_singleton, β Ideal.Quotient.eq_zero_iff_mem] | |
| change Ideal.Quotient.mk (modulus c) (a - residueRepresentative c v) = 0 | |
| rw [map_sub, residueRepresentative_spec] | |
| exact sub_self _ | |
| obtain β¨b, hbβ© := hd | |
| exact β¨(v, b), by dsimp [residueCosetMap]; linear_combination -hbβ© | |
| end CubicFirstMoment | |
| namespace CubicFirstMoment | |
| lemma periodic_schwartz_summable (c : Eisenstein) (hc : c β 0) | |
| (Ο : Residues c β β) (f : π’(β, β)) : | |
| Summable (fun a : Eisenstein => Ο (Ideal.Quotient.mk (modulus c) a) * f (a : β)) := by | |
| let : Finite (Residues c) := finite_residues hc | |
| let : Fintype (Residues c) := Fintype.ofFinite _ | |
| let C := β v : Residues c, βΟ vβ | |
| apply Summable.of_norm_bounded ((schwartz_summable_eisenstein f).norm.mul_left C) | |
| intro a | |
| rw [norm_mul] | |
| apply mul_le_mul_of_nonneg_right _ (_root_.norm_nonneg _) | |
| exact Finset.single_le_sum (fun v _ => _root_.norm_nonneg (Ο v)) (Finset.mem_univ _) | |
| theorem poisson_eisenstein_periodic (c : Eisenstein) (hc : c β 0) | |
| (Ο : Residues c β β) (f : π’(β, β)) : | |
| β' a : Eisenstein, Ο (Ideal.Quotient.mk (modulus c) a) * f (a : β) = | |
| (2 / (Real.sqrt 3 * norm c) : β) β’ β' h : Eisenstein, | |
| (β' v : Residues c, Ο v * | |
| (Real.fourierChar (tracePair (residueRepresentative c v : β) | |
| ((h : β) / ((c : β) * traceLambda))) : β)) * | |
| traceFourier f ((h : β) / ((c : β) * traceLambda)) := by | |
| classical | |
| let : Finite (Residues c) := finite_residues hc | |
| let : Fintype (Residues c) := Fintype.ofFinite _ | |
| have hc' : (c : β) β 0 := fun h => hc (Subtype.ext h) | |
| let e := Equiv.ofBijective (residueCosetMap c) (residueCosetMap_bijective hc) | |
| let F (v : Residues c) (a : Eisenstein) := | |
| Ο v * f ((residueRepresentative c v : β) + (c : β) * (a : β)) | |
| have hreindex : (fun x : Residues c Γ Eisenstein => | |
| Ο (Ideal.Quotient.mk (modulus c) (e x)) * f (e x : β)) = Function.uncurry F := by | |
| funext x | |
| change Ο (Ideal.Quotient.mk (modulus c) (residueCosetMap c x)) * _ = _ | |
| rw [residueCosetMap_mk] | |
| rfl | |
| have hs : Summable (Function.uncurry F) := by | |
| rw [β hreindex] | |
| exact e.summable_iff.mpr (periodic_schwartz_summable c hc Ο f) | |
| calc | |
| _ = β' x : Residues c Γ Eisenstein, Function.uncurry F x := by | |
| rw [β hreindex] | |
| exact (e.tsum_eq _).symm | |
| _ = β v : Residues c, Ο v * β' a : Eisenstein, | |
| f ((residueRepresentative c v : β) + (c : β) * (a : β)) := by | |
| rw [hs.tsum_prod] | |
| simp only [tsum_fintype, F, Function.uncurry, tsum_mul_left] | |
| _ = _ := by | |
| simp_rw [poisson_eisenstein_coset f (c : β) hc'] | |
| let K : β := 2 / (Real.sqrt 3 * norm c) | |
| change (β v : Residues c, Ο v * (K β’ β' h : Eisenstein, | |
| (Real.fourierChar (tracePair (residueRepresentative c v : β) | |
| ((h : β) / ((c : β) * traceLambda))) : β) * | |
| traceFourier f ((h : β) / ((c : β) * traceLambda)))) = _ | |
| simp_rw [mul_smul_comm, β tsum_mul_left] | |
| rw [β Finset.smul_sum] | |
| congr 1 | |
| rw [β Summable.tsum_finsetSum] | |
| Β· apply tsum_congr | |
| intro h | |
| simp only [tsum_fintype, Finset.sum_mul, mul_assoc] | |
| Β· intro v _ | |
| exact (traceFourier_phase_summable f ((c : β) * traceLambda) | |
| (mul_ne_zero hc' traceLambda_ne_zero) (residueRepresentative c v : β)).mul_left (Ο v) | |
| end CubicFirstMoment | |
| namespace CubicFirstMoment | |
| def lambdaE : Eisenstein := 1 + 2 * omegaE | |
| lemma lambdaE_coe : (lambdaE : β) = traceLambda := rfl | |
| lemma lambdaE_sq : lambdaE ^ 2 = -3 := by | |
| dsimp [lambdaE] | |
| linear_combination 4 * omegaE_quadratic | |
| lemma three_lambda_cube : (3 : Eisenstein) * lambdaE = (-lambdaE) ^ 3 := by | |
| rw [pow_succ, neg_sq, lambdaE_sq] | |
| ring | |
| lemma primary_coprime_lambda {c : Eisenstein} (hc : primary c) : | |
| IsCoprime c lambdaE := by | |
| obtain β¨k, hkβ© := hc | |
| refine β¨1, lambdaE * k, ?_β© | |
| linear_combination hk + k * lambdaE_sq | |
| lemma tracePair_div_lambda_integral (z : Eisenstein) : | |
| β n : β€, tracePair (z : β) (1 / traceLambda) = (n : β) := by | |
| obtain β¨β¨a,bβ©, rflβ© := ofCoords_surjective z | |
| refine β¨b, ?_β© | |
| have hd : dualRealCoords ![0, 1] = 1 / traceLambda := by | |
| rw [dualRealCoords_eq] | |
| simp | |
| have hc : (ofCoords a b : β) = eisensteinRealCoords ![(a : β), (b : β)] := by | |
| simp [eisensteinRealCoords_apply, ofCoords_coe] | |
| rw [hc, β hd, dualRealCoords_trace] | |
| simp [Fin.sum_univ_two] | |
| lemma fourierChar_int (n : β€) : (Real.fourierChar (n : β) : β) = 1 := by | |
| rw [Real.fourierChar_apply] | |
| push_cast | |
| convert Complex.exp_int_mul_two_pi_mul_I n using 1 | |
| congr 1 | |
| ring | |
| lemma tracePhase_div_lambda_one (z : Eisenstein) : | |
| (Real.fourierChar (tracePair (z : β) (1 / traceLambda)) : β) = 1 := by | |
| obtain β¨n, hnβ© := tracePair_div_lambda_integral z | |
| rw [hn, fourierChar_int] | |
| lemma additivePhase_fourierChar (p v : Eisenstein) : | |
| additivePhase p v = (Real.fourierChar (tracePair (v : β) (1 / (p : β))) : β) := by | |
| rw [Real.fourierChar_apply] | |
| unfold additivePhase tracePair | |
| dsimp only | |
| congr 1 | |
| have hz : β z : β, z + star z = (2 * z.re : β) := by | |
| intro z | |
| apply Complex.ext <;> simp | |
| ring | |
| rw [hz] | |
| push_cast | |
| rw [one_div, β div_eq_mul_inv] | |
| ring | |
| lemma tracePhase_congr {c v w : Eisenstein} (hc : c β 0) (h : Eisenstein) | |
| (he : Ideal.Quotient.mk (modulus c) v = Ideal.Quotient.mk (modulus c) w) : | |
| (Real.fourierChar (tracePair (v : β) ((h : β) / ((c : β) * traceLambda))) : β) = | |
| (Real.fourierChar (tracePair (w : β) ((h : β) / ((c : β) * traceLambda))) : β) := by | |
| obtain β¨k, hkβ© := Ideal.mem_span_singleton.mp (Ideal.Quotient.eq.mp he) | |
| have hc' : (c : β) β 0 := fun h => hc (Subtype.ext h) | |
| have hv : (v : β) = (w : β) + (c : β) * (k : β) := by | |
| exact_mod_cast (show v = w+c*k by linear_combination hk) | |
| rw [hv, tracePair_add_left, AddChar.map_add_eq_mul, Circle.coe_mul] | |
| have hp : tracePair ((c : β) * (k : β)) ((h : β) / ((c : β) * traceLambda)) = | |
| tracePair ((k*h : Eisenstein) : β) (1 / traceLambda) := by | |
| unfold tracePair | |
| congr 2 | |
| push_cast | |
| field_simp | |
| rw [hp, tracePhase_div_lambda_one, mul_one] | |
| end CubicFirstMoment | |
| end | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 10.3 kB
- Xet hash:
- 12d2f1bee690748d9155a7be0e814ada2c1b143a18884ac79016d335e34ec101
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.