Documentation

InfinitaryLogic.Descriptive.QueryCode

The query-code closed embedding (issue #10, Unit 0a) #

The frozen named query encoding of the López–Escobar audit (D3, v2): a fixed embedding queryEmbedding : RelQuery L ↪ ℕ and the induced code map

queryCode : StructureSpace L → (ℕ → Bool)

sending a structure code to its bit sequence along the embedding, false outside the embedding's range. The four gates, plus the capstone:

This is the stop/go gate's first half; the analytic tree normal form (Unit 0b) builds the cylinder tree in (ℕ → Bool) × (ℕ → ℕ) on top of it.

@[reducible]

The frozen query encoding — one named Encodable witness, never re-synthesized.

Equations
Instances For

    The frozen query embedding RelQuery L ↪ ℕ (audit D3, v2).

    Equations
    Instances For
      noncomputable def FirstOrder.Language.queryCode {L : Language} [Countable ((l : ) × L.Relations l)] (c : L.StructureSpace) (n : ) :

      The query code of a structure code: the bit at coordinate n is the code's value at the query encoded by n, and false when n encodes no query.

      Equations
      Instances For
        noncomputable def FirstOrder.Language.decodeCode {L : Language} [Countable ((l : ) × L.Relations l)] (x : Bool) :

        The continuous retraction: read the structure code back off the embedded coordinates.

        Equations
        Instances For
          @[simp]

          Gate 1: every query is recovered at its encoded coordinate.

          Gate 2: coordinates outside the embedding's range are false.

          Gate 3 (range characterization): the range of queryCode is exactly the default condition — false at every coordinate outside the embedding's range.

          Gate 4: the range is closed — an intersection of clopen coordinate conditions.