Documentation

Complexitylib.Encoding.BitPolynomial.Trinomial.Defs

Runtime coefficient lists for sparse binary trinomials #

The list trinomialBits d has true coefficients at positions 0, d, and 2*d, representing X^(2*d) + X^d + 1 over the two-element field. The definition is total at d = 0: all three positions coincide, and their sum is still one in characteristic two. The evaluator takes d in unary as the length of its input; the input bit values are ignored.

The coefficient list of X^(2*d) + X^d + 1, including the case d = 0.

Equations
Instances For

    Generate a sparse binary trinomial from a runtime unary half-degree.

    Equations
    Instances For

      Round a runtime unary target up to a power of three and generate its trinomial.

      Equations
      Instances For