Skip to content

Metalogic Extension

A. Arda UZAN edited this page Nov 24, 2026 · 1 revision

As of v1.0.0

See Metalogic for the modeled fragment, sort domains, and symbol key.

Extending any well-formed Typify declaration with well-formed clauses whose classes, constructors, and form verbs are fresh preserves the acceptance and exact ordered fact terms of every previously accepted program while admitting newly declared forms.

$$ \left(\forall base : \mathsf{DeclData},; \forall ext : \mathsf{DeclData},; \forall d_{\mathsf{base}} : \mathsf{Decl},; \forall d_{\mathsf{ext}} : \mathsf{Decl},; \forall prog : \mathsf{Prog},; \forall terms : \mathsf{TermList},; \mathsf{compileMeta}(base) = \mathsf{some}(d_{\mathsf{base}}) \implies \mathsf{compileMeta}(\mathsf{extend}(base, ext)) = \mathsf{some}(d_{\mathsf{ext}}) \implies \mathsf{FreshExt}(base, ext) \implies \mathsf{readProg}(d_{\mathsf{base}}, prog) = \mathsf{some}(terms) \implies \mathsf{readProg}(d_{\mathsf{ext}}, prog) = \mathsf{some}(terms)\right) \land \left(\exists base : \mathsf{DeclData},; \exists ext : \mathsf{DeclData},; \exists d_{\mathsf{base}} : \mathsf{Decl},; \exists d_{\mathsf{ext}} : \mathsf{Decl},; \exists line : \mathsf{Line},; \mathsf{compileMeta}(base) = \mathsf{some}(d_{\mathsf{base}}) \land \mathsf{compileMeta}(\mathsf{extend}(base, ext)) = \mathsf{some}(d_{\mathsf{ext}}) \land \mathsf{FreshExt}(base, ext) \land \mathsf{recognize}(d_{\mathsf{base}}, line) = \mathsf{none} \land \mathsf{recognize}(d_{\mathsf{ext}}, line) = \mathsf{some}(\mathsf{t}_{\mathsf{knows}})\right) $$

Boundary example. Adding term : knows : person peer, form : knows : <person> = <peer>, and does : knows <person> <peer> to $\mathsf{d}_{\mathsf{base}}$ preserves member : ada ([["member", "ada"]]) and turns knows : ada = ben from rejected (E_FORM_NONE) into ["knows", "ada", "ben"] ([["member", "ada"], ["knows", "ada", "ben"]] on the two-line program), whereas reusing the existing verb member violates $\mathsf{FreshExt}$ and is rejected at declaration load (E_FORM_SHADOW).

Clone this wiki locally