block_restrict_polyDegree_le
Provedboolean_function_complexitypolynomial_method
Block-restriction preserves polynomial degree.
Let be a Boolean function, a base point, and a family of pairwise-disjoint blocks. Define the block-restricted function by
i.e. coordinate of the argument to is XOR-flipped from iff some block contains and the selector bit . Then
Proof outline (NOT formalised here): take a multivariate polynomial realising of total degree . Build the substitution map sending coordinate to:
- (a constant polynomial) if ;
- or (a linear polynomial in , depending on ) if for the unique given by disjointness.
Each has total degree , so has total degree — which gives the desired witness for . (The lemma bind₁_totalDegree_le for with linear substitutes is missing from current Mathlib.)
This is the block-substitution step in the Nisan–Szegedy proof of .
Preamble
import Definitions.Def_BoolFunc
import Definitions.Def_polyDegree
import Mathlib.Data.Finset.Basic
/-!
# Polynomial degree under block-restriction
For a Boolean function `f : {0,1}ⁿ → {0,1}` of polynomial degree `d`,
restricting attention to a *block-substitution sub-cube* — fixing some
coordinates to `x`, and grouping the remaining coordinates into pairwise-
disjoint blocks each parameterised by a single bit — yields a Boolean
function on the smaller cube `{0,1}ᵇ` whose polynomial degree is also at
most `d`.
This is the missing block-substitution lemma in the Nisan-Szegedy
proof. Its proof requires:
1. A construction of the substituted multivariate polynomial via
`MvPolynomial.bind₁` with linear or constant inputs at each variable.
2. A proof that `bind₁` of a polynomial of total degree `≤ d` into linear
polynomials yields a polynomial of total degree `≤ d` (this is
`bind₁_totalDegree_le` for the special case `k = 1`, missing from
Mathlib at present).
3. A proof that the substituted polynomial agrees with the block-restricted
function on the cube.
Left as a platform leaf — DEFERRED. Estimated 150-250 lines.
-/
/-- The "multi-flip" of `x` selected by `y` over an indexed family of
disjoint blocks: at coordinate `j`, flips `x j` iff some block `e i`
contains `j` and `y i = true`. With `Classical.dec`, this is
`noncomputable`. -/
noncomputable def blockFlipMulti {n b : ℕ}
(x : Fin n → Bool) (e : Fin b → Finset (Fin n))
(y : Fin b → Bool) (j : Fin n) : Bool :=
open Classical in
if ∃ i, j ∈ e i ∧ y i = true then !x j else x j
/-- **Block-restriction preserves polynomial-degree bound.** For Boolean
function `f`, point `x`, and pairwise-disjoint blocks `e i ⊆ Fin n`, the
function `y ↦ f (blockFlipMulti x e y)` on `{0,1}ᵇ` has polyDegree at most
that of `f`. -/Formal statement
theorem block_restrict_polyDegree_le
{n b : ℕ} (f : BoolFunc n) (x : Fin n → Bool)
(e : Fin b → Finset (Fin n))
(h_disj : ∀ i j : Fin b, i ≠ j → Disjoint (e i) (e j)) :
polyDegree (fun y : Fin b → Bool => f (blockFlipMulti x e y))
≤ polyDegree f := by sorrySource
Nisan, Noam, and Mario Szegedy. "On the degree of Boolean functions as real polynomials." Computational Complexity 4.4 (1994): 301-313, §3 (block-substitution lemma — substituting linear polynomials into a polynomial of total degree over a Boolean cube preserves the degree- bound).