Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Encoding

Encoding arithmetic operations and rational arithmetic circuits #

The existing arithmetic operations are a Boolean choice of addition or multiplication, or a constant from the supplied carrier. Constants retain their supplied encoding. We also provide binary encodings of rational arithmetic circuits and circuit-input pairs over Turing.MultiTapeTM.encRat.

Main definitions #

No new circuit or field representation is introduced.

Addition and multiplication are the two Boolean tags; constants carry their value.

A sum tag, followed by the operation bit or encoded constant.

@[reducible, inline]

Binary encoding of rational arithmetic circuits with m outputs over Turing.MultiTapeTM.encRat.

@[reducible, inline]

Binary encoding of (C, x) pairs for rational arithmetic circuits with m outputs and rational input vectors x : List ℚ.