op2046_truncation_limit_from_uniform_tail
If every fixed edge truncation has a limit and its eventual error uniformly tends to zero as the truncation grows, then the full probabilities converge and their limit equals the limit of the truncation probabilities.
Statement
theorem op2046_truncation_limit_from_uniform_tail (p e l : ℕ → ℝ) (q : ℕ → ℕ → ℝ) (hq : ∀ k, Tendsto (q k) atTop (𝓝 (l k))) (he : Tendsto e atTop (𝓝 0)) (herr : ∀ k, ∀ᶠ n in atTop, |p n - q k n| ≤ e k) : ∃ a : ℝ, Tendsto p atTop (𝓝 a) ∧ Tendsto l atTop (𝓝 a)
- Source
- Uniform-truncation reduction for OP-2046; elementary Cauchy completeness.
- Verified
- 20 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
To show that the sequence p converges, the proof first establishes that p is a Cauchy sequence. For any ε > 0, it chooses a truncation index k where the uniform tail error satisfies e(k) < ε / 4, and uses the convergence of q(k, ·) to l(k) to trap p(n) within ε / 2 of l(k), implying |p(m) - p(n)| < ε for all large m, n. By completeness of ℝ, p converges to a limit a; then passing to the limit in |p(n) - q(k, n)| ≤ e(k) gives |a - l(k)| ≤ e(k), which implies l(k) → a by the squeeze theorem because e(k) → 0.
For any ε > 0, there exists a truncation index k such that the error bound satisfies e(k) < ε / 4.
To show that the sequence p is Cauchy using Metric.cauchySeq_iff, fix ε > 0. Since ε > 0, ε / 4 > 0 as well. Because e(k) → 0 as k → ∞, the open interval (-∞, ε / 4) is a neighborhood of 0 by Iio_mem_nhds. Thus e(k) < ε / 4 eventually, which guarantees the existence of some truncation index k satisfying e(k) < ε / 4.
uses
Metric.cauchySeq_iff,Iio_mem_nhdshave hp_cauchy : CauchySeq p := by rw [Metric.cauchySeq_iff] intro ε hε have hε4 : (0:ℝ) < ε / 4 := by positivity have hk_eventually : ∀ᶠ k in atTop, e k < ε / 4 := he.eventually (Iio_mem_nhds hε4) obtain ⟨k, hk⟩ := hk_eventually.exists
For the chosen truncation index k, the values q(k, n) are eventually within ε / 4 of their limit l(k).
By hypothesis hq, the sequence q(k, ·) converges to l(k) as n → ∞. Using Metric.tendsto_atTop.1, Real.dist_eq, and eventually_atTop, there exists an index N such that |q(k, n) - l(k)| < ε / 4 for all n ≥ N.
uses
Metric.tendsto_atTop.1,eventually_atTop,Real.dist_eqhave hqk : ∀ᶠ n in atTop, |q k n - l k| < ε / 4 := by have h := (Metric.tendsto_atTop.1 (hq k)) (ε/4) hε4 rw [eventually_atTop] obtain ⟨N, hN⟩ := h exact ⟨N, fun n hn => by simpa [Real.dist_eq] using hN n hn⟩
The sequence values p(n) are eventually within ε / 2 of l(k).
By the triangle inequality abs_sub_le, |p(n) - l(k)| ≤ |p(n) - q(k, n)| + |q(k, n) - l(k)|. For large n, the error hypothesis herr provides |p(n) - q(k, n)| ≤ e(k) < ε / 4, while the convergence of q gives |q(k, n) - l(k)| < ε / 4. Combining these bounds yields |p(n) - l(k)| < ε / 2.
uses
abs_sub_lehave hp_bound : ∀ᶠ n in atTop, |p n - l k| < ε / 2 := by filter_upwards [herr k, hqk] with n h1 h2 have htri : |p n - l k| ≤ |p n - q k n| + |q k n - l k| := abs_sub_le _ _ _ linarith
The sequence p is a Cauchy sequence.
Let N be a threshold beyond which |p(n) - l(k)| < ε / 2. For any m, n ≥ N, applying the triangle inequality abs_sub_le and symmetry abs_sub_comm gives |p(m) - p(n)| ≤ |p(m) - l(k)| + |p(n) - l(k)| < ε / 2 + ε / 2 = ε. Since ε > 0 was arbitrary, p is Cauchy.
uses
Real.dist_eq,abs_sub_le,abs_sub_commobtain ⟨N, hN⟩ := hp_bound.exists_forall_of_atTop refine ⟨N, ?_⟩ intro m hm n hn have hm' := hN m hm have hn' := hN n hn rw [Real.dist_eq] calc |p m - p n| ≤ |p m - l k| + |l k - p n| := abs_sub_le _ _ _ _ = |p m - l k| + |p n - l k| := by rw [abs_sub_comm (l k) (p n)] _ < ε := by linarith
The sequence p converges to a real limit a.
Because ℝ is a complete metric space, the Cauchy sequence p converges to some limit a by cauchySeq_tendsto_of_complete. We propose a as the common limit.
uses
cauchySeq_tendsto_of_completeobtain ⟨a, ha⟩ := cauchySeq_tendsto_of_complete hp_cauchy refine ⟨a, ha, ?_⟩
For every truncation index k, the limit error is bounded by |a - l(k)| ≤ e(k).
For any fixed k, the difference sequence |p(n) - q(k, n)| converges to |a - l(k)| because p(n) → a and q(k, n) → l(k). Since |p(n) - q(k, n)| ≤ e(k) eventually by hypothesis herr, the non-strict inequality is preserved in the limit by le_of_tendsto, yielding |a - l(k)| ≤ e(k).
uses
le_of_tendstohave hbound : ∀ k, |a - l k| ≤ e k := by intro k have h1 : Tendsto (fun n => |p n - q k n|) atTop (𝓝 |a - l k|) := (ha.sub (hq k)).abs exact le_of_tendsto h1 (herr k)
The truncation limits l(k) converge to a as k → ∞.
The distance ‖l(k) - a‖ equals |a - l(k)| by Real.norm_eq_abs and abs_sub_comm, which is bounded above by e(k). Since e(k) → 0, the squeeze theorem squeeze_zero_norm implies that l(k) - a → 0. By tendsto_iff_norm_sub_tendsto_zero, this is equivalent to l(k) → a, completing the proof.
uses
squeeze_zero_norm,Real.norm_eq_abs,abs_sub_comm,tendsto_iff_norm_sub_tendsto_zerohave hsub : Tendsto (fun k => l k - a) atTop (𝓝 0) := by apply squeeze_zero_norm (a := e) _ he intro k rw [Real.norm_eq_abs, abs_sub_comm] exact hbound k rw [tendsto_iff_norm_sub_tendsto_zero] simpa using hsub.norm
Metric.cauchySeq_iff- A sequence in a metric space is Cauchy if and only if for every ε > 0, all terms beyond some index N are within distance ε of each other.
Iio_mem_nhds- The open ray (-∞, a) is an open neighborhood of any point b < a.
Metric.tendsto_atTop.1- If a sequence converges to a limit in a metric space, its terms are eventually within distance ε of that limit for any ε > 0.
eventually_atTop- A property holds eventually along atTop on ℕ if and only if it holds for all integers greater than or equal to some threshold.
Real.dist_eq- The metric distance between two real numbers is the absolute value of their difference.
abs_sub_le- The triangle inequality for the absolute value: |a - c| ≤ |a - b| + |b - c|.
abs_sub_comm- The absolute value of a difference is symmetric: |a - b| = |b - a|.
cauchySeq_tendsto_of_complete- In a complete metric space, every Cauchy sequence converges to a limit.
le_of_tendsto- If a sequence converges to a limit and is eventually bounded above by a constant, its limit is bounded above by that constant.
squeeze_zero_norm- If ‖f(n)‖ ≤ a(n) for all n and a(n) → 0, then f(n) → 0.
Real.norm_eq_abs- The norm of a real number is its absolute value.
tendsto_iff_norm_sub_tendsto_zero- A sequence f converges to b if and only if ‖f(n) - b‖ → 0.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
open scoped BigOperators Matrix Topologyopen MeasureTheory ProbabilityTheory Filternoncomputable sectiontheorem op2046_truncation_limit_from_uniform_tail (p e l : ℕ → ℝ) (q : ℕ → ℕ → ℝ) (hq : ∀ k, Tendsto (q k) atTop (𝓝 (l k))) (he : Tendsto e atTop (𝓝 0)) (herr : ∀ k, ∀ᶠ n in atTop, |p n - q k n| ≤ e k) : ∃ a : ℝ, Tendsto p atTop (𝓝 a) ∧ Tendsto l atTop (𝓝 a) := by have hp_cauchy : CauchySeq p := by rw [Metric.cauchySeq_iff] intro ε hε have hε4 : (0:ℝ) < ε / 4 := by positivity have hk_eventually : ∀ᶠ k in atTop, e k < ε / 4 := he.eventually (Iio_mem_nhds hε4) obtain ⟨k, hk⟩ := hk_eventually.exists have hqk : ∀ᶠ n in atTop, |q k n - l k| < ε / 4 := by have h := (Metric.tendsto_atTop.1 (hq k)) (ε/4) hε4 rw [eventually_atTop] obtain ⟨N, hN⟩ := h exact ⟨N, fun n hn => by simpa [Real.dist_eq] using hN n hn⟩ have hp_bound : ∀ᶠ n in atTop, |p n - l k| < ε / 2 := by filter_upwards [herr k, hqk] with n h1 h2 have htri : |p n - l k| ≤ |p n - q k n| + |q k n - l k| := abs_sub_le _ _ _ linarith obtain ⟨N, hN⟩ := hp_bound.exists_forall_of_atTop refine ⟨N, ?_⟩ intro m hm n hn have hm' := hN m hm have hn' := hN n hn rw [Real.dist_eq] calc |p m - p n| ≤ |p m - l k| + |l k - p n| := abs_sub_le _ _ _ _ = |p m - l k| + |p n - l k| := by rw [abs_sub_comm (l k) (p n)] _ < ε := by linarith obtain ⟨a, ha⟩ := cauchySeq_tendsto_of_complete hp_cauchy refine ⟨a, ha, ?_⟩ have hbound : ∀ k, |a - l k| ≤ e k := by intro k have h1 : Tendsto (fun n => |p n - q k n|) atTop (𝓝 |a - l k|) := (ha.sub (hq k)).abs exact le_of_tendsto h1 (herr k) have hsub : Tendsto (fun k => l k - a) atTop (𝓝 0) := by apply squeeze_zero_norm (a := e) _ he intro k rw [Real.norm_eq_abs, abs_sub_comm] exact hbound k rw [tendsto_iff_norm_sub_tendsto_zero] simpa using hsub.norm