Lemma B.2 (as proved): Markov chain TVD bound, time-varying
ProvedWhenToTrustYourModel.markov_tv_boundLet be a finite set, let and () be two sequences of Markov transition kernels on (the kernels may change with time), and run both chains from the same initial distribution , chain moving from time to with ; write for the state marginal at time . Suppose that for some
Then for every
The state marginals of two chains drift apart at most linearly in time, at the rate of the expected one-step discrepancy.
Formalization Note The paper's statement assumes a bound on the expected KL divergence , but its proof defines as the expected total variation and bounds that. With the KL hypothesis the statement is false (a chain with and at the first step). The Lean statement uses the total variation hypothesis, as proved. The kernels are allowed to depend on time, as in the lemma's title ("time-varying") and its use in the proof of Lemma B.4.
import Mathlib import Definitions.Def_WhenToTrustYourModel_Basic open Finset
namespace WhenToTrustYourModel
theorem markov_tv_bound {S : Type*} [Fintype S]
(μ₀ : S → ℝ) (hμ₀ : IsDist μ₀)
(K₁ K₂ : ℕ → S → S → ℝ) (hK₁ : ∀ t s, IsDist (K₁ t s)) (hK₂ : ∀ t s, IsDist (K₂ t s))
(δ : ℝ) (hδ : ∀ t, ∑ s, chainDist μ₀ K₁ t s * tvDist (K₁ t s) (K₂ t s) ≤ δ)
(t : ℕ) :
tvDist (chainDist μ₀ K₁ t) (chainDist μ₀ K₂ t) ≤ t * δ := by sorry
end WhenToTrustYourModelRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be an arbitrary finite set (no nonemptiness assumption). Fix:
- an initial distribution on , meaning for every and ;
- two sequences of time-dependent transition kernels and , indexed by and . For every time and every state , both and are probability distributions on (nonnegative, total mass ).
For , let be the state marginal at time of the Markov chain started from and moved by . It is defined recursively by
Both chains share the same initial distribution .
For functions , the total variation distance is
Let be a real number. Assume that at every time , the per-step kernel discrepancy, averaged over the time- marginal of the first chain only, is at most :
This is a single bound that holds uniformly over all times. No sign condition on is stated. However, every term on the left is nonnegative, so the hypotheses force .
The conclusion is that for every natural number ,
where is regarded as a real number.
At this reads , which holds trivially.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.