cfahlgren1/math / lean /OAI /NumberTheory /DirichletL /Detector /GaussianCompletion.lean
cfahlgren1's picture
download
raw
5.03 kB
import OAI.NumberTheory.DirichletL.Detector.GaussianMellin
import OAI.NumberTheory.DirichletL.Detector.PhysicalAnalytic
namespace OAI
noncomputable section
open scoped Classical
open MeasureTheory
namespace SevenEighths.ProbePhysical
open ProbeRow ProbeCompleted CompletedGauss CubicEisenstein
local notation "O" => ActualEisensteinCubic.O
local notation "Id" => Ideal O
def gaussianCompletedProfile (y : ℝ) : ℂ := gaussianMellinProfile y/(Real.sqrt y:ℂ)
lemma gaussianCompleted_Vstar (y : ℝ) (hy : 0<y) :
Vstar gaussianCompletedProfile y=gaussianMellinProfile y := by
have h : (Real.sqrt y:ℂ)≠0 := Complex.ofReal_ne_zero.mpr (Real.sqrt_pos.mpr hy).ne'
simp only [Vstar,gaussianCompletedProfile]
field_simp
lemma gaussian_mellinSummand (S : Finset Id) (D : Id) (Ψ : O→*ℂ)
(σ Z : ℝ) (hZ : 0<Z) (I J : Id) :
((1/(2*Real.pi):ℝ):ℂ)*(∫v : ℝ,mellinSummand S D Ψ σ Z (I,J) v)=
correctedSummand S D Ψ gaussianCompletedProfile Z I J := by
by_cases hI : I=0
· subst I
simp [mellinSummand,spectralSummand,fullIdealWeight,correctedSummand,markedSummand,CompletedGauss.summand]
by_cases hJ : J=0
· subst J
simp [mellinSummand,spectralSummand,fullIdealWeight,correctedSummand,markedSummand,CompletedGauss.summand]
have hi : (0:ℝ)<Ideal.absNorm I := by
exact_mod_cast Nat.pos_of_ne_zero (Ideal.absNorm_eq_zero_iff.not.mpr hI)
have hj : (0:ℝ)<Ideal.absNorm J := by
exact_mod_cast Nat.pos_of_ne_zero (Ideal.absNorm_eq_zero_iff.not.mpr hJ)
have hq : 0<(Ideal.absNorm I:ℝ)*(Ideal.absNorm J:ℝ)^3/Z :=
div_pos (mul_pos hi (pow_pos hj 3)) hZ
have hp (v : ℝ) : mellinSummand S D Ψ σ Z (I,J) v=
(((Ideal.absNorm I:ℝ)*(Ideal.absNorm J:ℝ)^3/Z:ℝ):ℂ)^(-((σ:ℂ)+v*Complex.I))*
Complex.exp (((σ:ℂ)+v*Complex.I)^2)*
(completedMask S D I J*completedCorrection I J*
(columnWeight Ψ I/(Real.sqrt (Ideal.absNorm I):ℂ))*cubeWeight Ψ J) := by
unfold mellinSummand spectralSummand fullIdealWeight
simp only [ite_eq_right hI,ite_eq_right hJ]
rw [←gaussian_completed_norm_power _ _ Z hi hj hZ]
push_cast
ring
simp_rw [hp]
rw [integral_mul_const,←mul_assoc,gaussianMellin_inversion _ hq σ]
unfold correctedSummand markedSummand CompletedGauss.summand
rw [gaussianCompleted_Vstar _ hq]
ring
lemma gaussian_correctedSummand_summable (S : Finset Id) (D : Id) (Ψ : O→*ℂ)
(hΨ : ∀n,‖Ψ n‖≤1) (Z : ℝ) (hZ : 0<Z) :
Summable (fun p : Id×Id=>correctedSummand S D Ψ gaussianCompletedProfile Z p.1 p.2) := by
have hs : Summable (fun p : Id×Id=>∫v : ℝ,‖mellinSummand S D Ψ 2 Z p v‖) := by
simp only [mellinSummand_integral_norm S D Ψ 2 Z hZ]
exact (spectralRow_summable S D Ψ hΨ (2:ℂ) (by norm_num)).norm.mul_right _
have hi : Summable (fun p : Id×Id=>∫v : ℝ,mellinSummand S D Ψ 2 Z p v) := by
apply Summable.of_norm
exact Summable.of_nonneg_of_le (fun _=>norm_nonneg _) (fun p=>norm_integral_le_integral_norm _) hs
have hh := hi.mul_left (((1/(2*Real.pi):ℝ):ℂ))
simpa only [gaussian_mellinSummand S D Ψ 2 Z hZ] using hh
theorem spectralRow_eq_gaussianCompleted (S : Finset Id) (D : Id) (Ψ : O→*ℂ)
(hΨ : ∀n,‖Ψ n‖≤1) (σ : ℝ) (hσ : 1<σ) (Z : ℝ) (hZ : 0<Z) :
verticalIntegral σ (fun t=>(Z:ℂ)^t*Complex.exp (t^2)*spectralRow S D Ψ t)=
correctedCompletedT S D Ψ gaussianCompletedProfile Z := by
rw [verticalIntegral,spectralRow_integral_eq_tsum S D Ψ hΨ σ hσ Z hZ,←tsum_mul_left]
unfold correctedCompletedT
apply tsum_congr
intro p
exact gaussian_mellinSummand S D Ψ σ Z hZ p.1 p.2
theorem markedPhysicalProbe_eq_gaussian (η : HeckeFamily.Character) (C : CalibrationData)
(D : Id) (W0 W1 : ℝ→ℂ) (X Y Z : ℝ) (hZ : 0<Z) :
markedPhysicalProbe η C D W0 W1 X Y Z=
(Y:ℂ)⁻¹*∑'s : {I : Id // CanonicalQuadraticSieve.Supported I},
if ∀P∈C.excluded,¬P∣s.val then
let a := primaryGenerator s.val
let ha := CanonicalQuadraticSieve.supported_primaryGenerator_ne_zero s.val s.property
let has := (CanonicalQuadraticSieve.supported_span_primaryGenerator_iff s.val).mpr s.property
let q : ℝ := Ideal.absNorm s.val
W1 (q/Y)*CanonicalRowCompletion.idealRowHom C.generator s.val/
(C.tau*C.residueMonoid a*(Real.sqrt (elementNorm C.generator*q*X):ℂ))*
∑'m : O,C.residueMonoid m*(Real.sqrt q:ℂ)⁻¹*sexticGauss a ha (-m)*
W0 (elementNorm m/(elementNorm C.generator*q*X))*
correctedCompletedT C.excluded D (rowCoefficient η C.Xi a has m)
gaussianCompletedProfile Z
else 0 := by
unfold markedPhysicalProbe
congr 1
apply tsum_congr
intro s
split_ifs with h
· dsimp only
congr 1
apply tsum_congr
intro m
rw [spectralRow_eq_gaussianCompleted _ _ _
(rowCoefficient_norm_le_one η C.Xi C.Xi_norm_le_one _ _ m) 4 (by norm_num) Z hZ]
· rfl
end SevenEighths.ProbePhysical
end
end OAI

Xet Storage Details

Size:
5.03 kB
·
Xet hash:
545d912a4843805acd99f7dac003d0a121f3b3882c659b3090db9b9aec4b039a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.