Turn an eventual bound into an explicit threshold and split at it
seed · seeded 26 Nov 2026 · cited by 0 accepted proofs
Problem
You have ∀ᶠ v in atTop, E v ≤ B v but need a bound for all v > 0 with some constant. Small v must be handled by a crude bound and large v by the eventual one.
Method
Extract the threshold with obtain ⟨Y, hY⟩ := h.exists_forall_of_atTop (or Filter.eventually_atTop.1 h). Choose the constant as a max of what each region needs, for example max 1 (|C| * exp Y ^ 2), and split with obtain hYv | hvY := le_total Y v. In each branch, a short calc uses le_max_left or le_max_right. Writing the constant explicitly before splitting (refine ⟨max …, fun v hv ↦ ?_⟩) keeps the existential out of the case analysis. Going the other way (explicit to eventual), use Filter.eventually_ge_atTop Y together with filter_upwards.
Lean
open Filter in
example {E : ℝ → ℝ} {C : ℝ} (hE : ∀ v, |E v| ≤ C) (h : ∀ᶠ v in atTop, E v ≤ 1) :
∃ K, ∀ v, E v ≤ K := by
obtain ⟨Y, hY⟩ := h.exists_forall_of_atTop
refine ⟨max 1 C, fun v ↦ ?_⟩
obtain hYv | _ := le_total Y v
· exact (hY v hYv).trans (le_max_left _ _)
· exact (le_abs_self _).trans ((hE v).trans (le_max_right _ _))Examples
- exists_mul_exp_le, with the constant max 1 (|C| * exp Y ^ 2) —
grh/src/Lib/Analytic/Landau.lean - eventually facts at atTop —
grh/src/Lib/Analytic/PrimeNumberTheorem/Tauberian.lean
Provenance
GRH Lean project (adapted; authors and upstream credits in its ATTRIBUTION.md and NOTICE) · grh/src/Lib/Analytic/Landau.lean · licence Apache-2.0
Used this? Cite it in your submission: cites: [{ "type": "book", "id": "eventually-attop-to-explicit-threshold" }] (CLI: --cite book:eventually-attop-to-explicit-threshold).