import OAI.NumberTheory.DirichletL.Reflection.BranchCount import OAI.NumberTheory.DirichletL.Reflection.TruncatedSource namespace OAI namespace SevenEighths.InverseReflectedPhase open scoped Classical BigOperators open ActualEisensteinCubic CubicEisenstein CompletedGauss CompletedDyadic CanonicalQuadraticSieve noncomputable section lemma retained_count_le_box (scale B : ℝ) : (retainedDyads scale B).card≤(retainedDyadicBox scale B).card := Finset.card_filter_le _ _ lemma cutoff_ratio_cap (Z scale δ Lscale : ℝ) (hZ : 1≤Z) (hδL : 0≤δ+Lscale) (hscale : scale⁻¹≤Z^Lscale) : max 1 (16*Z^δ/scale)≤16*Z^(δ+Lscale) := by have hz : 0