The positions of the bits of an encoded structure #
The encoding encStructure (n, tables) of an input is the framed cardinality in unary followed by
the framed truth tables (Cslib.Logic.encStructure_eq). This file locates its bits: the markers of
the unary cardinality, and for each table its start (Cslib.Logic.tableStart), its markers, its
bits and its terminator. Past the last table there is nothing to read. These are the facts an
algorithm with random access to the encoding needs, such as the logarithmic-space model checker
Cslib.Logic.Vocabulary.modelChecker.
Main definitions #
Cslib.Logic.tableStart: the position of a truth table in the encoding of an input.
Main results #
Cslib.Logic.encStructure_eq: the encoding of an input as a concatenation of frames.Cslib.Logic.drop_tableStart: the encoding from the start of a table on.Cslib.Logic.getElem?_encStructure_two_mul,Cslib.Logic.getElem?_encStructure_two_mul_card: the markers of the cardinality.Cslib.Logic.getElem?_encStructure_tableStart_two_mul,Cslib.Logic.getElem?_encStructure_tableStart_two_mul_add_one,Cslib.Logic.getElem?_encStructure_tableStart_two_mul_length: the markers, bits and terminator of a table.Cslib.Logic.getElem?_encStructure_tableStart_length_add: nothing follows the last table.
References #
The encoding of an input: its framed cardinality in unary, then its framed tables.
The position of the i-th truth table in the encoding of an input; past the last table, the
length of the encoding.
Instances For
The encoding from the i-th table on.
The bits #
The markers of the cardinality.
The terminator of the cardinality.
The markers of a table.
The terminator of a table.
Nothing follows the last table.
There is a bit at the start of every table.