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 Tσ. 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 Tσ, 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
schemaEqSentence t u is a schema-universe member (its de-substituted atom is in ΓEMlocal).
Canonical-support schema equality on closed (localColim s₀)[[ℕ]] terms: t ≈ u iff the
completed theory contains the encoded equality sentence.
Equations
Instances For
The shared body-extraction engine. A finite fragment of Tσ is MarkerHenkinConsistent,
so it has a body: a source interpretation (σ, h) realizing every member. Every equality law
derives its contradiction from this.
The de-substituted equality atom of a term with itself realizes to True (reflexivity of the
underlying =), on any valuation.
The σ-generalization of locDeTermFin_realize (specialized to J := ℕ): the de-substituted
term, realized on the tuple of σ-values of its support, equals the closed term realized under the
σ-constant interpretation. Unlike locDeTermFin_realize, the interpretation σ is arbitrary (not
a deep a-tuple) — exactly what the body from exists_body_of_subset supplies. Adapts the
locDeTermFin_realize_superset pattern (restrictVar + constantsToVars +
realize_eq_of_eq_on_varFinset + orderEmbOfFin_deepRank).
Reflexivity. t ≈ t: the theory decides schemaEqSentence t t; the negative sign is
impossible because any source body would have to realize ¬(t = t).
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.
Symmetry. t ≈ u → u ≈ t: a body realizing t = u and ¬(u = t) contradicts Eq.symm.
Transitivity. t ≈ u → u ≈ v → t ≈ v: a body realizing t = u, u = v, ¬(t = v)
contradicts Eq.trans.
Function congruence. If ts i ≈ us i for every argument, then f ts ≈ f us: a body
realizing all the argument equalities and ¬(f ts = f us) contradicts the function interpretation
respecting equal arguments. This makes the quotient's funMap well-defined.
The relation interface (schemaRelSentence + well-definedness) #
The canonical finite support of a relation atom over a tuple of closed schema terms.
Equations
- FirstOrder.Language.schemaRelSupport ts = Finset.univ.biUnion fun (i : Fin l) => (FirstOrder.Language.localColim s₀).locJSupport ℕ (ts i)
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
schemaRelSentence R ts is a schema-universe member.
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
Relation well-definedness. Argument-wise SchemaTermEq preserves SchemaTermRel: a body
realizing R ts, all argument equalities, and ¬(R us) contradicts M's RelMap respecting
equal arguments. This makes the quotient's RelMap well-defined.
The quotient term model #
The setoid on closed schema terms induced by the completed theory.
Equations
- FirstOrder.Language.schemaTermSetoid hM = { r := FirstOrder.Language.SchemaTermEq hM, iseqv := ⋯ }
Instances For
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
The class of a closed schema term.
Equations
Instances For
The carrier is inhabited (class of the first sequence constant d₀).
Two terms have the same class iff the completed theory contains their equality sentence.
The representative of a class is equivalent to the term that formed it.
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.
Directional semantic sign transport. If every body interpretation realizing
schemaLift ψ t also realizes schemaLift χ u, then theory membership transfers — only the
TARGET's universe membership is needed (to ask for its sign). If the target were negative, one
body would realize the source and the negated target, contradicting the implication.
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.