theoremsoft_effective_bounds (a : ℕ→ℕ) (r : ℚ) (qf : ℕ) (RB : ℝ) (hR : 0 < R)
(hsoft : effectiveSize a r qf R≤B) :
(r.den : ℝ) ≤B∧ (badPrimeProduct (fun t => (a t : ℤ)) r qf : ℝ) ≤B∧
|(effectiveIntercept a r qf : ℝ)| ≤R*B:=by
proof · 10
lines
havehH : (effectiveModulus a r qf : ℝ) ≤B:= (le_max_left _ _).trans hsoft
havehC : |(effectiveIntercept a r qf : ℝ)|/R≤B:= (le_max_right _ _).trans hsoft
refine ⟨?_,?_,?_⟩
· havehh : (r.den : ℝ) ≤ effectiveModulus a r qf :=by exact_mod_cast denominator_le_effectiveModulus a r qf
exact hh.trans hH
· havehh : (badPrimeProduct (fun t => (a t : ℤ)) r qf : ℝ) ≤ effectiveModulus a r qf :=by
exact_mod_cast nonaligned_le_effectiveModulus a r qf
exact hh.trans hH
· have hh := (div_le_iff₀ hR).mp hC
nlinarith
theoremlarge_factor_aligns_of_soft (a : ℕ→ℕ) (r : ℚ) (qf : ℕ) (RB : ℝ) (hR : 0 < R)
(hsoft : effectiveSize a r qf R≤B) (t : ℕ) (ht : t ∈ qf.primeFactors) (hlarge : B < (t : ℝ)) :
aligns (fun u => (a u : ℤ)) r t :=by
proof · 8
lines
classical
by_contra hn
havehmem : t ∈ badPrimeFactors (fun u => (a u : ℤ)) r qf :=Finset.mem_filter.mpr ⟨ht,hn⟩
havehd : t ∣ badPrimeProduct (fun u => (a u : ℤ)) r qf :=Finset.dvd_prod_of_mem _ hmem
have hle :=Nat.le_of_dvd (badPrimeProduct_pos _ r qf) hd
havehleR : (t : ℝ) ≤ badPrimeProduct (fun u => (a u : ℤ)) r qf :=by exact_mod_cast hle
have hbound := (soft_effective_bounds a r qf RB hR hsoft).2.1
linarith
theoremsource_effective_point_domination (alpha : ℝ) (ha : 0 < alpha) :
∃C : ℝ,0 < C∧∀xi : ℝ,0 < xi → xi ≤1→∀ᶠ z : ℝin atTop,
∀ (Rtheta : ℝ) (a : ℕ→ℕ) (r : ℚ) (qf : ℕ),Squarefree qf →
z^alpha ≤R→ xi/4≤ theta → theta ≤ xi →
(effectiveModulus a r qf : ℝ) ≤R^((4 : ℝ)/5) →
effectiveSize a r qf R/(effectiveModulus a r qf : ℝ) ≤ (sourceZ z)^12→∃ (hw : 0≤ sourceW z) (hP : ∀ p ∈ primeBin R theta,p.Prime)
(hlarge : ∀ p ∈ primeBin R theta,sourceW z < (p : ℝ)),
∀E : ModelPoint (sourceW z) (effectiveModulus a r qf) →Prop,
((actualPrimeEvent (primeBin R theta) (sourceW z) (effectiveModulus a r qf)
(effectiveIntercept a r qf) hw hP hlarge E).card : ℝ)/((primeBin R theta).card : ℝ) ≤C*modelMass R xi (sourceW z) (effectiveModulus a r qf) (effectiveIntercept a r qf) E:=by
proof · 7
lines
obtain ⟨C,hC,hdom⟩ := source_prime_model_domination alpha ha
refine ⟨C,hC,?_⟩
intro xi hxi hxi1
filter_upwards [hdom xi hxi hxi1] with z hz
intro R theta a r qf hq hRlo htl htu hHsmall hRatio
exact hz R theta (effectiveModulus a r qf) (effectiveIntercept a r qf)
hRlo htl htu (effectiveModulus_pos a r qf) (effective_coordinates_gcd a r qf hq) hHsmall hRatio
theoremsource_effective_heights (ClenCparent : ℝ) (hClen : 0≤Clen) (hCparent : 0≤Cparent) :
∀ᶠ z : ℝin atTop,∀xi : ℝ,0 < xi → xi ≤1→∀m : Fin (binCount (sourceW z) z xi) →ℕ,
((∑ i,m i : ℕ) : ℝ) ≤Clen*Real.log (sourceB z) →∀ (a : ℕ→ℕ) (r : ℚ) (q e p : ℕ) (R : ℝ),
q ∈ cofactorChoices (actualBins z xi) m →0 < e →0 < p →Squarefree (q*e) →1≤R→
p*(q*e) ≤ sourceY z →Real.logb (sourceW z) ((sourceY z : ℝ)/((p : ℝ)*q)) ≤Cparent→
((r.den*badPrimeProduct (fun t => (a t : ℤ)) r q : ℕ) : ℝ) ≤R*(sourceZ z)^10→
(r.num.natAbs : ℝ) ≤ cofactorScale z xi m*R*(sourceZ z)^10→
(effectiveModulus a r (q*e) : ℝ) ≤R*(sourceZ z)^11∧
effectiveSize a r (q*e) R/(effectiveModulus a r (q*e) : ℝ) ≤ (sourceZ z)^12:=by
proof · 22
lines
filter_upwards [source_span_geometry,source_extension_le_Z Cparent hCparent,
source_bin_factor_subpower Clen1 hClen zero_lt_one,sourceZ_tendsto_atTop.eventually_ge_atTop 2]
with z hspan hext hfactor hZ
intro xi hxi hxi1 m hm a r q e p R hq he hp hqf hR hFinal hParent hStructure hRaw
have hqpos := actual_cofactor_positive hspan.1 hspan.2.1 hxi m q hq
havehqR : (0 : ℝ) < q :=by exact_mod_cast hqpos
have heZ := hext p q e hp hqpos he hFinal hParent
refine ⟨effectiveModulus_height_of_extension a r q e hqpos he R (sourceZ z) (by linarith)
(by linarith) hStructure heZ,?_⟩
have hrange := actual_cofactor_range hspan.1 hspan.2.1 hxi m q hq
havehratio : cofactorScale z xi m/(q : ℝ) ≤ sourceZ z :=bycalc
_ ≤ (1+xi)^(∑ i,m i) :=by
apply (div_le_iff₀ hqR).mpr
have hh := (div_le_iff₀ (pow_pos (bylinarith : 0 < 1+xi) _)).mp hrange.1
nlinarith
_ ≤ _ :=by simpa only [Real.rpow_one] using hfactor xi (∑ i,m i) hxi hxi1 hm
havehqle : q ≤ q*e :=by nlinarith
havehA : |(r.num : ℝ)| ≤ cofactorScale z xi m*R*(sourceZ z)^10:=by
simpa only [Nat.cast_natAbs,Int.cast_abs] using hRaw
exact effective_size_ratio_le a r (q*e) hqf q hqpos hqle (cofactorScale z xi m) R (sourceZ z)
(actual_cofactorScale_pos hspan.1 hspan.2.1 hxi m).le hR hZ hratio hA
theoremsoft_endpoint_eligible (Y : ℕ) (a : ℕ→ℕ) (r : ℚ) (qf : ℕ) (hq : Squarefree qf)
(p : ℕ) (hp : p.Prime) (halign : aligns (fun t => (a t : ℤ)) r p)
(R w Cs : ℝ) (hR : 0 < R) (hRp : R≤ (p : ℝ)) (hw : 2≤ w)
(hY : p*qf ≤Y) (hsoft : effectiveSize a r qf R≤ w^Cs) :
(r.den : ℝ) ≤ w^Cs∧ (r.num.natAbs : ℝ) ≤ (Y : ℝ)*w^(Cs+2) ∧∀ t ∈ (p*qf).primeFactors,Cs < Real.logb w (t : ℝ) → aligns (fun u => (a u : ℤ)) r t :=by
proof · 6
lines
have hheight := soft_global_heights Y a r qf hq p hp.pos R w Cs hR hRp hw hY hsoft
refine ⟨hheight.1,hheight.2,?_⟩
intro t ht hlog
havehtpos : (0 : ℝ) < t :=by exact_mod_cast Nat.pos_of_mem_primeFactors ht
havehpow : w^Cs < (t : ℝ) := (Real.lt_logb_iff_rpow_lt (bylinarith : 1 < w) htpos).mp hlog
exact soft_full_factor_alignment a r qf hq p hp halign R (w^Cs) hR hsoft t ht hpow
theoremstructured_endpoint_heights (CM : ℝ) (hC : 0≤C) (hM : 0≤M) :
∀ᶠ top : ℝin atTop,
∀xi : ℝ,∀hxi : 0 < xi,xi ≤1→2*C*xi ≤1→∀ (hw : 1 < sourceW top) (htop : sourceW top < top) (K aStar X : ℝ),0≤ aStar →∀ (z : Node),0 < sourceY top →
z.gap = Real.log (sourceY top : ℝ)/Real.log (sourceW top)-aStar+2→Valid z.side z.ratio →Consistent z →StrongState z → z.closed = true→ (sourceW top)^z.cutoff = top →∀ (m : Fin (binCount (sourceW top) top xi) →ℕ),SafeAnchor hw htop hxi C (sourceB top) K z m →∀ f ∈ selections (globalBins (sourceW top) top xi) m,
∀ (i j : Fin (binCount (sourceW top) top xi)),j < i → m i = 1→
boundedEdgeBin (sourceW top) top xi (sourceY top) m MX j →∀ (residue : ℕ→ℕ) (r : ℚ) (cp : ℝ),
r ∈ sourceRationalList (globalBins (sourceW top) top xi i) (fun t => (residue t : ℤ))
(cofactorScale top xi (parentCofactorMultiplicity m i j)) (lower (sourceW top) top xi i) (sourceZ top) cp →
((r.den*badPrimeProduct (fun t => (residue t : ℤ)) r (selectionProduct (parentCofactorSelection f i j)) : ℕ) : ℝ) ≤
lower (sourceW top) top xi i*(sourceZ top)^10→
(effectiveModulus residue r (selectionProduct (eraseSelection f i)) : ℝ) ≤
lower (sourceW top) top xi i*(sourceZ top)^11∧
effectiveSize residue r (selectionProduct (eraseSelection f i)) (lower (sourceW top) top xi i)/
(effectiveModulus residue r (selectionProduct (eraseSelection f i)) : ℝ) ≤ (sourceZ top)^12:=by
proof · 45
lines
filter_upwards [source_effective_heights C (M+1) hC (by linarith),
Real.tendsto_log_atTop.eventually JacobsthalSourceScale.source_scale_eventually] with top hheights hscale
intro xi hxi hxi1 hDelta hw htop K aStar X ha z hY hroot hs hz hg hclosed hcap m hanchor
f hf i j hji hi hj residue r cp hraw hstructure
letP:= globalBins (sourceW top) top xi
let cm := parentCofactorMultiplicity m i j
let p := pickedPrime f i
let q := selectionProduct (parentCofactorSelection f i j)
let e := pickedPrime f j*selectionProduct (belowSelection f j)
let qf := selectionProduct (eraseSelection f i)
letR:= lower (sourceW top) top xi i
havehcomp : Real.log (sourceB top) ≤2*Real.log (sourceW top) := hscale.2.2.2.2have hmj := bounded_edge_singleton m j hj
have hcoords := full_selection_coordinates P m f hf i j hi hmj
havehp : p ∈P i := hcoords.1havehq : q ∈ cofactorChoices (actualBins top xi) cm := hcoords.2.2havehppos : 0 < p := (bin_prime_in_source (zero_lt_one.trans hw) htop hxi i hp).1.pos
havehe : 0 < e := endpoint_extra_factor_pos hw htop hxi m f hf j hmj
havehsplit : qf = q*e := endpoint_cofactor_split hw htop hxi m f hf i j hji hmj
have hfErase := erase_selection_mem P m f hf i
have hQf := (erased_cofactor_arithmetic hw htop hxi m i (eraseSelection f i) hfErase).1havehQsplit : Squarefree (q*e) := hsplit ▸ hQf
havehprod : selectionProduct f = p*qf := isolated_product P m f hf i hi
havehprodPos : 0 < selectionProduct f :=by
rw [hprod]
exact Nat.mul_pos hppos (Nat.pos_of_ne_zero hQf.ne_zero)
have htotal := full_box_total_length_lower hw htop hxi hC hcomp (sourceY top) hY z hroot
hs hz hg hclosed hcap m hanchor f hf
have hFinal := product_le_Y_of_length (sourceW top) aStar hw ha (sourceY top) (selectionProduct f) hY hprodPos htotal
rw [hprod,hsplit] at hFinal
havehRlow : sourceW top ≤R:= (bin_source_bounds (zero_lt_one.trans hw) htop hxi i).1havehR1 : 1≤R:= hw.le.trans hRlow
have hparent := (cofactor_all_choice_lengths hw htop hxi hC hcomp (sourceY top) hY z hroot
hs hz hg hclosed hcap m hanchor i j hji hi hj).1 q hq p hp
havehparentBound : Real.logb (sourceW top) ((sourceY top : ℝ)/((p : ℝ)*q)) ≤M+1:=
hparent.trans (by linarith)
have hlen := anchor_total_length hw htop hxi z m hanchor
havehcm : ((∑ k,cm k : ℕ) : ℝ) ≤C*Real.log (sourceB top) :=
(Nat.cast_le.mpr (cofactor_total_le m i j)).trans hlen
have hSq := actual_cofactorScale_pos (zero_lt_one.trans hw) htop hxi cm
have hnum := ((mem_sourceRationalList (P i) (fun t => (residue t : ℤ)) hSq.le
(show0≤Rby linarith) r).mp hraw).1have hh := hheights xi hxi hxi1 cm hcm residue r q e p R hq he hppos hQsplit hR1 hFinal
hparentBound hstructure hnum
simpa only [← hsplit] using hh
theoremfull_endpoint_data {w top xi BCKaStar : ℝ}
(hw : 1 < w) (htop : w < top) (hxi : 0 < xi) (hC : 0≤C) (ha : 0≤ aStar)
(hcomp : Real.log B≤2*Real.log w) (Y : ℕ) (hY : 0 < Y) (z : Node)
(hroot : z.gap = Real.log (Y : ℝ)/Real.log w-aStar+2)
(hs : Valid z.side z.ratio) (hz : Consistent z) (hg : StrongState z)
(hclosed : z.closed = true) (hcap : w^z.cutoff = top)
(m : Fin (binCount w top xi) →ℕ) (hanchor : SafeAnchor hw htop hxi CBK z m)
(f : Fin (binCount w top xi) →Finsetℕ) (hf : f ∈ selections (globalBins w top xi) m)
(i : Fin (binCount w top xi)) (hi : m i = 1) :
Squarefree (selectionProduct (eraseSelection f i)) ∧ (pickedPrime f i).Prime∧
pickedPrime f i ∈ globalBins w top xi i ∧
pickedPrime f i*selectionProduct (eraseSelection f i) ≤Y:=by
proof · 10
lines
obtain ⟨p,hp,hfi,_hfill⟩ := singleton_selection_recovery _ m i hi f hf
havehpmem : pickedPrime f i ∈ globalBins w top xi i :=by simpa [pickedPrime,hfi] using hp
have hprime := (bin_prime_in_source (zero_lt_one.trans hw) htop hxi i hpmem).1have hsq := (erased_cofactor_arithmetic hw htop hxi m i (eraseSelection f i)
(erase_selection_mem _ m f hf i)).1have hlen := full_box_total_length_lower hw htop hxi hC hcomp Y hY z hroot hs hz hg hclosed hcap m hanchor f hf
rw [isolated_product _ m f hf i hi] at hlen
refine ⟨hsq,hprime,hpmem,?_⟩
exact product_le_Y_of_length w aStar hw ha Y _ hY
(Nat.mul_pos hprime.pos (Nat.pos_of_ne_zero hsq.ne_zero)) hlen