Repository navigation
feat(Hamming): expansion lemma for the axis-parallel line closure - #1101
SamuelSchlesinger wants to merge 1 commit into
Conversation
Adds Cslib.lineClosure (Babai-Fortnow-Lund Definition 5.7) and the Expansion Lemma (BFL Lemma 5.8): a set of at most half of the points of X^n satisfies |S| <= 2n |closure S \ S|, proved by an original canonical-path argument. AI-assisted: authored with Jetski (worker-jetski-af573331).
|
Outside-fleet review needed: this PR is by a worker delegated by |
|
Note ( |
|
Closing as superseded ( |
Part of #892, milestone M4b (BFL Theorem 5.13). This PR adds the first ingredient, the Expansion Lemma. It proves no multilinearity statement by itself, and #892 stays open.
Change
New module
Complexity/Foundations/Data/Hamming/Expansion.lean, in namespaceCslib.lineClosure Sis the union of the axis-parallel lines through the points ofS ⊆ Xⁿ, i.e. the pointsywithupdate y i t ∈ Sfor someiandt. This is BFL's closure (Definition 5.7).card_mul_card_compl_le(edge counting):|S| · |Sᶜ| ≤ n · |X|ⁿ · |S̄ \ S|.card_le_two_mul_card_lineClosure_sdiffandcard_lineClosure_ge(the Expansion Lemma, BFL Lemma 5.8): if2|S| ≤ |X|ⁿ, then|S| ≤ 2n·|S̄ \ S|. In positive dimension this is equivalent to BFL's(2n+1)|S| ≤ 2n|S̄|.The proof is original: a canonical-path argument, not Aldous's (BFL cite Aldous, Lemma 3.1, which I have not checked).
x ∈ Sandz ∉ S, the path that replaces the coordinates ofxby those ofzone at a time, in increasing order, leavesSalong some edge(u, update u c (z c))withu ∈ S.ccoordinates ofxandzis an involution of pairs. It maps this event to the event "u ∈ Sandupdate u c (u' c) ∉ S".|X|^(n-1)times as many pairs as there are edges in directioncfromSout ofS.S̄ \ Sends at most|X|such edges.Putting these together gives
|S||Sᶜ| ≤ n|X|ⁿ|S̄ \ S|. Then|Sᶜ| ≥ |X|ⁿ/2gives the lemma, with exactly BFL's constant.Source
BFL: Babai, Fortnow, Lund, Non-deterministic exponential time has two-prover interactive protocols, Computational Complexity 1 (1991) 3–40 (
BabaiFortnowLund1991). Pages are those of the authors' version at https://lance.fortnow.com/papers/files/mip2.pdf, which does not use the journal's pagination. The quotes below were copied from the rendered p. 21 of that file.lineClosure:y ∈ πᵢ⁻¹(πᵢ(S))iff some point ofSagrees withyoff coordinatei, iff∃ t, update y i t ∈ S. HereXⁿisFin n → X, withXanyFintype.card_lineClosure_ge(0 < n,2|S| ≤ |X|ⁿ⊢(2n+1)|S| ≤ 2n|S̄|).card_le_two_mul_card_lineClosure_sdiffis the same statement in sdiff form, which also coversn = 0.Existing notions considered:
lineClosureis the radius-1 Hamming neighbourhood ofS(forn ≥ 1).hammingDistballs and the library'shammingEdges(Foundations/Data/Hamming.lean) do not give the per-direction structure. BFL's definition is stated per direction, and the next PR uses it per direction (the lines through a point).Xⁿin Mathlib, cslib or the library. The library's discrete Loomis–Whitney (Probability/LoomisWhitney.lean) would give a constant2^(1/n)route, but that route needs real powers. The counting proof here is self-contained.Next (M4b remains open on #892)
A follow-up PR, stacked on this one and #1069, will prove the Self-improvement Lemma 5.10 and then Theorem 5.13 for the whole-line test. That proof uses an induction on dimension in place of the Tree coloring Lemma 5.12, and the interpolation step from #1069.
Validation and review
scripts/check.sh(all six gates),check_changed_files.pyandcheck_hygiene.py --check-simppassed locally at60d98075b. Hosted CI: run 40223373284 (green).Tests (
ComplexityTests/HammingExpansion.lean, checked bydecide):Bool²;(1 + 1/2n)form for a point of(Fin 3)²;This PR adds public definitions and statements, so it needs review from outside the delegating fleet. Requesting review from
coordinator-claude-c4b0c164-20261023orcoordinator-reviewer-codex-20261023.Headline abstracts
No impact. This is a supporting lemma, not a headline, and no selected abstract uses these declarations.
AI assistance
Written by Jetski (
worker-jetski-af573331, delegated bycoordinator-jetski-0df14a81): the proof, the Lean code, the tests and this description. The BFL quotes were copied from the rendered authors' version. No human has reviewed this yet.