Documentation

CslibFrontier.Foundations.BooleanAnalysis.BooleanQuotient

The Boolean-cube quotient of multivariate polynomials #

Over any commutative ring R, the Boolean ideal Cslib.BitString.boolIdeal ι R is the ideal of MvPolynomial ι R generated by X i ^ 2 - X i for i : ι. Evaluating a polynomial at the 0/1 points Cslib.BitString.bitPoint x (x : ι → Bool) defines an R-algebra homomorphism Cslib.BitString.evalCubeHom ι R : MvPolynomial ι R →ₐ[R] ((ι → Bool) → R) containing boolIdeal ι R in its kernel.

Reducing powers X i ^ 2 ↦ X i modulo boolIdeal ι R puts every polynomial in the same coset as a multilinear polynomial in MvPolynomial.restrictDegree ι R 1, and a multilinear polynomial vanishing at every 0/1 point vanishes identically (even over an arbitrary commutative ring and an arbitrary index type ι, by subset-size induction on its monomials). Consequently:

Main definitions #

Main results #

noncomputable def Cslib.BitString.boolIdeal (ι : Type u_1) (R : Type u_2) [CommRing R] :

The ideal of MvPolynomial ι R generated by the Boolean relations X i ^ 2 - X i.

Each Boolean generator X i ^ 2 - X i belongs to boolIdeal ι R.

noncomputable def Cslib.BitString.evalCubeHom (ι : Type u_1) (R : Type u_2) [CommRing R] :
MvPolynomial ι R →ₐ[R] (ι → Bool) → R

Evaluation on the Boolean cube {0, 1} ^ ι as an R-algebra homomorphism.

@[simp]
theorem Cslib.BitString.evalCubeHom_apply {ι : Type u_1} {R : Type u_2} [CommRing R] (p : MvPolynomial ι R) (x : ι → Bool) :

Pointwise evaluation of evalCubeHom agrees with MvPolynomial.eval at bitPoint x.

Every generator X i ^ 2 - X i vanishes on the Boolean cube.

Every multivariate polynomial is congruent modulo boolIdeal ι R to a multilinear polynomial (of degree at most 1 in every variable).

theorem Cslib.BitString.eq_zero_of_mem_restrictDegree_of_forall_eval_bitPoint {ι : Type u_1} {R : Type u_2} [CommRing R] {q : MvPolynomial ι R} (hq : q ∈ MvPolynomial.restrictDegree ι R 1) (heval : ∀ (x : ι → Bool), (MvPolynomial.eval (bitPoint x)) q = 0) :
q = 0

Over any commutative ring, a multilinear polynomial that vanishes at every point of the Boolean cube {0, 1} ^ ι is the zero polynomial.

theorem Cslib.BitString.eq_of_mem_restrictDegree_of_forall_eval_bitPoint {ι : Type u_1} {R : Type u_2} [CommRing R] {p q : MvPolynomial ι R} (hp : p ∈ MvPolynomial.restrictDegree ι R 1) (hq : q ∈ MvPolynomial.restrictDegree ι R 1) (heval : ∀ (x : ι → Bool), (MvPolynomial.eval (bitPoint x)) p = (MvPolynomial.eval (bitPoint x)) q) :
p = q

Two multilinear polynomials agreeing at every point of {0, 1} ^ ι are equal.

theorem Cslib.BitString.ker_evalCubeHom {ι : Type u_1} {R : Type u_2} [CommRing R] :

The kernel of evaluation on {0, 1} ^ ι is boolIdeal ι R.

theorem Cslib.BitString.mem_boolIdeal_iff_forall_eval_bitPoint {ι : Type u_1} {R : Type u_2} [CommRing R] {p : MvPolynomial ι R} :
p ∈ boolIdeal ι R ↔ ∀ (x : ι → Bool), (MvPolynomial.eval (bitPoint x)) p = 0

A polynomial belongs to boolIdeal ι R if and only if it vanishes at every point of {0, 1} ^ ι.

Every polynomial has a unique multilinear representative modulo boolIdeal ι R.

Over a reduced ring (in particular, over any field or integral domain), boolIdeal ι R is radical.

theorem Cslib.BitString.mem_boolIdeal_iff_forall_eval_zero_one {ι : Type u_1} {R : Type u_2} [CommRing R] {p : MvPolynomial ι R} :
p ∈ boolIdeal ι R ↔ ∀ (z : ι → R), (∀ (i : ι), z i = 0 ∨ z i = 1) → (MvPolynomial.eval z) p = 0

Membership in boolIdeal ι R is equivalent to vanishing on {0, 1} ^ ι ⊆ ι → R.

Every polynomial is congruent modulo boolIdeal ι R to the multilinear extension of its values on {0, 1} ^ ι.

A multilinear polynomial equals the multilinear extension of its values on {0, 1} ^ ι.

A polynomial has degree at most 1 in each variable if and only if it is a multilinear extension.

noncomputable def Cslib.BitString.boolQuotientAlgEquiv (ι : Type u_1) (R : Type u_2) [CommRing R] [Finite ι] :
(MvPolynomial ι R ⧸ boolIdeal ι R) ≃ₐ[R] (ι → Bool) → R

The Boolean-cube quotient isomorphism: over any commutative ring R, MvPolynomial ι R ⧸ boolIdeal ι R is R-algebra isomorphic to the ring (ι → Bool) → R of functions on the Boolean cube.

@[simp]
theorem Cslib.BitString.boolQuotientAlgEquiv_mk {ι : Type u_1} {R : Type u_2} [CommRing R] [Finite ι] (p : MvPolynomial ι R) (x : ι → Bool) :

Applying boolQuotientAlgEquiv to a coset evaluates a representative on the cube.

@[simp]

The inverse of boolQuotientAlgEquiv sends a function on the cube to the coset of its multilinear extension.

noncomputable def Cslib.BitString.restrictDegreeOneLinearEquiv (ι : Type u_1) (R : Type u_2) [CommRing R] [Finite ι] :
↥(MvPolynomial.restrictDegree ι R 1) ≃ₗ[R] (ι → Bool) → R

Over any commutative ring R, multilinear polynomials are R-linearly equivalent to functions on the Boolean cube {0, 1} ^ ι.

Multilinear polynomials are R-linearly equivalent to the Boolean quotient MvPolynomial ι R ⧸ boolIdeal ι R.

@[simp]

Evaluating restrictDegreeOneLinearEquiv on a multilinear polynomial computes its values on {0, 1} ^ ι.

@[simp]

Applying the inverse of restrictDegreeOneLinearEquiv yields multilinearExtension.

@[simp]

Evaluating restrictDegreeOneQuotientEquiv on a multilinear polynomial sends it to its own coset modulo boolIdeal ι R.

@[simp]

Evaluating the inverse of restrictDegreeOneQuotientEquiv at any cube point matches boolQuotientAlgEquiv.

@[simp]

The inverse of restrictDegreeOneQuotientEquiv sends the coset of p to multilinearExtension (fun x => eval (bitPoint x) p).

Over a field K, the Boolean quotient MvPolynomial ι K ⧸ boolIdeal ι K has K-dimension 2 ^ Fintype.card ι.

Over a field K, the space of multilinear polynomials restrictDegree ι K 1 has K-dimension 2 ^ Fintype.card ι.