Documentation

LeanPool.InfinitaryLogic.Methods.SchemaTermModel

Layer 7b checkpoint 5a: the schema term-model substrate #

The completed schema theory Tσ = schemaCompletionTheory (schemaEnumeration s₀) hM is complete on the schema universe, iSup-witnessed, and finite-character consistent — but NOT a maximal ConsistencyPropertyEq (deliberately: the pivot escaped the extension-field blocker). So its term model's equality quotient cannot come from a syntactic C6-closure of . Instead, per the design decision, equality on closed (localColim s₀)[[ℕ]] terms is defined directly in the locDeEqAtom vocabulary the completion controls, and every quotient law (reflexivity, symmetry, transitivity, congruence, relation well-definedness) is proved by the same source-semantic contradiction: if the wrong sign were in , finite_consistent yields a source-model body realizing an impossible equality situation in M.

The file delivers checkpoint 5a in full: the canonical-support equality relation SchemaTermEq and the shared body-extraction engine exists_body_of_subset; the exported semantic bridges realize_schemaEqSentence_iff/realize_schemaRelSentence_iff (via the σ-generalization locDeTermFin_realize_constInterp_nat); the equivalence/congruence laws; and the quotient model — SchemaTermCarrier with its (localColim s₀)[[ℕ]]-structure, the atomic API (schemaTerm_funMap_mk/schemaTerm_realize_eq_mk/schemaTerm_relMap_mk_iff), and the canonical sequence schemaSeq (the classes of the d-constants). No iSup, all, or truth lemma here — that is checkpoint 5b.

The canonical finite support of an equality between two closed schema terms.

Equations
Instances For

    The lifted templateSentence of the de-substituted equality atom locDeEqAtom at the canonical support — the schema-universe sentence that encodes "t = u".

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

      Canonical-support schema equality on closed (localColim s₀)[[ℕ]] terms: t ≈ u iff the completed theory contains the encoded equality sentence.

      Equations
      Instances For
        theorem FirstOrder.Language.exists_body_of_subset {s₀ : LocalStage} {M : Type} [(localColim s₀).Structure M] [LinearOrder M] [WellFoundedLT M] (hM : Cardinal.beth (Ordinal.omega 1) Cardinal.mk M) (F : Finset (((localColim s₀).withConstants ).withConstants ).Sentenceω) (hF : τF, τ schemaCompletionTheory (schemaEnumeration s₀) hM) :
        ∃ (σ : M) (h : M), τF, realizeWith σ h τ Empty.elim Fin.elim0

        The shared body-extraction engine. A finite fragment of is MarkerHenkinConsistent, so it has a body: a source interpretation (σ, h) realizing every member. Every equality law derives its contradiction from this.

        The exported equality bridge. Under a body interpretation (σ, h), schemaEqSentence t u is realized iff t and u have the same σ-value — the semantically meaningful form every equality law consumes.

        The relation interface (schemaRelSentence + well-definedness) #

        The canonical finite support of a relation atom over a tuple of closed schema terms.

        Equations
        Instances For

          The lifted templateSentence of the de-substituted relation atom locDeRelAtom at the canonical support — the schema-universe sentence that encodes "R ts".

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

            The exported relation bridge. Under a body interpretation (σ, h), schemaRelSentence R ts is realized iff R holds in M on the σ-values of the terms.

            Canonical-support schema relation membership on tuples of closed schema terms.

            Equations
            Instances For

              The quotient term model #

              The setoid on closed schema terms induced by the completed theory.

              Equations
              Instances For
                @[reducible, inline]

                The schema term-model carrier: closed (localColim s₀)[[ℕ]] terms quotiented by the completed theory's equality. An abbrev, so Quotient lemmas and dot-notation apply transparently (the FSentence precedent).

                Equations
                Instances For
                  @[reducible, inline]

                  The class of a closed schema term.

                  Equations
                  Instances For

                    Two terms have the same class iff the completed theory contains their equality sentence.

                    @[reducible]

                    The (localColim s₀)[[ℕ]]-structure on the carrier: funMap by term formation on Quotient.out representatives; RelMap (the constant layer adds no relations) by the completed theory's relation membership on representatives. Well-definedness on classes is exposed by the atomic API below (via schemaTermEq_func/schemaTermRel_congr), not baked into the definition.

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

                      Atomic API, function symbols: funMap computes on classes — applying an interpreted symbol to classes gives the class of the function term (well-definedness via schemaTermEq_func).

                      Atomic API, terms: every closed term realizes in the term model to its own class.

                      Atomic API, relations: a base relation holds in the term model on classes iff the completed theory contains the relation sentence (well-definedness via schemaTermRel_congr).

                      The canonical schema sequence in the term model: the classes of the sequence constants d₀, d₁, …. This is the sequence the witnessed template (TailTemplateOmegaWitnessed) will be established for.

                      Equations
                      Instances For

                        The general schema-formula interface and semantic sign transport (5b-3 substrate) #

                        The restricted truth lemma treats equality/relation sentences as special cases of ONE formula-application encoding: schemaFormulaSentence φ ts, the lifted template of the general de-substituted formula locDeForm at the canonical support schemaRelSupport ts. Its source-semantics bridge realize_schemaFormulaSentence_iff is the semantic engine of the truth lemma. The sign-transport lemmas then move theory membership across ANY semantic equivalence of universe sentences (support changes, canonical deForms, normalization to the atomic API) by one body extraction — never by re-running quotient inductions: if the two sentences carried opposite signs, exists_body_of_subset would realize both the source and the negated target under one interpretation pair, contradicting the equivalence.

                        The lifted templateSentence of the general de-substituted formula locDeForm at the canonical support — the schema-universe sentence that encodes "φ holds on the closed terms ts". schemaEqSentence/schemaRelSentence are the atomic special cases of this shape.

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

                          schemaFormulaSentence φ ts of a colimit-family member is a schema-universe member (its de-substituted formula is in the canonDeForms component of ΓEMlocal).

                          The exported formula bridge — the truth lemma's semantic engine. Under a body interpretation (σ, h), schemaFormulaSentence φ ts is realized iff φ holds in M on the σ-values of the closed terms. Generalizes realize_schemaEqSentence_iff/ realize_schemaRelSentence_iff to arbitrary formulas via the same σ-generalized term bridge.

                          Semantic sign transport. Two universe sentences semantically equivalent under every body interpretation receive the same sign from the completed theory. The workhorse for normalizing between schemaFormulaSentence, the atomic sentences, and canonical deForms in the truth lemma — one body extraction per equivalence, no quotient induction.