AFTD Auto-Formalizing Theoretical Domains

op2046_pointwise_rigidity_gives_eventual_prefix

theoremverified

If a real sequence converges to zero, then adding any positive linear drift to its prefix sums makes them eventually strictly positive.

Statement

theorem op2046_pointwise_rigidity_gives_eventual_prefix
    (u : ℕ → ℝ) (hu : Tendsto u atTop (𝓝 0)) (s : ℝ) (hs : 0 < s) :
    ∀ᶠ k : ℕ in atTop, 0 < (∑ j ∈ Finset.range k, u j) + (k : ℝ) * s
Source
OP-2046 candidate Airy persistence: global point rigidity and the standard Cesaro averaging theorem.
Verified
20 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

Because the sequence u converges to 0, its Cesàro averages k⁻¹ ∑_{j=0}^{k-1} u j also converge to 0. Since the drift coefficient s is strictly positive, these averages must eventually exceed -s. For sufficiently large k ≥ 1, multiplying this bound by k > 0 clears the denominator to give ∑_{j=0}^{k-1} u j > -k * s, which rearranges to show that the prefix sums with linear drift are eventually strictly positive.

  1. The Cesàro averages of u are eventually strictly greater than -s.

    By the Cesàro mean theorem (`hu.cesaro`), since u converges to 0, its sequence of Cesàro averages k⁻¹ ∑_{j=0}^{k-1} u j also converges to 0. Because s > 0, we have -s < 0 (verified by `linarith`), so the open ray (-s, ∞) is a neighborhood of 0 by `Ioi_mem_nhds`. Therefore, the Cesàro averages eventually lie in (-s, ∞).

    lines 8–9

    uses Ioi_mem_nhds

      have hmean : ∀ᶠ k : ℕ in atTop, -s < (k : ℝ)⁻¹ * ∑ j ∈ Finset.range k, u j :=
        hu.cesaro.eventually (Ioi_mem_nhds (by linarith))
  2. It suffices to establish strict positivity for an arbitrary index k ≥ 1 where the Cesàro average exceeds -s.

    By `eventually_ge_atTop 1`, the condition k ≥ 1 holds for all sufficiently large k. Using `filter_upwards` to intersect this with the eventual Cesàro bound, the eventual positivity of the drifted sum reduces to verifying it for an arbitrary natural number k satisfying both k ≥ 1 and -s < k⁻¹ ∑_{j=0}^{k-1} u j.

    line 10

    uses eventually_ge_atTop

      filter_upwards [hmean, eventually_ge_atTop 1] with k hk hkpos
  3. For any index k ≥ 1 satisfying the Cesàro average lower bound, the drifted prefix sum (∑_{j=0}^{k-1} u j) + k * s is strictly positive.

    From k ≥ 1, casting to the real numbers gives k > 0. Rewriting the average k⁻¹ ∑_{j=0}^{k-1} u j as (∑_{j=0}^{k-1} u j) / k via `inv_mul_eq_div`, multiplying both sides by k > 0 preserves the strict inequality by `lt_div_iff₀`, giving -s * k < ∑_{j=0}^{k-1} u j. Rearranging terms (`nlinarith`) immediately yields 0 < (∑_{j=0}^{k-1} u j) + k * s.

    lines 11–14

    uses inv_mul_eq_div, lt_div_iff₀

      have hkp : (0 : ℝ) < k := by exact_mod_cast hkpos
      rw [inv_mul_eq_div] at hk
      have hh := (lt_div_iff₀ hkp).mp hk
      nlinarith
Ioi_mem_nhds
The open right-infinite interval (a, ∞) is a neighborhood of any point b strictly greater than a.
eventually_ge_atTop
In a preorder, any fixed element a is eventually bounded above by the variable x along the atTop filter (that is, a ≤ x holds for all sufficiently large x).
inv_mul_eq_div
Multiplication by the inverse a⁻¹ * b is equal to the quotient b / a.
lt_div_iff₀
For a strictly positive element c > 0, the inequality a < b / c is equivalent to a * c < b.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

open scoped BigOperators Matrix Topologyopen MeasureTheory ProbabilityTheory Filternoncomputable sectiontheorem op2046_pointwise_rigidity_gives_eventual_prefix    (u : ℕ → ℝ) (hu : Tendsto u atTop (𝓝 0)) (s : ℝ) (hs : 0 < s) :    ∀ᶠ k : ℕ in atTop, 0 < (∑ j ∈ Finset.range k, u j) + (k : ℝ) * s := by  have hmean : ∀ᶠ k : ℕ in atTop, -s < (k : ℝ)⁻¹ * ∑ j ∈ Finset.range k, u j :=    hu.cesaro.eventually (Ioi_mem_nhds (by linarith))  filter_upwards [hmean, eventually_ge_atTop 1] with k hk hkpos  have hkp : (0 : ℝ) < k := by exact_mod_cast hkpos  rw [inv_mul_eq_div] at hk  have hh := (lt_div_iff₀ hkp).mp hk  nlinarith
See it in the graphDiscuss this resultChallenge it