Formalism/SharpRestriction/RamificationFrobenius/TotientGaloisClasses/TopWin.lean
51ChebyshevInequalityAtWindowScale @core @Tied la Λ := by52obtain ⟨ε₀, h0, hE⟩ := hE53obtain ⟨eD, eL, ε₁, h1, hC⟩ := hC54refine ⟨eD, eL, min ε₀ ε₁, lt_min h0 h1, fun eps he hl => ?_⟩55obtain ⟨K, hK⟩ := hC eps he (hl.trans_le (min_le_right _ _))56obtain ⟨Fm, a, b, c, d⟩ := hE eps he (hl.trans_le (min_le_left _ _)) K57exact ⟨Fm, b, c, hK Fm a b d⟩5859theorem exists_small_eps (C : ℝ) {δ ε₁ : ℝ} (hδ : 0 < δ) (h1 : 0 < ε₁) : ∃ ε : ℝ, 0 < ε ∧ ε < ε₁ ∧ C * ε ≤ δ := by60have hp : 0 < |C| + 1 := by positivity61have h0 : 0 < min (ε₁ / 2) (δ / (|C| + 1)) := lt_min (by linarith) (div_pos hδ hp)62refine ⟨_, h0, lt_of_le_of_lt (min_le_left _ _) (by linarith), ?_⟩63have a1 := mul_le_mul_of_nonneg_right (le_abs_self C) h0.le64have a2 : min (ε₁ / 2) (δ / (|C| + 1)) ≤ δ / (|C| + 1) := min_le_right _ _65rw [le_div_iff₀ hp] at a266nlinarith6768theorem level_of_tiedWin {Λ : Level} {la : ℝ} (h112 : ChebyshevInequalityOnWindows @core @Tied Λ) (hB : Λ.FormBAt la)69(h : ChebyshevInequalityAtWindowScale @core @Tied la Λ) : Λ.ZeroFreeLevel := by70obtain ⟨eD, eL, ε₁, h1, h⟩ := h71intro ψ hψ s hs72have hm1 : min (s.re - 1 / 2) (1 / 2) ≤ s.re - 1 / 2 := min_le_left _ _73have hm2 : min (s.re - 1 / 2) (1 / 2) ≤ 1 / 2 := min_le_right _ _74have hm0 : 0 < min (s.re - 1 / 2) (1 / 2) := lt_min (by linarith) (by norm_num)75obtain ⟨ε, hε0, hεlt, hCe⟩ := exists_small_eps (eD + eL + 7) (half_pos hm0) h176obtain ⟨Fm, hE, hW, hT⟩ := h ε hε0 hεlt77obtain ⟨x1, hx⟩ := h112 eD eL ε hε0 Fm hE hT78refine hB (1 / 2 + min (s.re - 1 / 2) (1 / 2) / 2) (by linarith) (by linarith)79(((windows_iff _ la).1 hW).mono (x0 := max x1 1) fun y hy hw => ?_) ψ hψ s (by linarith)80exact (hx y (le_of_max_le_left hy) hw).trans81(Real.rpow_le_rpow_of_exponent_le (le_of_max_le_right hy) (by linarith))8283theorem zeroFreeOn_of_tiedWin {Q : PChar → Prop}84(h : ∀ ψ, Q ψ → ∃ (Λ : Level) (la : ℝ), ψ ∈ Λ.KEPT ∧ 1 < la ∧ ChebyshevInequalityOnWindows @core @Tied Λ ∧ Λ.FormB ∧85ChebyshevInequalityAtWindowScale @core @Tied la Λ) : ZeroFreeOn Q :=86zeroFreeOn_of_levels fun ψ hψ => by87obtain ⟨Λ, la, a, b, c, d, e⟩ := h ψ hψ88exact ⟨Λ, a, level_of_tiedWin c (d la b) e⟩8990theorem zeroFreeOn_of_tiedWin_cyc {Q : PChar → Prop} {la : ℝ} (hla : 1 < la)91(h112 : ∀ ψ, Q ψ → ChebyshevInequalityOnWindows @core @Tied (Level.cyc ψ)) (hB : ∀ ψ, Q ψ → (Level.cyc ψ).FormB)92(h : ∀ ψ, Q ψ → ChebyshevInequalityAtWindowScale @core @Tied la (Level.cyc ψ)) : ZeroFreeOn Q :=93zeroFreeOn_of_tiedWin fun ψ hψ => ⟨_, la, Level.mem_cyc ψ, hla, h112 ψ hψ, hB ψ hψ, h ψ hψ⟩9495theorem TiedAll.tiedWin {Λ : Level} (h : TiedAll @core @Tied Λ) (la : ℝ) : ChebyshevInequalityAtWindowScale @core @Tied la Λ := by96obtain ⟨eD, eL, ε₁, h1, h⟩ := h97refine ⟨eD, eL, ε₁, h1, fun eps a b => ?_⟩98obtain ⟨Fm, c, d, e⟩ := h eps a b99exact ⟨Fm, c, d.windows la, e⟩100