Documentation

CslibFrontier.Computability.Probabilistic.Sampling.F4

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 #

Main results #

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.