Skip to content

Metalogic Formality

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.

For every well-formed declaration and legal content line in the fragment, the deterministic recognizer returns a fact term if and only if the independent inductive line-denotation judgment derives that same term, ensuring unique line meanings and decidable acceptance.

$$ \mathsf{WFDecl}(\mathsf{d}_{\mathsf{base}}) \land \left(\forall d : \mathsf{Decl},; \forall line : \mathsf{Line},; \mathsf{WFDecl}(d) \implies \mathsf{FragLine}(line) \implies \left(\forall t : \mathsf{Term},; \mathsf{recognize}(d, line) = \mathsf{some}(t) \iff \mathsf{Derives}(d, line, t)\right) \land \left(\forall t_{1} : \mathsf{Term},; \forall t_{2} : \mathsf{Term},; \mathsf{Derives}(d, line, t_{1}) \implies \mathsf{Derives}(d, line, t_{2}) \implies t_{1} = t_{2}\right) \land \left(\mathsf{Accepts}(d, line) \iff \left(\exists t : \mathsf{Term},; \mathsf{Derives}(d, line, t)\right)\right)\right) $$

Boundary example. Under $\mathsf{d}_{\mathsf{base}}$ (is : person = "ada" | "ben", form : member : <person>, does : member <person>), member : ada is accepted with ["member", "ada"], whereas member : unknown fails class membership (E_CLASS), and a binary declaration whose left literal "a=" overlaps its separator "==" fails $\mathsf{WFDecl}$ (E_CLASS_OVERLAP) so first-occurrence recognition cannot diverge from declarative derivation.

Clone this wiki locally