Documentation

QedShare.Poly.Vanishing

The vanishing polynomial #

For a list T of nonzero points, vanishing T = Πₜ (1 + x·t⁻¹).

This is the polynomial g in the proof of perfect_secrecy (README: Guarantees). (In characteristic 2, 1 − x/t and 1 + x/t are the same thing.)

The linear factor 1 + t⁻¹·x: it is 1 at x = 0 and 0 at x = t (when t ≠ 0).

Equations
Instances For
    theorem QedShare.Poly.eval_factor (t x : GF256) :
    (factor t).eval x = 1 + x * t.inv

    The factor 1 + X·t⁻¹ at x is 1 + x·t⁻¹.

    Every factor is 1 at 0.

    theorem QedShare.Poly.eval_factor_self (t : GF256) (h : t ≠ 0) :
    (factor t).eval t = 0

    The factor for t ≠ 0 is 0 at t.

    theorem QedShare.Poly.eval_vanishing (T : List GF256) (hT : ∀ (t : GF256), t ∈ T → t ≠ 0) :
    (vanishing T).eval 0 = 1 ∧ ∀ (t : GF256), t ∈ T → (vanishing T).eval t = 0

    The vanishing polynomial is 1 at 0 and 0 on every point of T (all points nonzero).

    Length (degree) bookkeeping #

    The sum of two coefficient lists is as long as the longer one.

    Scaling a polynomial keeps its number of coefficients.

    theorem QedShare.Poly.length_mul_factor (t : GF256) (q : Poly) (hq : q ≠ []) :

    Multiplying by a linear factor adds one coefficient.

    vanishing T has exactly |T| + 1 coefficients.