Field laws for multiplication #
All laws are proved first for the textbook mulSpecByte / constant-time mulByte on bytes with
bv_decide, then lifted to GF256.
bv_decide turns a goal about fixed-width bit vectors into a SAT problem and asks a SAT solver
(CaDiCaL) for a proof. The solver's LRAT certificate is checked by compiled code, and each
bv_decide call adds one auxiliary axiom (<theorem>._native.bv_decide.ax_…) recording that the
checker accepted it (see README: What you have to trust).
Associativity #
A direct bv_decide proof of associativity times out: it has 24 input bits and the circuit is
mostly XORs, which SAT solvers handle badly.
Instead, split a into its 8 bits (a = Σᵢ bitPart a i). Multiplication is linear in its left
argument, so associativity for a follows from associativity for each single bit, and each of
those is a much easier SAT problem (one free bit of a, plus b and c).