Claim 7.1 — rank matching of two 0/1 lists with close prefix counts: at most bad indices
ProvedNonMarkovColorings.Main.claim_7_1combinatoricsinequalitiesp2o-gran-per-chapterp2o-plan-paperp2o-v1
Let and satisfy whenever or . Define when this set is nonempty. For each with let . Then at most such indices have undefined or satisfy
A deterministic order-statistics fact used to compare the blocking and unblocked neighbours in §7.
Formalization Note. Indices are ; are functions on used on ; is Real.sqrt ε.
Differences from the source:
- encoding: ε ≥ 0 implicit (ε^{1/2}) → ε : ℝ arbitrary, ε^{1/2} = Real.sqrt ε; reason: for ε < 0 and m ≥ 1 the hypothesis at j = m is unsatisfiable, and m = 0 gives 0 ≤ 0; no instance changes
- encoding: lists p_1..p_m, X_1..X_m, Y_1..Y_m → functions ℕ → ℝ, ℕ → ℕ constrained on Finset.Icc 1 m; index ranges over [1, m]; reason: 1-based indices as in the paper
Preamble
import Mathlib
Formal statement
namespace NonMarkovColorings.Main
/-- Claim 7.1. Let `1 ≥ p_1 ≥ ⋯ ≥ p_m ≥ 0` and `X_i, Y_i ∈ {0, 1}` with
`|Σ_{i ≤ j} (X_i − Y_i)| ≤ ε m` whenever `j = m` or `p_j > p_{j+1}`. With
`index(R) = min{j : Σ_{i ≤ j} Y_i ≥ R}`, at most `(ε + ε^{1/2}) m` indices `j` with `X_j = 1`
have, for `R = Σ_{i ≤ j} X_i`, `index(R)` undefined or `|p_j − p_{index(R)}| > ε^{1/2}`.
Indices run over `1, …, m`. -/
theorem claim_7_1 (m : ℕ) (ε : ℝ) (p : ℕ → ℝ) (X Y : ℕ → ℕ)
(hp1 : ∀ i ∈ Finset.Icc 1 m, p i ≤ 1) (hp0 : ∀ i ∈ Finset.Icc 1 m, 0 ≤ p i)
(hmono : ∀ i ∈ Finset.Icc 1 m, ∀ j ∈ Finset.Icc 1 m, i ≤ j → p j ≤ p i)
(hX : ∀ i ∈ Finset.Icc 1 m, X i = 0 ∨ X i = 1)
(hY : ∀ i ∈ Finset.Icc 1 m, Y i = 0 ∨ Y i = 1)
(hsum : ∀ j ∈ Finset.Icc 1 m, (j = m ∨ p (j + 1) < p j) →
|∑ i ∈ Finset.Icc 1 j, ((X i : ℝ) - (Y i : ℝ))| ≤ ε * m) :
(((Finset.Icc 1 m).filter fun j => X j = 1 ∧
let S := (Finset.Icc 1 m).filter fun j' =>
∑ i ∈ Finset.Icc 1 j, X i ≤ ∑ i ∈ Finset.Icc 1 j', Y i
S = ∅ ∨ ∃ h : S.Nonempty, Real.sqrt ε < |p j - p (S.min' h)|).card : ℝ) ≤
(ε + Real.sqrt ε) * m := by sorry
end NonMarkovColorings.Main
Source
Jain, Mizgerd, Vigoda, Sampling Colorings Close to the Maximum Degree: Non-Markovian Coupling and Local Uniformity, arXiv:2604.11938 (PDF of 2026-11-03, sha256 f3bf0cf0…), p. 56, Claim 7.1
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.