cfahlgren1's picture
download
raw
34.6 kB
import OAI.NumberTheory.DirichletL.Eisenstein.CompactEnergyFamilies
namespace OAI
noncomputable section
open scoped BigOperators
open MulChar AddChar
open scoped BigOperators
open Filter Asymptotics MeasureTheory
open scoped Topology
open MeasureTheory Real
open scoped FourierTransform SchwartzMap
open Finset Complex
open scoped Classical
open scoped Classical
open Filter Real Asymptotics
open ActualEisensteinCubic
open Filter
open ActualEisensteinCubic RationalPrimeExtraction ShortDraftLatticeCount
open ActualEisensteinCubic ShortDraftLatticeCount
open Filter
open scoped Topology
open EisensteinEmbedding ConcreteTraceCRT ActualEisensteinCubic
open MulChar AddChar
open Filter Asymptotics
open scoped LSeries.notation ArithmeticFunction.Moebius
open Filter
open MulChar AddChar
open MulChar AddChar
open scoped LSeries.notation ArithmeticFunction.Moebius
open Filter Asymptotics MeasureTheory
open scoped Topology
open Filter Asymptotics
open Ideal NumberField RingOfIntegers UniqueFactorizationMonoid
open Ideal NumberField RingOfIntegers UniqueFactorizationMonoid
open Ideal NumberField RingOfIntegers UniqueFactorizationMonoid
open Ideal NumberField RingOfIntegers UniqueFactorizationMonoid
open Ideal NumberField RingOfIntegers UniqueFactorizationMonoid
open Filter Asymptotics
open Filter Asymptotics MeasureTheory
open scoped Topology
open Filter Asymptotics Ideal NumberField
open Filter
open Filter Asymptotics MeasureTheory
open scoped Topology
open Filter Asymptotics MeasureTheory
open scoped Topology
open Filter Asymptotics MeasureTheory
open scoped Topology
open MeasureTheory Real
open scoped ContDiff FourierTransform SchwartzMap
open scoped BigOperators Classical
open scoped BigOperators Classical
open scoped BigOperators Classical
open scoped BigOperators Classical SchwartzMap ContDiff
open scoped BigOperators Classical SchwartzMap ContDiff
open scoped BigOperators Classical
open scoped BigOperators Classical SchwartzMap ContDiff
open scoped BigOperators Classical
open scoped BigOperators Classical SchwartzMap ContDiff
open scoped BigOperators Classical SchwartzMap ContDiff
open scoped BigOperators Classical SchwartzMap ContDiff
open scoped BigOperators Classical
open scoped BigOperators Classical SchwartzMap ContDiff
open MeasureTheory Set
open scoped BigOperators
open scoped BigOperators Classical
open scoped BigOperators Classical
open ActualEisensteinCubic UniqueFactorizationMonoid
open scoped BigOperators
open scoped BigOperators
open scoped BigOperators Classical SchwartzMap
open scoped BigOperators Classical
open scoped BigOperators Classical
namespace CanonicalRowCompletion
section
open ActualEisensteinCubic
open CompletedGauss hiding O
open ConcretePrimeRowBridge hiding O columnWeight
theorem localRowValue_zero_of_mem (x : ActualEisensteinCubic.O) (P : Ideal ActualEisensteinCubic.O) (hx : x∈P) :
localRowValue x P = 0 := by
unfold localRowValue
split_ifs with h
· let : P.IsMaximal := h.1
rw [Ideal.Quotient.eq_zero_iff_mem.mpr hx]
exact MulChar.map_nonunit _ (not_isUnit_zero)
· rfl
theorem idealRowHom_zero_of_dvd (x : ActualEisensteinCubic.O) {P I : Ideal ActualEisensteinCubic.O}
(hP : Prime P) (hPI : P∣I) (hx : x∈P) : idealRowHom x I = 0 := by
obtain ⟨J,rfl⟩ := hPI
rw [map_mul]
have hz : idealRowHom x P = 0 := by
rw [idealRowHom,primeValueHom_prime _ P hP,localRowValue_zero_of_mem x P hx]
rw [hz,zero_mul]
theorem columnWeight_zero_of_mask (Ψ : ActualEisensteinCubic.O →* ℂ) (m f z : ActualEisensteinCubic.O) {P I : Ideal ActualEisensteinCubic.O}
(hP : Prime P) (hPI : P∣I) (hm : m∈P) :
columnWeight (rowTwist Ψ m f z) I = 0 := by
unfold columnWeight
have hx : m^6*f^4*z∈P := by
have hm6 : m^6∈P := by
rw [show m^6=m^5*m by ring]
exact P.mul_mem_left (m^5) hm
exact P.mul_mem_right z (P.mul_mem_right (f^4) hm6)
by_cases hg : primaryGenerator I=0
· rw [hg]
change squarefreeGaussCoefficient I * (Ψ 0 * idealRowHom _ (Ideal.span {0})) = 0
rw [Ideal.span_singleton_zero]
change squarefreeGaussCoefficient I * (Ψ 0 * idealRowHom _ (0:Ideal ActualEisensteinCubic.O)) = 0
rw [map_zero (idealRowHom _),mul_zero,mul_zero]
· change squarefreeGaussCoefficient I *
(Ψ (primaryGenerator I) * idealRowHom _ (Ideal.span {primaryGenerator I})) = 0
rw [(primaryGenerator_spec I hg).1,idealRowHom_zero_of_dvd _ hP hPI hx,mul_zero,mul_zero]
theorem columnWeight_zero_of_not_squarefree (Ψ : ActualEisensteinCubic.O →* ℂ) {I : Ideal ActualEisensteinCubic.O}
(hI : ¬Squarefree I) : columnWeight Ψ I = 0 := by
simp [columnWeight,squarefreeGaussCoefficient,hI]
theorem weighted_column_support (S : Finset (Ideal ActualEisensteinCubic.O)) (D : ℕ)
(hSp : ∀P∈S,Prime P) (Ψ : ActualEisensteinCubic.O →* ℂ) (m f z : ActualEisensteinCubic.O) (hm : ∀P∈S,m∈P)
(W : ℝ → ℂ) (b X : ℝ) (hX : 0<X)
(hW : ∀t,W t≠0 → t≤b) (hD : b*X≤D)
{I : Ideal ActualEisensteinCubic.O}
(hn : columnWeight (rowTwist Ψ m f z) I * W ((Ideal.absNorm I:ℝ)/X) ≠ 0) :
I∈InitialMeanSquare.outsideSquarefreeIdeals S D := by
have hc : columnWeight (rowTwist Ψ m f z) I ≠ 0 :=
fun h=>hn (by rw [h,zero_mul])
have hwindow : W ((Ideal.absNorm I:ℝ)/X) ≠ 0 :=
fun h=>hn (by rw [h,mul_zero])
have hI : I≠0 := fun h=>hc (by rw [h,columnWeight_zero])
have hsf : Squarefree I := by
by_contra h
exact hc (columnWeight_zero_of_not_squarefree _ h)
apply Finset.mem_filter.mpr
refine ⟨mem_outsideIdealsUpTo.mpr ⟨?_,?_,?_⟩,hsf⟩
· exact Nat.one_le_iff_ne_zero.mpr (fun h=>hI (Ideal.absNorm_eq_zero_iff.mp h))
· exact_mod_cast ((div_le_iff₀ hX).mp (hW _ hwindow)).trans hD
· intro P hP hPI
exact hc (columnWeight_zero_of_mask Ψ m f z (hSp P hP) hPI (hm P hP))
theorem weighted_column_tsum_eq (S : Finset (Ideal ActualEisensteinCubic.O)) (D : ℕ)
(hSp : ∀P∈S,Prime P) (Ψ : ActualEisensteinCubic.O →* ℂ) (m f z : ActualEisensteinCubic.O) (hm : ∀P∈S,m∈P)
(W : ℝ → ℂ) (b X : ℝ) (hX : 0<X)
(hW : ∀t,W t≠0 → t≤b) (hD : b*X≤D) :
(∑'I:Ideal ActualEisensteinCubic.O,columnWeight (rowTwist Ψ m f z) I * W ((Ideal.absNorm I:ℝ)/X)) =
∑I∈InitialMeanSquare.outsideSquarefreeIdeals S D,
columnWeight (rowTwist Ψ m f z) I * W ((Ideal.absNorm I:ℝ)/X) := by
apply tsum_eq_sum
intro I hI
by_contra hn
exact hI (weighted_column_support S D hSp Ψ m f z hm W b X hX hW hD hn)
end
section
open ActualEisensteinCubic
open CompletedGauss hiding O
open FirstPassCubeLabels hiding O
theorem localRowValue_mul (a b : ActualEisensteinCubic.O) (P : Ideal ActualEisensteinCubic.O) :
localRowValue (a*b) P = localRowValue a P * localRowValue b P := by
unfold localRowValue
split_ifs with h
· let : P.IsMaximal := h.1
simp only [map_mul]
· simp
theorem idealRowHom_argument_mul (a b : ActualEisensteinCubic.O) (I : Ideal ActualEisensteinCubic.O) :
idealRowHom (a*b) I = idealRowHom a I * idealRowHom b I := by
by_cases hI : I=0
· rw [hI,map_zero,map_zero,map_zero,zero_mul]
change (if I=0 then 0 else _) = (if I=0 then 0 else _) * (if I=0 then 0 else _)
simp only [ite_eq_right hI]
have hprod (s : Multiset (Ideal ActualEisensteinCubic.O)) :
(s.map (localRowValue (a*b))).prod =
(s.map (localRowValue a)).prod * (s.map (localRowValue b)).prod := by
induction s using Multiset.induction_on with
| empty => simp
| @cons P s ih =>
simp only [Multiset.map_cons,Multiset.prod_cons]
rw [localRowValue_mul,ih]
ring
exact hprod _
theorem rowTwist_row_factor (Ψ : ActualEisensteinCubic.O →* ℂ) (m f z n : ActualEisensteinCubic.O) :
rowTwist Ψ m f z n =
rowTwist Ψ m f 1 n * idealRowHom z (Ideal.span {n}) := by
change Ψ n * idealRowHom (m^6*f^4*z) (Ideal.span {n}) =
(Ψ n * idealRowHom (m^6*f^4*1) (Ideal.span {n})) * idealRowHom z (Ideal.span {n})
rw [mul_one,idealRowHom_argument_mul]
ring
theorem cubeWeight_row_factor (Ψ : ActualEisensteinCubic.O →* ℂ) (m f z : ActualEisensteinCubic.O) (B : Ideal ActualEisensteinCubic.O) :
cubeWeight (rowTwist Ψ m f z) B =
cubeWeight (rowTwist Ψ m f 1) B * idealRowHom z B^3 := by
by_cases hB : primaryGenerator B=0
· have hzero (x:ActualEisensteinCubic.O) : rowTwist Ψ m f x (primaryGenerator B) = 0 := by
rw [hB]
change Ψ 0 * idealRowHom _ (Ideal.span {(0:ActualEisensteinCubic.O)}) = 0
rw [Ideal.span_singleton_zero]
change Ψ 0 * idealRowHom _ (0:Ideal ActualEisensteinCubic.O) = 0
rw [map_zero (idealRowHom _),mul_zero]
change _ * rowTwist Ψ m f z (primaryGenerator B)^3 / _ =
(_ * rowTwist Ψ m f 1 (primaryGenerator B)^3 / _) * _
rw [hzero z,hzero 1]
simp
· change _ * rowTwist Ψ m f z (primaryGenerator B)^3 / _ =
(_ * rowTwist Ψ m f 1 (primaryGenerator B)^3 / _) * _
rw [rowTwist_row_factor,(primaryGenerator_spec B hB).1,mul_pow]
ring
theorem idealRowHom_prime_powers {ι : Type*} (P : ι → Ideal ActualEisensteinCubic.O)
[∀i,(P i).IsMaximal] (hg : ∀i,lambda∉P i) (pool : Finset ι)
(v : ι → ℕ) (z : ActualEisensteinCubic.O) :
idealRowHom z (∏i∈pool,(P i)^v i) = multiplicityRow P hg pool v z := by
rw [map_prod]
simp only [map_pow,multiplicityRow]
apply Finset.prod_congr rfl
intro i hi
rw [idealRowHom_prime z (P i) (hg i)]
theorem cubeWeight_prime_powers {ι : Type*} (P : ι → Ideal ActualEisensteinCubic.O)
[∀i,(P i).IsMaximal] (hg : ∀i,lambda∉P i) (pool : Finset ι)
(v : ι → ℕ) (Ψ : ActualEisensteinCubic.O →* ℂ) (m f z : ActualEisensteinCubic.O) :
cubeWeight (rowTwist Ψ m f z) (∏i∈pool,(P i)^v i) =
cubeWeight (rowTwist Ψ m f 1) (∏i∈pool,(P i)^v i) *
multiplicityRow P hg pool v z^3 := by
rw [cubeWeight_row_factor,idealRowHom_prime_powers P hg pool v z]
end
section
open ActualEisensteinCubic
open ConcretePrimeRowBridge hiding O columnWeight
open CanonicalQuadraticSieve hiding O
open SecondPassArithmetic hiding O
def excludedGenerator (S : Finset (Ideal ActualEisensteinCubic.O)) : ActualEisensteinCubic.O := idealGenerator (∏P∈S,P)
theorem excludedGenerator_mem (S : Finset (Ideal ActualEisensteinCubic.O)) {P : Ideal ActualEisensteinCubic.O} (hP : P∈S) :
excludedGenerator S∈P := by
have hdiv : P∣∏Q∈S,Q := Finset.dvd_prod_of_mem (fun Q:Ideal ActualEisensteinCubic.O=>Q) hP
have hm : idealGenerator (∏Q∈S,Q)∈Ideal.span {idealGenerator (∏Q∈S,Q)} :=
Ideal.subset_span (by simp)
rw [span_idealGenerator] at hm
exact (Ideal.dvd_iff_le.mp hdiv) hm
theorem excludedGenerator_not_mem_pool (S : Finset (Ideal ActualEisensteinCubic.O)) (D : ℕ)
(hSp : ∀P∈S,Prime P)
(i : primePool (InitialMeanSquare.outsideSquarefreeIdeals S D)) :
excludedGenerator S∉i.val := by
intro hm
have hprime : Prime i.val := Ideal.prime_of_isPrime (NeZero.ne i.val) inferInstance
have hspan : Ideal.span {excludedGenerator S} ≤ i.val :=
Ideal.span_le.mpr (Set.singleton_subset_iff.mpr hm)
change Ideal.span {idealGenerator (∏Q∈S,Q)} ≤ i.val at hspan
rw [span_idealGenerator] at hspan
have hdiv : i.val∣∏Q∈S,Q := Ideal.dvd_iff_le.mpr hspan
obtain ⟨P,hPS,hPi⟩ := (hprime.dvd_finsetProd_iff (fun Q:Ideal ActualEisensteinCubic.O=>Q)).mp hdiv
have heq : i.val=P := (prime_dvd_prime_iff_eq hprime (hSp P hPS)).mp hPi
obtain ⟨I,hI,hfactor⟩ := mem_primePool_iff.mp i.property
have ho : I∈outsideIdealsUpTo S D := (Finset.mem_filter.mp hI).1
have hd : i.val∣I := UniqueFactorizationMonoid.dvd_of_mem_normalizedFactors hfactor
exact (mem_outsideIdealsUpTo.mp ho).2.2 P hPS (heq ▸ hd)
theorem outside_pool_fixed_mask (S : Finset (Ideal ActualEisensteinCubic.O)) (D : ℕ)
(hbad : fixedBadPrimes⊆S) (hSp : ∀P∈S,Prime P)
(T : Finset (primePool (InitialMeanSquare.outsideSquarefreeIdeals S D))) :
rowCoprimeMask (fun i=>Ideal.span {poolPrimary (InitialMeanSquare.outsideSquarefreeIdeals S D) i})
T (excludedGenerator S) = 1 := by
unfold rowCoprimeMask
rw [ite_eq_right]
rintro ⟨i,hi,hmem⟩
change excludedGenerator S ∈ Ideal.span {poolPrimary (InitialMeanSquare.outsideSquarefreeIdeals S D) i} at hmem
rw [poolPrimary_span _ (InitialMeanSquare.outsideSquarefree_admissible S D hbad)] at hmem
exact excludedGenerator_not_mem_pool S D hSp i hmem
theorem canonicalSourceCoefficient_fixed_mask {ι : Type*} [DecidableEq ι]
(p : ι → ActualEisensteinCubic.O) (hp : ∀i,p i≠0) [∀i,(Ideal.span {p i}).IsMaximal]
(hcop : Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
(hg : ∀i,lambda∉Ideal.span {p i}) (Ψ : ActualEisensteinCubic.O →* ℂ) (m c f : ActualEisensteinCubic.O)
(H : Finset ι → ℂ) (T : Finset ι)
(hc : rowCoprimeMask (fun i=>Ideal.span {p i}) T c=1) :
canonicalSourceCoefficient p hp hcop hg Ψ (m*c) f H T =
canonicalSourceCoefficient p hp hcop hg Ψ m f H T := by
simp only [canonicalSourceCoefficient,FirstPassCubeLabels.mask_mul _ hg,hc,mul_one]
end
section
open ActualEisensteinCubic
open CompletedGauss hiding O
open ConcretePrimeRowBridge hiding O columnWeight
open CanonicalQuadraticSieve hiding O
open SecondPassArithmetic hiding O
open FirstPassCubeLabels hiding O
def outsideCanonicalRow (S : Finset (Ideal ActualEisensteinCubic.O)) (D : ℕ) (hbad : fixedBadPrimes ⊆ S)
(Ψ : ActualEisensteinCubic.O →* ℂ) (m f z : ActualEisensteinCubic.O) (W : ℝ → ℂ) (X : ℝ) : ℂ :=
let F := InitialMeanSquare.outsideSquarefreeIdeals S D
let hF := InitialMeanSquare.outsideSquarefree_admissible S D hbad
letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal :=
fun i=>by rw [poolPrimary_span F hF i]; infer_instance
fixedChildRow (poolPrimary F) (poolPrimary_ne_zero F hF) (poolPrimary_coprime F hF)
(poolPrimary_good F hF) Finset.univ Ψ m
(fun T=>W (primeProductNorm (poolPrimary F) T/X)) f z
theorem outsideCanonicalRow_eq_global (S : Finset (Ideal ActualEisensteinCubic.O)) (D : ℕ)
(hbad : fixedBadPrimes ⊆ S) (hSp : ∀P∈S,Prime P)
(Ψ : ActualEisensteinCubic.O →* ℂ) (m f z : ActualEisensteinCubic.O) (W : ℝ → ℂ) (b X : ℝ) (hX : 0<X)
(hW : ∀t,W t≠0 → t≤b) (hD : b*X ≤ D) :
outsideCanonicalRow S D hbad Ψ m f z W X =
∑'I:Ideal ActualEisensteinCubic.O,columnWeight (rowTwist Ψ (m*excludedGenerator S) f z) I *
W ((Ideal.absNorm I:ℝ)/X) := by
let F := InitialMeanSquare.outsideSquarefreeIdeals S D
have hF := InitialMeanSquare.outsideSquarefree_admissible S D hbad
let : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal :=
fun i=>by rw [poolPrimary_span F hF i]; infer_instance
symm
rw [weighted_column_tsum_eq S D hSp Ψ (m*excludedGenerator S) f z
(fun P hP=>P.mul_mem_left m (excludedGenerator_mem S hP)) W b X hX hW hD]
have he := selected_column_sum F hF Ψ (m*excludedGenerator S) f z (fun n=>W (n/X))
dsimp only at he
rw [he]
unfold outsideCanonicalRow fixedChildRow
dsimp only
apply Finset.sum_congr rfl
intro T hT
rw [canonicalSourceCoefficient_fixed_mask _ _ _ _ Ψ m (excludedGenerator S) f _ T
(outside_pool_fixed_mask S D hbad hSp T)]
have ht := InitialMeanSquare.selectedIdealTest_outside S D hbad hSp W b X hX hW hD T
simp only [canonicalSourceCoefficient,secondChildColumn]
rw [ht]
ring
theorem outsideCanonicalRow_cube_inverse (S : Finset (Ideal ActualEisensteinCubic.O)) (D : ℕ)
(hbad : fixedBadPrimes ⊆ S) (hSp : ∀P∈S,Prime P)
(Ψ : ActualEisensteinCubic.O →* ℂ) (m f z : ActualEisensteinCubic.O) (W : ℝ → ℂ) (hWc : HasCompactSupport W)
(b X : ℝ) (hX : 0<X) (hW : ∀t,W t≠0 → t≤b) (hD : b*X ≤ D) :
(Real.sqrt X:ℂ)⁻¹ * outsideCanonicalRow S D hbad Ψ m f z W X =
∑'H:Ideal ActualEisensteinCubic.O,(UniqueFactorizationMonoid.moebius H:ℂ)*
cubeWeight (rowTwist Ψ (m*excludedGenerator S) f z) H *
completedT (rowTwist Ψ (m*excludedGenerator S) f z) W
(X/(Ideal.absNorm H:ℝ)^3) := by
rw [outsideCanonicalRow_eq_global S D hbad hSp Ψ m f z W b X hX hW hD]
exact completed_cube_inverse _ W hWc X hX
theorem outsideCanonicalRow_cube_split (S : Finset (Ideal ActualEisensteinCubic.O)) (D : ℕ)
(hbad : fixedBadPrimes ⊆ S) (hSp : ∀P∈S,Prime P)
(Ψ : ActualEisensteinCubic.O →* ℂ) (m f z : ActualEisensteinCubic.O) (W : ℝ → ℂ) (hWc : HasCompactSupport W)
(b X H₀ : ℝ) (hX : 0<X) (hW : ∀t,W t≠0 → t≤b) (hD : b*X ≤ D) :
(Real.sqrt X:ℂ)⁻¹ * outsideCanonicalRow S D hbad Ψ m f z W X =
shortCompletedSum (rowTwist Ψ (m*excludedGenerator S) f z) W X H₀ +
∑'I:Ideal ActualEisensteinCubic.O,∑'B:Ideal ActualEisensteinCubic.O,largeCubeCoefficient H₀ B *
summand (rowTwist Ψ (m*excludedGenerator S) f z) W X I B := by
rw [outsideCanonicalRow_eq_global S D hbad hSp Ψ m f z W b X hX hW hD]
exact completed_cube_inverse_split _ W hWc X H₀ hX
end
open ActualEisensteinCubic
open ConcretePrimeRowBridge hiding O columnWeight
open CanonicalQuadraticSieve hiding O
open CompletedGauss hiding O
def cubeIndex (F : Finset (Ideal ActualEisensteinCubic.O)) (B : Ideal ActualEisensteinCubic.O) : primePool F →₀ ℕ :=
Finsupp.equivFunOnFinite.symm (fun i=>(UniqueFactorizationMonoid.normalizedFactors B).count i.val)
@[simp] theorem cubeIndex_apply (F : Finset (Ideal ActualEisensteinCubic.O)) (B : Ideal ActualEisensteinCubic.O) (i : primePool F) :
cubeIndex F B i = (UniqueFactorizationMonoid.normalizedFactors B).count i.val := by
simp [cubeIndex]
def cubeIdeal (F : Finset (Ideal ActualEisensteinCubic.O)) (v : primePool F →₀ ℕ) : Ideal ActualEisensteinCubic.O :=
∏i:primePool F,i.val^v i
theorem cubeIdeal_cubeIndex (F : Finset (Ideal ActualEisensteinCubic.O)) (B : Ideal ActualEisensteinCubic.O) (hB : B≠0)
(hcover : ∀P∈UniqueFactorizationMonoid.normalizedFactors B,P∈primePool F) :
cubeIdeal F (cubeIndex F B) = B := by
have hsub : (UniqueFactorizationMonoid.normalizedFactors B).toFinset ⊆ primePool F := by
intro P hP
exact hcover P (Multiset.mem_toFinset.mp hP)
calc
_ = ∏P∈primePool F,P^(UniqueFactorizationMonoid.normalizedFactors B).count P := by
simp only [cubeIdeal,cubeIndex_apply]
exact Finset.prod_coe_sort (s := primePool F)
(f := fun P:Ideal ActualEisensteinCubic.O=>P^(UniqueFactorizationMonoid.normalizedFactors B).count P)
_ = (UniqueFactorizationMonoid.normalizedFactors B).prod :=
(Finset.prod_multiset_count_of_subset _ _ hsub).symm
_ = B := Ideal.prod_normalizedFactors_eq_self hB
theorem cubeIndex_inj (F : Finset (Ideal ActualEisensteinCubic.O)) (B C : Ideal ActualEisensteinCubic.O) (hB : B≠0) (hC : C≠0)
(hb : ∀P∈UniqueFactorizationMonoid.normalizedFactors B,P∈primePool F)
(hc : ∀P∈UniqueFactorizationMonoid.normalizedFactors C,P∈primePool F)
(heq : cubeIndex F B = cubeIndex F C) : B=C := by
have he := congrArg (cubeIdeal F) heq
rwa [cubeIdeal_cubeIndex F B hB hb,cubeIdeal_cubeIndex F C hC hc] at he
theorem outside_cubeIdeal_cubeIndex (S : Finset (Ideal ActualEisensteinCubic.O)) (D : ℕ)
{B : Ideal ActualEisensteinCubic.O} (hB : B∈outsideIdealsUpTo S D) :
cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D)
(cubeIndex (InitialMeanSquare.outsideSquarefreeIdeals S D) B) = B := by
exact cubeIdeal_cubeIndex _ B (outsideIdealsUpTo_ne_bot S D B hB)
(InitialMeanSquare.outside_factors_mem_pool S D hB)
theorem sum_outside_cubeIndex (S : Finset (Ideal ActualEisensteinCubic.O)) (D : ℕ) (a : Ideal ActualEisensteinCubic.O → ℂ) :
(∑B∈outsideIdealsUpTo S D,a B) =
∑v∈(outsideIdealsUpTo S D).image (cubeIndex (InitialMeanSquare.outsideSquarefreeIdeals S D)),
a (cubeIdeal (InitialMeanSquare.outsideSquarefreeIdeals S D) v) := by
rw [Finset.sum_image]
· apply Finset.sum_congr rfl
intro B hB
rw [outside_cubeIdeal_cubeIndex S D hB]
· intro B hB C hC he
exact cubeIndex_inj _ B C (outsideIdealsUpTo_ne_bot S D B hB)
(outsideIdealsUpTo_ne_bot S D C hC)
(InitialMeanSquare.outside_factors_mem_pool S D hB)
(InitialMeanSquare.outside_factors_mem_pool S D hC) he
theorem cubeIdeal_ne_zero (F : Finset (Ideal ActualEisensteinCubic.O)) (v : primePool F →₀ ℕ) :
cubeIdeal F v ≠ 0 := by
unfold cubeIdeal
exact Finset.prod_ne_zero_iff.mpr (fun i _=>pow_ne_zero _ (NeZero.ne i.val))
theorem cubeIdeal_primaryGenerator (F : Finset (Ideal ActualEisensteinCubic.O))
(v : primePool F →₀ ℕ) :
primaryGenerator (cubeIdeal F v) =
FirstPassCubeLabels.primeProduct (poolPrimary F) Finset.univ v := by
change primaryGeneratorHom (∏i:primePool F,i.val^v i) = _
rw [map_prod]
simp only [map_pow]
unfold FirstPassCubeLabels.primeProduct
apply Finset.prod_congr rfl
intro i hi
change primaryGenerator i.val^v i = poolPrimary F i^v i
rw [←primaryPrime_eq_primaryGenerator i.val]
rfl
end CanonicalRowCompletion
namespace SecondPassIntegration
open ActualEisensteinCubic SecondPassArithmetic
theorem densityChildEnergy_canonical_terminal
{ι : Type*} [DecidableEq ι]
(p : ι → ActualEisensteinCubic.O) (hp : ∀ i,p i ≠ 0) [∀ i,(Ideal.span {p i}).IsMaximal]
(hcop : Pairwise (Function.onFun IsCoprime (fun i => Ideal.span {p i})))
(hg : ∀ i,lambda ∉ Ideal.span {p i})
(hc : ∀ i,ringChar (ActualEisensteinCubic.O ⧸ Ideal.span {p i}) ≠ 2)
(hinj : Function.Injective (fun i => Ideal.span {p i}))
(pool : Finset ι) (Ψ₁ Ψ₂ : ActualEisensteinCubic.O →* ℂ)
(hΨ₁ : ∀ a,‖Ψ₁ a‖ ≤ 1) (hΨ₂ : ∀ a,‖Ψ₂ a‖ ≤ 1)
(m : ActualEisensteinCubic.O) (T : Finset (Ideal ActualEisensteinCubic.O × ActualEisensteinCubic.O)) (V₁ V₂ : ℝ → ℂ)
(X F K A M : ℝ) (J : ℕ) (hX : 0 < X) (hF : 1 ≤ F) (hK : 1 ≤ K)
(hKF : K ≤ F) (hA : 0 ≤ A) (hM : 0 ≤ M)
(hV₁ : ∀ s,‖V₁ s‖ ≤ M) (hV₂ : ∀ s,‖V₂ s‖ ≤ M)
(hVs₁ : ∀ s,V₁ s ≠ 0 → |s| ≤ A) (hVs₂ : ∀ s,V₂ s ≠ 0 → |s| ≤ A)
(hT : ∀ z∈T,z.1 ≠ ⊥ ∧ (Ideal.absNorm z.1 : ℝ) ≤ F ∧
‖ConcreteTraceCRT.eisEmbedding z.2‖^2 ≤ K) :
densityChildEnergy p hp hcop hg pool Ψ₁ Ψ₂ m T V₁ V₂ X X (2*J) ≤
globalTerminalConstant A M*(X*F)^2 := by
have hXF : 0 < X*F := mul_pos hX (zero_lt_one.trans_le hF)
have he := childDensity_elementary_all_scales p hp hcop hg hc hinj pool Ψ₁ Ψ₂ hΨ₁ hΨ₂
m T V₁ V₂ X F K A M J hX hF hK hA hM hV₁ hV₂ hVs₁ hVs₂ hT
change _ ≤ globalTerminalConstant A M*K*X at he
have hc0 := globalTerminalConstant_nonneg A M
have he' : densityChildEnergy p hp hcop hg pool Ψ₁ Ψ₂ m T V₁ V₂ X X (2*J)/(X*F) ≤
globalTerminalConstant A M*(X*F) := by
calc
_ ≤ globalTerminalConstant A M*K*X := he
_ ≤ globalTerminalConstant A M*F*X :=
mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hKF hc0) hX.le
_ = globalTerminalConstant A M*(X*F) := by ring
convert (div_le_iff₀ hXF).mp he' using 1 ; ring
end SecondPassIntegration
open scoped BigOperators Classical
open MeasureTheory
namespace SecondPassArithmetic
open ActualEisensteinCubic
open FirstPassCubeLabels (primeProduct primeProductNorm firstLogDensity)
open SecondPassIntegration (densityChildEnergy)
open ConcreteTraceCRT (eisEmbedding)
open RayFourExpansion (RayCharacter crossCoeff)
section
variable {ι : Type*} [DecidableEq ι] (p : ι → ActualEisensteinCubic.O)
[∀i,(Ideal.span {p i}).IsMaximal]
def globalQuantitativeSource (pool : Finset ι) (blocks : Finset (GlobalCubeBlock ι))
(K ell B F M H U : ℝ) (side : Bool) : Finset (GlobalSecondData ι) :=
globalFirstSupportedPool p pool
((globalFirstFamilySet pool blocks).filter
(fun b => primeProductNorm p b.common ≤ U ∧ primeProductNorm p b.firstCommon ≤ U))
(fun b G E => (globalFirstConcreteCutoff p K ell B F M H side b G E).erase 0) ell M side
theorem globalQuantitativeSource_block_mem (pool : Finset ι)
(blocks : Finset (GlobalCubeBlock ι)) (K ell B F M H U : ℝ) (side : Bool)
(x : GlobalSecondData ι) (hx : x∈globalQuantitativeSource p pool blocks K ell B F M H U side) :
x.first.block∈blocks := by
have hx' := (mem_globalFirstExpansionPool pool _ _ x).mp (Finset.mem_filter.mp hx).1
exact ((mem_globalFirstFamilySet pool blocks x.first).mp (Finset.mem_filter.mp hx'.1).1).1
theorem globalQuantitativeSource_frequency_ne_zero (pool : Finset ι)
(blocks : Finset (GlobalCubeBlock ι)) (K ell B F M H U : ℝ) (side : Bool)
(x : GlobalSecondData ι) (hx : x∈globalQuantitativeSource p pool blocks K ell B F M H U side) :
x.source.frequency ≠ 0 :=
globalFirstSupportedPool_frequency_ne_zero p pool _ _ ell M side x hx
end
theorem globalFirstRayChildBudget_canonical_bound (deltaLoss : ℝ) (hδ : 0<deltaLoss) (ε : ℝ) (hε : 0<ε) :
∃ Clo Chi : ℝ,0<Clo ∧ 0<Chi ∧ ∀ {ι : Type*} [DecidableEq ι]
(p : ι → ActualEisensteinCubic.O) (hp : ∀i,p i≠0) [∀i,(Ideal.span {p i}).IsMaximal]
(hcop : Pairwise (Function.onFun IsCoprime (fun i => Ideal.span {p i})))
(hg : ∀i,lambda∉Ideal.span {p i}) (_hc : ∀i,ringChar (ActualEisensteinCubic.O⧸Ideal.span {p i})≠2)
(_hinj : Function.Injective (fun i => Ideal.span {p i}))
(pool : Finset ι) (blocks : Finset (GlobalCubeBlock ι)) (side : Bool)
(Ψ : ActualEisensteinCubic.O →* ℂ) (m : ActualEisensteinCubic.O) (windows : Fin 7 → ℝ → ℂ)
(C Γ E K ell B F M H U Z θ A₀ Vmax : ℝ) (N J : ℕ),
0≤C → 0≤Γ → 0≤E → 1≤U → 0<K → 0<ell → 1≤B → 1≤F → 0≤H →
K≤U → ell≤U → B≤U → H≤U → Real.exp M≤U → 0<Z → 0≤A₀ → 0≤Vmax →
(∀t,‖windows 5 t‖≤Vmax) → (∀t,‖windows 6 t‖≤Vmax) →
(∀t,windows 5 t≠0 → |t|≤A₀) → (∀t,windows 6 t≠0 → |t|≤A₀) →
(∀u,‖Ψ u‖≤1) →
(∀b∈blocks,‖eisEmbedding (primeProduct p b.cube.support b.cube.leftExponent)‖^2≤B) →
(∀b∈blocks,‖eisEmbedding (primeProduct p b.cube.support b.cube.rightExponent)‖^2≤B) →
(let source := globalQuantitativeSource p pool blocks K ell B F M H U side
∀a : RayCharacter×RayCharacter,∀r : FirstCoreIndex,
∀j∈(globalLogBox (globalNormCaps ell B (globalRowScaleFloor K ell B F M) M H)).filter
(fun j => globalBinRadial ell (globalPooledRowScale K ell B F j) j<Z^θ),
∀ray : SecondRayIndex,∀q∈globalBinTriples p source side j,
let Ψmode := firstCoreTwist side (if side then a.1 else a.2) Ψ r
densityChildEnergy p hp hcop hg pool (secondRayMinus Ψmode ray) (secondRayPlus Ψmode ray)
(fixedTripleMask m q) (globalArithmeticTargets p source side q j) (windows 5) (windows 6)
(globalPooledColumnScale ell j) (globalPooledColumnScale ell j) (2*J) ≤
E*(globalPooledColumnScale ell j*globalPooledLabelScale j)^2) →
globalFirstRayChildBudget p hp hcop hg pool blocks Ψ m windows C Γ ε K ell B F M H U (N+1) (2*J) side ≤
(∫t : ℝ,firstLogDensity 0 t)*(512*(512*32))*Γ*C*globalRayTripleConstant*
((ell*B^3)*F)*U^(deltaLoss+8*ε)*
(E*Clo+globalTerminalConstant A₀ Vmax*K*Chi/Z^(θ*N)) := by
obtain ⟨Clo,Chi,hClo,hChi,hbound⟩ := globalChildBudget_canonical_bound deltaLoss hδ ε hε
refine ⟨Clo,Chi,hClo,hChi,?_⟩
intro ι _ p hp _ hcop hg hc hinj pool blocks side Ψ m windows C Γ E K ell B F M H U Z θ A₀ Vmax N J
hC hΓ hE hU hK hell hB hF hH hKU hellU hBU hHU heU hZ hA hV hV₁ hV₂ hVs₁ hVs₂ hΨ hb₁ hb₂ he
let source := globalQuantitativeSource p pool blocks K ell B F M H U side
let Q := (∫t : ℝ,firstLogDensity 0 t)*Γ*C*globalRayTripleConstant*((ell*B^3)*F)*
U^(deltaLoss+8*ε)*(E*Clo+globalTerminalConstant A₀ Vmax*K*Chi/Z^(θ*N))
have hI : 0≤∫t : ℝ,firstLogDensity 0 t :=
integral_nonneg (fun t => FirstPassCubeLabels.firstLogDensity_nonneg 0 t)
have hQ : 0≤Q := by
have ht := globalTerminalConstant_nonneg A₀ Vmax
have hB0 := zero_lt_one.trans_le hB
have hF0 := zero_lt_one.trans_le hF
dsimp [Q]
unfold globalRayTripleConstant
positivity
have hrow (a : RayCharacter×RayCharacter) (r : FirstCoreIndex) :
(∫t : ℝ,firstLogDensity 0 t)*globalChildBudget p hp hcop hg pool source
(firstCoreTwist side (if side then a.1 else a.2) Ψ r) m windows (Γ*firstCoreUniformWeight r*C)
ε 0 0 K ell B F M H (N+1) (2*J) side ≤ firstCoreUniformWeight r*Q := by
have hcoeff : 0≤Γ*firstCoreUniformWeight r*C := by
unfold firstCoreUniformWeight
positivity
have hk : ∀x∈source,x.source.frequency≠0 :=
fun x hx => globalQuantitativeSource_frequency_ne_zero p pool blocks K ell B F M H U side x hx
have hb₁' : ∀x∈source,‖eisEmbedding (primeProduct p x.cube.support x.cube.leftExponent)‖^2≤B :=
fun x hx => hb₁ x.first.block (globalQuantitativeSource_block_mem p pool blocks K ell B F M H U side x hx)
have hb₂' : ∀x∈source,‖eisEmbedding (primeProduct p x.cube.support x.cube.rightExponent)‖^2≤B :=
fun x hx => hb₂ x.first.block (globalQuantitativeSource_block_mem p pool blocks K ell B F M H U side x hx)
have hr := hbound p hp hcop hg hc hinj pool source side
(firstCoreTwist side (if side then a.1 else a.2) Ψ r) m windows (Γ*firstCoreUniformWeight r*C)
E K ell B F M H U Z θ A₀ Vmax N J hcoeff hE hU hK hell hB hF hH
hKU hellU hBU hHU heU hZ hA hV hV₁ hV₂ hVs₁ hVs₂
(fun u => (firstCoreTwist_norm_le side (if side then a.1 else a.2) Ψ r u).trans (hΨ u))
hk hb₁' hb₂' (he a r)
exact (mul_le_mul_of_nonneg_left hr hI).trans_eq (by dsimp [Q]; ring)
have hmass : (∑a : RayCharacter×RayCharacter,‖crossCoeff a.1 a.2‖)≤512 := by
simpa only [Fintype.sum_prod_type] using RayFourExpansion.crossCoeff_sum_norm_le
calc
_ ≤ ∑a : RayCharacter×RayCharacter,‖crossCoeff a.1 a.2‖*
∑r : FirstCoreIndex,firstCoreUniformWeight r*Q :=
Finset.sum_le_sum (fun a _ => mul_le_mul_of_nonneg_left
(Finset.sum_le_sum (fun r _ => hrow a r)) (norm_nonneg _))
_ = (∑a : RayCharacter×RayCharacter,‖crossCoeff a.1 a.2‖)*
(∑r : FirstCoreIndex,firstCoreUniformWeight r)*Q := by
simp only [←Finset.sum_mul,mul_assoc]
_ ≤ (512*(512*32))*Q :=
mul_le_mul_of_nonneg_right (mul_le_mul hmass firstCoreUniformWeight_mass
(Finset.sum_nonneg (fun r _ => by unfold firstCoreUniformWeight; positivity)) (by norm_num)) hQ
_ = _ := by dsimp [Q]; ring
theorem globalFirstQuantitativeBudget_canonical_bound (deltaLoss : ℝ) (hδ : 0<deltaLoss) (ε : ℝ) (hε : 0<ε) :
∃ Clo Chi : ℝ,0<Clo ∧ 0<Chi ∧ ∀ {ι : Type*} [DecidableEq ι]
(p : ι → ActualEisensteinCubic.O) (hp : ∀i,p i≠0) [∀i,(Ideal.span {p i}).IsMaximal]
(hcop : Pairwise (Function.onFun IsCoprime (fun i => Ideal.span {p i})))
(hg : ∀i,lambda∉Ideal.span {p i}) (_hc : ∀i,ringChar (ActualEisensteinCubic.O⧸Ideal.span {p i})≠2)
(_hinj : Function.Injective (fun i => Ideal.span {p i}))
(pool : Finset ι) (blocks : Finset (GlobalCubeBlock ι)) (side : Bool)
(Ψ : ActualEisensteinCubic.O →* ℂ) (m : ActualEisensteinCubic.O) (windows : Fin 7 → ℝ → ℂ)
(C Cd Ct Γ E K ell B F M H U Z θ A₀ Vmax : ℝ) (N J Ntail : ℕ),
0≤C → 0≤Γ → 0≤E → 1≤U → 0<K → 0<ell → 1≤B → 1≤F → 0≤H →
K≤U → ell≤U → B≤U → H≤U → Real.exp M≤U → 0<Z → 0≤A₀ → 0≤Vmax →
(∀t,‖windows 5 t‖≤Vmax) → (∀t,‖windows 6 t‖≤Vmax) →
(∀t,windows 5 t≠0 → |t|≤A₀) → (∀t,windows 6 t≠0 → |t|≤A₀) →
(∀u,‖Ψ u‖≤1) →
(∀b∈blocks,‖eisEmbedding (primeProduct p b.cube.support b.cube.leftExponent)‖^2≤B) →
(∀b∈blocks,‖eisEmbedding (primeProduct p b.cube.support b.cube.rightExponent)‖^2≤B) →
(let source := globalQuantitativeSource p pool blocks K ell B F M H U side
∀a : RayCharacter×RayCharacter,∀r : FirstCoreIndex,
∀j∈(globalLogBox (globalNormCaps ell B (globalRowScaleFloor K ell B F M) M H)).filter
(fun j => globalBinRadial ell (globalPooledRowScale K ell B F j) j<Z^θ),
∀ray : SecondRayIndex,∀q∈globalBinTriples p source side j,
let Ψmode := firstCoreTwist side (if side then a.1 else a.2) Ψ r
densityChildEnergy p hp hcop hg pool (secondRayMinus Ψmode ray) (secondRayPlus Ψmode ray)
(fixedTripleMask m q) (globalArithmeticTargets p source side q j) (windows 5) (windows 6)
(globalPooledColumnScale ell j) (globalPooledColumnScale ell j) (2*J) ≤
E*(globalPooledColumnScale ell j*globalPooledLabelScale j)^2) →
globalFirstQuantitativeBudget p hp hcop hg pool blocks Ψ m windows
C Cd Ct Γ ε K ell B F M H U (N+1) (2*J) Ntail side ≤
(∫t : ℝ,firstLogDensity 0 t)*(512*(512*32))*Γ*((ell*B^3)*F)*
((B*U)^ε*(Cd+Ct*globalFirstTailFactor K ell B F U H Ntail)+
C*globalRayTripleConstant*U^(deltaLoss+8*ε)*
(E*Clo+globalTerminalConstant A₀ Vmax*K*Chi/Z^(θ*N))) := by
obtain ⟨Clo,Chi,hClo,hChi,hbound⟩ := globalFirstRayChildBudget_canonical_bound deltaLoss hδ ε hε
refine ⟨Clo,Chi,hClo,hChi,?_⟩
intro ι _ p hp _ hcop hg hc hinj pool blocks side Ψ m windows C Cd Ct Γ E K ell B F M H U Z θ A₀ Vmax N J Ntail
hC hΓ hE hU hK hell hB hF hH hKU hellU hBU hHU heU hZ hA hV hV₁ hV₂ hVs₁ hVs₂ hΨ hb₁ hb₂ he
have hr := hbound p hp hcop hg hc hinj pool blocks side Ψ m windows C Γ E K ell B F M H U Z θ A₀ Vmax N J
hC hΓ hE hU hK hell hB hF hH hKU hellU hBU hHU heU hZ hA hV hV₁ hV₂ hVs₁ hVs₂ hΨ hb₁ hb₂ he
unfold globalFirstQuantitativeBudget
calc
_ ≤ (∫t : ℝ,firstLogDensity 0 t)*(512*(512*32))*Γ*(ell*B^3*F)*(B*U)^ε*
(Cd+Ct*globalFirstTailFactor K ell B F U H Ntail)+
(∫t : ℝ,firstLogDensity 0 t)*(512*(512*32))*Γ*C*globalRayTripleConstant*
((ell*B^3)*F)*U^(deltaLoss+8*ε)*
(E*Clo+globalTerminalConstant A₀ Vmax*K*Chi/Z^(θ*N)) := add_le_add le_rfl hr
_ = _ := by ring
end SecondPassArithmetic
end
end OAI

Xet Storage Details

Size:
34.6 kB
·
Xet hash:
8f5fa050a58955ca558b8741c3487be1d7177a5569f298d45dcdcf6ebf678e1e

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