Documentation

LeanPool.InfinitaryLogic.Methods.LopezEscobar.StandardModel

The standard functional model and the forward presentation (issue #10, Unit 3a) #

The graph-language code reduct along the base embedding, and the standard functional expansion on ℕ built from a base code c and a branch g:

Forward acceptance gate (subset_pcClass): c ∈ B → ∃ d, codeReduct d = c ∧ d ∈ ModelsOf (pcSentence side T) — without IsomorphismInvariant.

The code reduct #

The base-language code reduct of a graphLanguage (KLang L)-code: read each base query through the graph-language image G_base(Sum.inl R) of the base relation.

Equations
Instances For

    Compatibility with decoded structures: the reduct code's relations are the base graph relations of the decoded structure.

    The standard functional structure #

    Decode a {0,1}-valued numeral back to a bit.

    Equations
    Instances For
      theorem FirstOrder.Language.LopezStd.decodeBit_cond (b : Bool) :
      decodeBit (bif b then 1 else 0) = b

      The first-half Fin (2n) index of i : Fin n.

      Equations
      Instances For

        The second-half Fin (2n) index of i : Fin n.

        Equations
        Instances For
          noncomputable def FirstOrder.Language.LopezStd.wFun {L : Language} [Countable ((l : ℕ) × L.Relations l)] (c : L.StructureSpace) (g : ℕ → ℕ) {k : ℕ} :
          WitnessFun k → (Fin k → ℕ) → ℕ

          The witness function interpretation on ℕ: c ↦ 0, s ↦ succ, f ↦ the query bit, g ↦ the branch.

          Equations
          Instances For
            def FirstOrder.Language.LopezStd.wRel (T : (n : ℕ) → Set ((Fin n → Bool) × (Fin n → ℕ))) {k : ℕ} :
            WitnessRel k → (Fin k → ℕ) → Prop

            The witness (tree) relation interpretation on ℕ: tree n decodes the first half as bits, the second half as τ, and asks membership in T n.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              @[reducible]
              noncomputable def FirstOrder.Language.LopezStd.standardMid {L : Language} [L.IsRelational] [Countable ((l : ℕ) × L.Relations l)] (c : L.StructureSpace) (g : ℕ → ℕ) (T : (n : ℕ) → Set ((Fin n → Bool) × (Fin n → ℕ))) :

              The standard MidLang L-structure on ℕ from a code c, branch g, tree T.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                @[reducible]
                noncomputable def FirstOrder.Language.LopezStd.standardK {L : Language} [L.IsRelational] [Countable ((l : ℕ) × L.Relations l)] (c : L.StructureSpace) (g : ℕ → ℕ) (T : (n : ℕ) → Set ((Fin n → Bool) × (Fin n → ℕ))) :

                The standard KLang L-structure on ℕ: both witness copies interpreted identically, so its reduct along either side's embedding is standardMid.

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

                  Reductions of the semantic maps in the standard model #

                  The tree tuple / path tuple extractions #

                  The standard model satisfies Θ #

                  Lifting to KLang and graph-expanding #

                  The forward code and its two properties #

                  The forward presentation #

                  theorem FirstOrder.Language.subset_pcClass {L : Language} [L.IsRelational] [Countable ((l : ℕ) × L.Relations l)] {B : Set L.StructureSpace} (side : PCSide) (T : (n : ℕ) → Set ((Fin n → Bool) × (Fin n → ℕ))) (hT : ∀ (c : L.StructureSpace), c ∈ B ↔ ∃ (g : ℕ → ℕ), ∀ (n : ℕ), (fun (i : Fin n) => queryCode c ↑i, fun (i : Fin n) => g ↑i) ∈ T n) :
                  B ⊆ codeReduct '' ModelsOf (L.pcSentence side T)

                  Forward gate (subset_pcClass): if T characterizes B by branches (Unit 0), then every code of B is the base reduct of a model of the PC sentence. No IsomorphismInvariant.