Positions in the finite-structure encoding #
The table sites follow exactly the computable enumeration used by encodeStruct:
relation symbols in order, their tuples in allTuples order, then one-hot
constant blocks. encodingPosition includes the unary-cardinality prefix.
@[reducible, inline]
A relation-table cell or one entry in a constant's one-hot block.
Equations
Instances For
Number of bits in the relation tables and constant blocks.
Equations
Instances For
The value stored at a table-input site.
Equations
Instances For
Table sites in the computable order used by the structure encoder.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Full encoded length, including the unary cardinality and its terminator.
Equations
Instances For
def
Complexity.DescriptiveComplexity.encodingPosition
(V : Vocabulary)
(card : ℕ)
(site : InputSite V card)
:
Zero-based bit position of a table entry in the full encoding.
Equations
- Complexity.DescriptiveComplexity.encodingPosition V card site = card + 1 + List.idxOf site (Complexity.DescriptiveComplexity.encodingTableSites V card)