Encoding order-free interpreted structures #
An interpretation maps a well-formed structure instance to its interpreted structure, numbered
by increasing tuple-index rank. An instance (n, tables) with invalid table shapes maps to a
fixed malformed target instance, outside every target query language. This is a map between
parsed instances; no claim about decoding arbitrary bit strings is made.
Main definitions #
Cslib.Logic.FO.Interpretation.encodedMap: the encoded interpreted structure.
Main results #
Cslib.Logic.FO.Interpretation.wellFormed_encodedMap_iff: shape validity is preserved and reflected by the map.Cslib.Logic.FO.Interpretation.mem_queryLanguage_encodedMap_iff: target query membership is equivalent to validity of the source instance and membership of its interpreted structure.
References #
Encode the structure interpreted in a well-formed input, numbering its elements by ranks. Malformed inputs map to a fixed malformed structure encoding. This includes empty structures, empty interpreted domains, nullary relations, and interpretations of dimension zero.
Instances For
The encoded interpreted structure is well formed exactly when the input is.
For an isomorphism-closed target class, target query membership is exactly source validity and membership of the interpreted structure in that class.