math / data /lean /OAI /NumberTheory /Jacobsthal /Partitions /GeometricTotalBoxMass.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.17 kB
import OAI.NumberTheory.Jacobsthal.Paths.OutsideExceptionsWitness
namespace OAI
namespace Erdos970
open scoped _root_.Erdos970
namespace NumberTheoryLean.GeometricTotalBoxMass
open FinitePathGeometry PrimeHistories PrimeBinMembership ActualSafeBoxMass
open GeometricBoxImages SafeSubsetBoxGeometry CanonicalSubsetBox FilteredBoxWordMass
open LogarithmicBinScale ErdosSubsetWord
theorem uniform_geometric_box_mass (K : ℝ) (hK : 3 ≀ K) :
βˆƒ C Bβ‚€ wβ‚€ : ℝ,0 < C ∧ 3 ≀ Bβ‚€ ∧ 1 < wβ‚€ ∧
βˆ€ B w top : ℝ,Bβ‚€ ≀ B β†’ wβ‚€ ≀ w β†’ βˆ€ (hw : 1 < w) (htop : w < top),
βˆ€ xi Clen : ℝ,βˆ€ hxi : 0 < xi,1 ≀ Clen β†’ Real.log B ≀ 2*Real.log w β†’ 2*Clen*xi ≀ 1 β†’
βˆ€ z : Node,z.side=.even β†’ 199/100 ≀ z.ratio β†’ z.ratio ≀ 23/10 β†’ Consistent z β†’
z.cutoff=B β†’ z.closed=true β†’ w^B=top β†’ βˆ€ L alpha beta : ℝ,
B^2*(βˆ‘ m∈geometricBoxes hw htop hxi Clen B K L alpha beta z,selectionMass (globalBins w top xi) m) ≀ C := by
obtain ⟨C,Bβ‚€,W,hC,hBβ‚€,hW,hTotal⟩ := uniform_safe_box_mass K hK
refine ⟨C,Bβ‚€,max W (Real.exp 1),hC,hBβ‚€,hW.trans_le (le_max_left _ _),?_⟩
intro B w top hB hwβ‚€ hw htop xi Clen hxi hClen hcomp hsmall z hi h199 h23 hz hcut hclosed hpower L alpha beta
have hlog : 1 ≀ Real.log w := by
have hh := Real.log_le_log (Real.exp_pos 1) ((le_max_right _ _).trans hwβ‚€)
simpa only [Real.log_exp] using hh
have hmesh : 2*(xi/Real.log w) ≀ 6*(2*Clen*xi) := by
have hh := div_le_self hxi.le hlog
nlinarith
exact hTotal B w top hB ((le_max_left _ _).trans hwβ‚€) hw htop xi Clen hxi
(by linarith) hcomp hsmall z hi h199 h23 hz hcut hclosed hpower
(geometricBoxes hw htop hxi Clen B K L alpha beta z)
(geometric_box_anchor hw htop hxi (by linarith) hcomp hmesh z)
theorem unlisted_box_transfer {w top xi Cs C B K L alpha beta sigma A : ℝ}
(hw : 1 < w) (htop : w < top) (hxi : 0 < xi) (hsigma : 0 ≀ sigma)
(a : β„• β†’ β„•) (z : Node) (Q : (Fin (binCount w top xi) β†’ β„•) β†’ Finset β„š)
(F : Finset (List β„•))
(hTotal : B^2*(βˆ‘ m∈geometricBoxes hw htop hxi C B K L alpha beta z,selectionMass (globalBins w top xi) m) ≀ A)
(hBox : βˆ€ m∈geometricBoxes hw htop hxi C B K L alpha beta z,
selectedWordMass (globalBins w top xi) m
(ExpandedCompactPartition.unlistedGeometric hw htop hxi Cs C B K L alpha beta a z Q F)
≀ sigma*selectionMass (globalBins w top xi) m) :
B^2*(βˆ‘ ps∈ExpandedCompactPartition.unlistedGeometric hw htop hxi Cs C B K L alpha beta a z Q F,
ErdosPrimeInputs.PrimePrefixMass.prefixWeight ps) ≀ sigma*A := by
rw [unlisted_geometric_box_mass hw htop hxi a z Q F]
calc
_ ≀ B^2*(βˆ‘ m∈geometricBoxes hw htop hxi C B K L alpha beta z,sigma*selectionMass (globalBins w top xi) m) :=
mul_le_mul_of_nonneg_left (Finset.sum_le_sum hBox) (sq_nonneg B)
_ = sigma*(B^2*(βˆ‘ m∈geometricBoxes hw htop hxi C B K L alpha beta z,selectionMass (globalBins w top xi) m)) := by
rw [← Finset.mul_sum]
ring
_ ≀ _ := mul_le_mul_of_nonneg_left hTotal hsigma
end NumberTheoryLean.GeometricTotalBoxMass
end Erdos970
end OAI