The clauses of the succinct tableau as symbolic shapes #
A clause of the tableau formula on bit-field labels (Cslib.Circuits.Boolean.Tableau.clauseOf)
is determined by finitely many data: its clause and tag fields, its slot, and thirteen comparisons
of the column c, the block t and the payload p with 0, 1, n, n + 1, 2 T, T and
the length of the fixed prefix x (Key). From these, the clause is a list of three symbolic
literals (shapeOf): the label of each literal is a constant, the input p, the input c - 1,
or a position whose column is 0, c, c - 1, c + 1 or 2 T and whose block is t, t - 1
or T (LabelSrc); its sign is a constant or the bit of x at p (SignSrc). Evaluating the
shapes on the fields gives the clause (clauseOf_eq_map_shapeOf).
This is the case analysis behind the decoder circuit: a circuit of constant size computes the
shape from the key, and circuits linear in the field widths compute the fields c - 1, c + 1
and t - 1 and the comparisons.
Main definitions #
Cslib.Circuits.Boolean.Tableau.Decoder.LabelSrc,Cslib.Circuits.Boolean.Tableau.Decoder.SignSrc: symbolic labels and signs.Cslib.Circuits.Boolean.Tableau.Decoder.Key,Cslib.Circuits.Boolean.Tableau.Decoder.Key.ofFields: the finite data determining a clause.Cslib.Circuits.Boolean.Tableau.Decoder.shapeOf: the symbolic clause of a key.
Main results #
Cslib.Circuits.Boolean.Tableau.Decoder.clauseOf_eq_map_shapeOf: the clause with given fields is the evaluation of the shape of their key.Cslib.Circuits.Boolean.Tableau.Decoder.inRange_of_mem_shapeOf: the labels of the shapes stay within their fields.
References #
Symbolic labels #
A symbolic label.
A symbolic literal.
The column of a column source.
The block of a block source.
The label of a symbolic label, for slot and column widths s and cb, payload p, column
c and block t.
The literal of a symbolic literal.
Keys #
The finite data that determine a clause: the clause and tag fields, the slot, and
comparisons of the column c, the block t and the payload p.
- j : ℕ
The clause field.
- tag : ℕ
The tag field.
- slot : ℕ
The slot.
- c0 : Bool
c = 0. - cGt1 : Bool
1 < c. - cGtN : Bool
n < c. - cGtN1 : Bool
n + 1 < c. - cLt2T : Bool
c < 2 T. - cGt2T : Bool
2 T < c. - cLtT : Bool
c < T. - cGtT : Bool
T < c. - t0 : Bool
t = 0. - tGtT : Bool
T < t. - pLtX : Bool
p < X, for the lengthXof the fixed prefix. - p0 : Bool
p = 0. - pGt1 : Bool
1 < p.
The column of a payload.
The block of a payload.
The guard of a reference, from a key.
The initial value of a position, from a key.
Clauses on symbolic labels with constant signs.
The symbolic clause j of a position.
The symbolic clause of a key, following clauseOf.
Evaluation #
The clause with given fields is the evaluation of the shape of their key.
Bits #
The tag of a symbolic label.
The constant part of the payload of a symbolic label, in its slot field.
The selector q of a symbolic label: the payload is p (0) or c - 1 (1), the column is
c, c - 1, c + 1 or 2 T (2 to 5), the block is t, t - 1 or T (6 to 8).
Decrements of c = 0 and t = 0 select nothing, giving 0 = 0 - 1.
The selector q of a symbolic sign: the constant true (9) or the lookup (10).
The tag and slot bits of a shape: two tag bits, then the slot bits.
The output bit i of a literal with tag and slot bits ts and selectors sel: the tag
bits, then the payload bits, then the sign. This is what the output stage of the decoder
computes.
A symbolic label whose slot and column fit their fields.
The payload of a symbolic label.
The output bits of a shape are the bits of its literal: its label below 2 + P and its
sign at 2 + P, for P = s + cb + tb, at least one slot bit, a looked-up bit that is the bit of
x at p whenever it is used, and a label whose slot and column fit their fields.
The shapes stay within their fields #
A property of every literal of every branch of shapeOf holds of its literals.
The labels of the shapes fit their fields.
A shape looks up x only at a payload within it.
A shape has three literals.