Documentation

Complexitylib.DescriptiveComplexity.TaggedReduction.Encoding.Defs

Tagged interpretations on binary encodings #

The decidable structure map uses the same finite product and tuple equivalences as the original interpretation. Arithmetic generation recovers tags by division and coordinates by base expansion. Each relation chooses among the fixed finite family of defining formulas; constants pack tuples of source constants.

The full output has universe size tags * card ^ dim. Its binary map decodes, interprets, and re-encodes, with the fixed non-encoding [] for malformed input. This extends the structural reduction method of Immerman, Chapter 3, to the tagged full-product interpretation design of Senellart and Gnatenko (2026).

Evaluate the defining formulas on the exact tagged tuple universe.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    def Complexity.DescriptiveComplexity.TaggedFOInterpretation.relationEnvCode (card dim : ℕ) {arity : ℕ} (args : Fin arity → ℕ) :
    Fin (arity * dim) → ℕ

    Recover the flattened source coordinates from numeric target-element indices.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Complexity.DescriptiveComplexity.TaggedFOInterpretation.relationBitCode {V W : Vocabulary} {tags dim : ℕ} (I : TaggedFOInterpretation V W tags dim) (r : Fin W.numRels) (card : ℕ) (input : List Bool) (args : Fin (W.relArity r) → ℕ) :

      Select a defining formula by its tag tuple and evaluate its source coordinates.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Write the complete target relation table in canonical tuple order.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Pack the fixed tag and source-constant coordinates of a target constant.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Generate all target tables and constant blocks at a supplied source size.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Decode, interpret, and re-encode, sending malformed inputs to the non-encoding [].

              Equations
              Instances For