Documentation

LeanPool.BooleanMultiplication.N4.SemanticQuadratic

Semantic bridge for quadratic ANFs #

The Reed--Muller argument is phrased recursively as a code. This file connects that code to canonical Boolean ANFs without enumerating functions. Only sparse evaluations and finite sums of monomials are used.

The constant coefficient of a recursively encoded affine polynomial.

Equations
Instances For

    The linear coefficients of a recursively encoded affine polynomial.

    Equations
    Instances For

      Encode an affine polynomial from its constant and linear coefficients.

      Equations
      Instances For
        @[simp]
        theorem UnrestrictedBooleanMul.N4.AffineCode.eval_ofCoeffs (n : ℕ) (c : F₂) (l x : Fin n → F₂) :
        (ofCoeffs n c l).eval x = c + ∑ i : Fin n, l i * x i

        Convert an eight-variable affine code to its squarefree Boolean ANF.

        Equations
        Instances For

          The ANF agrees on every Boolean input with a quadratic code.

          Equations
          Instances For

            The subspace of ANFs representing quadratic Boolean functions.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              noncomputable def UnrestrictedBooleanMul.N4.lowReconstruct (p : ANF 8) :
              ANF 8

              Retain only the coefficients of squarefree monomials of degree at most two.

              Equations
              Instances For

                The Boolean assignment whose nonzero coordinates form the given finite set.

                Equations
                Instances For

                  The second finite difference at zero in two coordinate directions.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    Extract the coefficient supported on the specified pair of variables.

                    Equations
                    Instances For
                      theorem UnrestrictedBooleanMul.N4.subset_pair_polar_identity (s : Finset (Fin 8)) (i j : Fin 8) (hij : i ≠ j) :
                      ((((if s ⊆ ∅ then 1 else 0) + if s ⊆ {i} then 1 else 0) + if s ⊆ {j} then 1 else 0) + if s ⊆ {i, j} then 1 else 0) = if s = {i, j} then 1 else 0

                      The quadratic expression 1 + p + q + g used for the zero-zero fiber.

                      Equations
                      Instances For

                        The quadratic expression q + g used for the zero-one fiber.

                        Equations
                        Instances For

                          The quadratic expression p + g used for the one-zero fiber.

                          Equations
                          Instances For
                            theorem UnrestrictedBooleanMul.N4.fiber_truth_identity (u v : F₂) :
                            truthBit (1 + u + v + u * v) + truthBit (v + u * v) + truthBit (u + u * v) + truthBit (u * v) = 1