Encoding canonical full-tuple interpretations #
A full-tuple interpretation is the ordered interpretation whose domain formula is true
(FullTupleInterpretation.toDomainInterpretation), with ranks given by lexicographic rank on all
tuples. A valid source of size at least two is mapped to the full tuple universe, numbered by
lexRank, agreeing with DomainInterpretation.encodedMap
(FullTupleInterpretation.encodedMap_toDomainInterpretation). Only the target input relations are
serialized; canonical order, BIT and constants are computed from the target cardinality. Relation
tables keep tupleIndex order across their arguments. Malformed sources and sizes zero and one map
to a fixed malformed target.
Main definitions #
Cslib.Logic.FO.Ordered.FullTupleInterpretation.toDomainInterpretation: embedding as an interpretation with domain formula⊤.Cslib.Logic.FO.Ordered.FullTupleInterpretation.encodedMap: the total map on parsed instances.
Main results #
Cslib.Logic.FO.Ordered.FullTupleInterpretation.unrank_toDomainInterpretation: ranks are lexicographic ranks.Cslib.Logic.FO.Ordered.FullTupleInterpretation.encodedMap_toDomainInterpretation: agreement withDomainInterpretation.encodedMap.Cslib.Logic.FO.Ordered.FullTupleInterpretation.card_encodedMap: exact target cardinality.Cslib.Logic.FO.Ordered.FullTupleInterpretation.table_encodedMap: exact table numbering.Cslib.Logic.FO.Ordered.FullTupleInterpretation.wellFormed_encodedMap_iff: exact shape guard.
References #
- N. Immerman, Descriptive Complexity, Remark 1.32, Exercise 1.33 and Proposition 3.5. The full-domain hypothesis is essential; restricted domains still require explicit definitions and correctness proofs for their numeric symbols.
A full-tuple interpretation is the ordered interpretation with domain formula true.
Instances For
The ranks of a full-tuple interpretation are the lexicographic ranks of all tuples.
Positive-dimensional full-tuple interpretations are admissible.
Encode the interpreted input relations on the canonical rank universe. Invalid shapes or sizes below two produce one empty table too many, outside every target query language.
Instances For
The encoded maps agree: the full-tuple encoded map is that of the embedded interpretation, for every dimension and every input.
The canonical rank universe has exactly one element per source tuple.
Shape validity of the result is exactly source admissibility. Positive dimension is only needed when asking for canonical target numerics, not for this shape statement.
A positive-dimensional admissible source produces an admissible target cardinality.
The bit at the existing table index of the target arguments is the defining formula on their inverse lexicographic ranks. Numeric predicates are not serialized as extra tables.
The output length includes its unary cardinality and every framed relation table.
The decoded output, with its own canonical numerics, is the interpreted full ordered structure. Its underlying numbering is the exact lexicographic rank, not an arbitrary input relation isomorphism.
Instances For
Every element retains its exact natural-number rank in the decoded target.