Encoding ordered interpretations with a domain formula #
A well-formed source of size at least two is mapped to the encoding of its image, whose universe
is numbered by the lexicographic rank of the domain tuples. This is defined for every source,
including those with fewer than two domain tuples, whose encoded image has no canonical ordered
decoding. Only the target input relations are serialized; the canonical order, BIT and constants
are determined by the cardinality. Malformed sources and sizes zero and one map to the same
malformed target as FullTupleInterpretation.encodedMap.
Partial decoding of source-only encodings turns an ordered query language into the set of
encodings that decode to members, and an admissible interpretation commutes with decoding. This is
the simulation hypothesis of Cslib.Complexity.ManyOneReducibleBy.lift.
Main definitions #
Cslib.Logic.FO.Ordered.decode?: partial decoding of source-only encodings.Cslib.Logic.FO.Ordered.DomainInterpretation.encodedMap: the total map on parsed instances.
Main results #
Cslib.Logic.FO.Ordered.Query.encodedLanguage_eq: query languages by partial decoding.Cslib.Logic.FO.Ordered.DomainInterpretation.card_encodedMap: the number of domain tuples.Cslib.Logic.FO.Ordered.DomainInterpretation.wellFormed_encodedMap_iff: exact shape guard.Cslib.Logic.FO.Ordered.DomainInterpretation.table_encodedMap: exact table numbering.Cslib.Logic.FO.Ordered.DomainInterpretation.decode?_encodedMap: commutation with decoding.
References #
- N. Immerman, Descriptive Complexity, Proviso 1.15 and Definition 1.26.
Decode a source-only encoding as a canonically ordered structure, when it is well formed and has at least two elements.
Instances For
Canonical encodings decode to their structures.
An ordered query language consists of the encodings decoding to members of the query.
Encode the target input relations on the ranks of the domain tuples. Invalid shapes or sizes below two produce one empty table too many, outside every target query language.
Instances For
The encoded image has one element per domain tuple.
Shape validity of the result is exactly source admissibility, whatever the number of domain tuples.
The bit at the table index of some target ranks is the defining formula on the domain tuples of these ranks. Numeric predicates are not serialized as extra tables.
The output length includes its unary cardinality and every framed relation table.
For an admissible interpretation, the encoded image is the canonical encoding of the image.
Decoding commutes with an admissible interpretation. Undecodable sources map to undecodable targets.