Expression (3) for
ProvedRevisitXor.eq_3bent-functionsboolean-functionsconcentration-inequalitiescorrelation-boundsp2o-gran-per-chapterp2o-plan-paperp2o-v1polynomials-mod-2xor-lemma
Let , , , fix an outcome , and let be the set of vertices not touching .
- If then is constant: it equals for the only pair of .
- If , write and let be the sum of the weights of the edges touching . Then
because after is selected each remaining edge of is chosen with probability .
Expression (3) separates into a part depending on only and the part that carries the randomness of .
Formalization Note The outcome is the prefix of a valid sequence; runs over 2-element subsets.
Differences from the source:
- encoding: Σ_{{x,y}⊆R} w(x, y) → the sum of w({x, y}) over the 2-element subsets of R (pairsIn R); reason: the paper's w(x, y) inside the sum denotes w({x, y})
- encoding: r = 2, r ≥ 4 with r = M − 2(i − 1) → M = 2 + 2(i − 1) and 4 + 2(i − 1) ≤ M in ℕ; r computed in ℝ inside (3); reason: same cases; avoids truncated subtraction
Preamble
import Mathlib import Definitions.Def_RevisitXor_Wi
Formal statement
namespace RevisitXor
/-- **Expression (3) for `W_i`.** Viola, *Revisiting the XOR lemma*, STOC 2027 submission (manuscript of August 25, 2026, sha256
3b49e10d…716), proof of Lemma 6, (3), p.8: "Let R be the remaining set of r = M − 2(i − 1) nodes not touching x<i.
If r = 2 then Wi is constant and the desired bounds are immediate; so let r ≥ 4. Write Xi = {U, V}.
Let w(x) := Σ_{y∈R} w({x, y}) be the sum of the weights of the edges touching x. We can write
Wi = w(x1, . . . , xi−1) + w(Xi) + 1/(r − 3) (Σ_{{x,y}⊆R} w(x, y) − w(U) − w(V) + w(Xi)), (3)
because after Xi is selected each remaining edge is chosen with prob. 1/(r − 3)."
**Formalization Note.** The outcome `x_{<i}` is the first `i - 1` edges of a valid sequence `ys`
(`i` 1-based, `1 ≤ i ≤ M/2`), and `R = remaining ys i`. Both cases of the text are stated: if
`r = 2` then `W_i` is constant over the next edge (it equals `E[W_i]`); if `r ≥ 4` then for every pair
`X_i = {U, V}` of `R`, (3) holds. `r = M − 2(i − 1)` is compared in ℕ (`M = 2 + 2(i − 1)`,
`4 + 2(i − 1) ≤ M`) and computed in ℝ inside (3). `Σ_{{x,y}⊆R}` runs over the 2-element subsets of
`R` (`pairsIn R`), and `w(x, y)` there is `w({x, y})`. -/
theorem eq_3 {m : ℕ} (h : Cube m × Cube m → ZMod 2) (ys : Fin (2 ^ m / 2) → Sym2 (Cube m))
(hys : ys ∈ validSeqs m) (i : ℕ) (hi : 1 ≤ i) (hiM : i ≤ 2 ^ m / 2) :
(2 ^ m = 2 + 2 * (i - 1) →
∀ e ∈ pairsIn (remaining ys i), Wi h ys i e = EWi h ys i) ∧
(4 + 2 * (i - 1) ≤ 2 ^ m → ∀ U V : Cube m, s(U, V) ∈ pairsIn (remaining ys i) →
Wi h ys i s(U, V) =
(∑ j ∈ Finset.univ.filter (fun j : Fin (2 ^ m / 2) => j.val + 1 < i), wEdge h (ys j)) +
wEdge h s(U, V) +
1 / (((2 : ℝ) ^ m - 2 * ((i : ℝ) - 1)) - 3) *
(∑ p ∈ pairsIn (remaining ys i), wEdge h p -
∑ y ∈ remaining ys i, wEdge h s(U, y) -
∑ y ∈ remaining ys i, wEdge h s(V, y) + wEdge h s(U, V))) := by sorry
end RevisitXor
Source
Viola, Revisiting the XOR lemma, STOC 2027 submission (manuscript of August 25, 2026, sha256 3b49e10d…716), proof of Lemma 6, (3), p.8
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.