Lemma 1: total variation of a swap for independent data
ProvedConformalBeyondExchangeability.dtv_swap_le_of_independentLet be independent random elements of with laws . Let , and let be the sequence with and swapped. Then
For independent data, this bounds the swap distances in the coverage gap of Theorem 2 by the distances between the marginal laws of single points.
Formalization Note Independence is the statement that the joint law of is the product measure . The law of is the image of this product under the swap of coordinates and .
import Mathlib import Definitions.Def_ConformalBeyondExchangeability_Basic open MeasureTheory
namespace ConformalBeyondExchangeability
theorem dtv_swap_le_of_independent {X : Type*} [MeasurableSpace X] {n : ℕ}
(μ : Fin (n + 1) → Measure (X × ℝ)) [∀ i, IsProbabilityMeasure (μ i)] (i : Fin n) :
tvDist (Measure.pi μ) ((Measure.pi μ).map (swapData i.castSucc)) ≤
2 * tvDist (μ i.castSucc) (μ (Fin.last n)) - tvDist (μ i.castSucc) (μ (Fin.last n)) ^ 2 ∧
2 * tvDist (μ i.castSucc) (μ (Fin.last n)) - tvDist (μ i.castSucc) (μ (Fin.last n)) ^ 2 ≤
2 * tvDist (μ i.castSucc) (μ (Fin.last n)) := by sorry
end ConformalBeyondExchangeabilityRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any type equipped with a σ-algebra, let be a natural number, and equip with the product of that σ-algebra and the Borel σ-algebra on . Let be arbitrary probability measures on . No other assumptions are made on them: they need not be equal, related, or absolutely continuous with respect to one another. Fix a training index . If there is no such , and the statement has no instances.
Objects involved.
- is the product measure on . It is the joint law of a sequence of independent points with .
- is the transposition of that exchanges and . Since , it is never the identity.
- The swapped sequence is defined by , so
- is the push-forward of under the map , that is, the law of .
- For finite measures on a common measurable space, the total variation distance is
Measure values are taken as real numbers. For probability measures this is a supremum of a nonempty set ( gives ) of numbers in . Note that there is no factor .
On the supremum runs over all sets of the product σ-algebra. On it runs over the product σ-algebra described above.
Assertion. Write , the distance between the marginal laws of the -th point and the test point. The statement asserts both of the following inequalities:
The second inequality is equivalent to , so it holds for every value of and carries no information about the measures. The first inequality bounds the distance between the joint law of the independent sequence and the joint law of its -swapped version. The bound depends only on the distance between the two swapped marginals and ; the other marginals for play no role in it.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.