English

Metacat: a categorical framework for formal systems

Category Theory 2026-04-10 v1 Logic in Computer Science

Abstract

We present a categorical framework for formal systems in which inference rules with mm metavariables over a category of syntax S\mathscr{S}, taken to be a cartesian PROP, are represented by operations of arity knk \to n equipped with spans kmnk \leftarrow m \to n in S\mathscr{S}, encoding the hypotheses and conclusions in a common metavariable context. Composition is by substitution of metavariables, which is the sole primitive operation, as in Metamath. Proofs in this setting form a symmetric monoidal category whose monoidal structure encodes the combination and reuse of hypotheses. This structure admits a proof-checking algorithm; we provide an open-source implementation together with a surface syntax for defining formal systems. As a demonstration, we encode the formulae and inference rules of first-order logic in Metacat, and give axioms and representative derivations as examples.

Keywords

Cite

@article{arxiv.2604.08331,
  title  = {Metacat: a categorical framework for formal systems},
  author = {Paul Wilson},
  journal= {arXiv preprint arXiv:2604.08331},
  year   = {2026}
}
R2 v1 2026-07-01T12:01:19.479Z