Documentation

CslibFrontier.Foundations.BooleanAnalysis.SparseIncidence

The incidence polynomial of a sparse system over 𝔽₂ #

This file proves the congruence (D.2) in the proof of Lemma D.2 of [OAI26k] (pp. 54–56). That lemma counts the common zeros of a sparse polynomial system over 𝔽₂ by contracting tensor networks over (ℤ / 2 ^ p)[V] / (V ^ ℓ).

Equation P i is a family of monomials (Finset (Finset ι)). At the indicator 1_T of a set T, its integer lift counts the monomials inside T. Its parity factor is B_i(1_T, V) = ∑_{j < ℓ} e_j(y) h(y) ^ j V ^ j, with y that count, h(Y) = Y (Y - 1) and e_j from Lemma 5.1 (Polynomial.parityFactor). Its incidence coefficient at S (Cslib.BitString.parityCoeff) is the subset inversion ∑_{T ⊆ S} (-1) ^ (|S| - |T|) B_i(1_T, V) in ℤ[V]. This is the coefficient [z_{i,S}] B̄_i of the multilinear factor on p. 56.

The paper writes (D.2) with the incidence polynomial F(z, V) = ∏_i B̄_i(z_i, V) summed at z_{iv} = x_v over the cube. The incidence sum is that cube sum written as its monomial expansion: the monomial of a set of incidences (S i)_i has coefficient ∏_i [z_{i,S_i}] B̄_i, and its cube sum is the weight 2 ^ |{v : b_v = 0}|. The lemma's networks contract exactly this sum, one network per degree array.

Main definitions #

Main results #

References #

noncomputable def Cslib.BitString.parityCoeff {ι : Type u_1} [DecidableEq ι] (ℓ : ℕ) (P : Finset (Finset ι)) (S : Finset ι) :

The incidence coefficient [z_S] B̄ of an equation P (a family of monomials) at a set S, for truncation order ℓ: the subset Möbius transform at S of T ↦ parityFactor ℓ #{M ∈ P | M ⊆ T}. Here #{M ∈ P | M ⊆ T} is the integer lift of P at the indicator of T (Cslib.BitString.monomialSum_indicator).

theorem Cslib.BitString.monomialSum_indicator {ι : Type u_1} [DecidableEq ι] (R : Type u_3) [CommRing R] (P : Finset (Finset ι)) (T : Finset ι) :
(monomialSum R P fun (v : ι) => decide (v ∈ T)) = ↑{M ∈ P | M ⊆ T}.card

The integer lift at an indicator counts the monomials inside the set.

theorem Cslib.BitString.coeff_parityCoeff {ι : Type u_1} [DecidableEq ι] (ℓ : ℕ) (P : Finset (Finset ι)) (S : Finset ι) (j : ℕ) :
(parityCoeff ℓ P S).coeff j = subsetMobius (fun (T : Finset ι) => (Polynomial.parityFactor ℓ ↑{M ∈ P | M ⊆ T}.card).coeff j) S

The V ^ j coefficient of the incidence coefficient is the subset Möbius transform of the V ^ j coefficients.

theorem Cslib.BitString.coeff_parityCoeff_eq_zero {ι : Type u_1} [DecidableEq ι] {ℓ k : ℕ} {P : Finset (Finset ι)} (hk : ∀ M ∈ P, M.card ≤ k) {S : Finset ι} {j : ℕ} (hS : k * (1 + 2 * j) < S.card) :
(parityCoeff ℓ P S).coeff j = 0

The per-factor degree bound: if every monomial of P has at most k variables, the V ^ j coefficient of the incidence coefficient at S vanishes once #S > k (1 + 2 j). This is the bound on B̄_i stated just before (D.1) on p. 55.

theorem Cslib.BitString.monomialSum_congr_of_eqOn {ι : Type u_1} [DecidableEq ι] {P : Finset (Finset ι)} {I : Finset ι} (hI : equationScope P ⊆ I) {x y : ι → Bool} (h : ∀ v ∈ I, x v = y v) :

The integer lift of an equation depends only on the variables of its scope.

theorem Cslib.BitString.commonZeroCount_modEq_sumCoeffsBelow_incidenceSum {ι : Type u_1} {κ : Type u_2} [DecidableEq ι] [Fintype ι] [Fintype κ] [DecidableEq κ] (P : κ → Finset (Finset ι)) {I : κ → Finset ι} (hI : ∀ (i : κ), equationScope (P i) ⊆ I i) {k ℓ K : ℕ} (hk : ∀ (i : κ), ∀ M ∈ P i, M.card ≤ k) (hK : k * (Fintype.card κ + 2 * (ℓ - 1)) ≤ K) :
↑(commonZeroCount Finset.univ P) ≡ Polynomial.sumCoeffsBelow ℓ (incidenceSum I (fun (i : κ) => parityCoeff ℓ (P i)) K) [ZMOD 2 ^ ℓ]

The congruence (D.2): for scopes I i containing the variables of the equations P i with monomials of at most k variables and K ≥ k (#κ + 2 (ℓ - 1)), the number of common zeros is congruent modulo 2 ^ ℓ to the sum of the coefficients below V ^ ℓ of the incidence sum of the incidence coefficients.

theorem Cslib.BitString.emod_sum_eq_commonZeroCount_of_modEq {ι : Type u_1} {κ : Type u_2} [DecidableEq ι] [Fintype ι] [Fintype κ] [DecidableEq κ] (P : κ → Finset (Finset ι)) {I : κ → Finset ι} (hI : ∀ (i : κ), equationScope (P i) ⊆ I i) {k ℓ K : ℕ} (hk : ∀ (i : κ), ∀ M ∈ P i, M.card ≤ k) (hℓ : Fintype.card ι < ℓ) (hK : k * (Fintype.card κ + 2 * (ℓ - 1)) ≤ K) (q : ℕ → ℤ) (hq : ∀ j < ℓ, q j ≡ (incidenceSum I (fun (i : κ) => parityCoeff ℓ (P i)) K).coeff j [ZMOD 2 ^ ℓ]) :
(∑ j ∈ Finset.range ℓ, q j) % 2 ^ ℓ = ↑(commonZeroCount Finset.univ P)

Exact recovery of the count. For n < ℓ variables and integers q j congruent modulo 2 ^ ℓ to the coefficients below V ^ ℓ of the incidence sum, the sum of the q j modulo 2 ^ ℓ is the number of common zeros.