Native sampling and scalar arithmetic in the four-element field #
The existing quadratic algebra is encoded by the standard pair encoding of its two Boolean coordinates. Two fair-bit instructions followed by finite deterministic decoding supply a strict-PPT sampler with the exact uniform law proved in the language module. Addition, subtraction and multiplication have finite lookup-machine certificates under the same encoding. The field is fixed: none of these finite-type certificates asserts uniform efficiency for growing extension degrees.
Main definitions #
Cslib.F4.encoding: the standard pair encoding of the two Boolean coordinates.
Main results #
Cslib.F4.isPPTOn_sample: an unconditional strict fair-coin sampler certificate.Cslib.F4.computableInPolyTime_add,Cslib.F4.computableInPolyTime_sub,Cslib.F4.computableInPolyTime_mul: encoded scalar arithmetic certificates.
Encode the two basis coordinates using the existing Boolean-pair encoding.
Sampling this fixed field uses exactly the distribution of two independent fair bits.
Addition in the fixed four-element field has a finite lookup implementation.
Subtraction in the fixed four-element field has a finite lookup implementation.
Multiplication in the fixed four-element field has a finite lookup implementation.