Directed First-Order Logic
Andrea Laretto, Fosco Loregian, Niccolò Veltri
TL;DR
This work develops a directed first-order logic that replaces symmetric equality with an asymmetric directed relation interpreted in preorder-like models. It introduces a rigorous polarity/dinaturality system to manage variable occurrences and a left-relative adjoint characterization of directed equality, yielding a precise universal property. Semantics are captured by directed doctrines, enabling soundness and completeness results with the preorder model as a primary instantiation; polarized exponentials and quantifiers extend standard logical connectives under directed constraints. The framework generalizes Lawvere’s equality, positioning directed logic as a robust internal language for directed doctrines, and points to fruitful future work in indexed models, directed spaces, and potential links to directed type theories and concurrent computation.
Abstract
We present a first-order logic equipped with an "asymmetric" directed notion of equality, which can be thought of as transitions/rewrites between terms, allowing for types to be interpreted as preorders. We then provide a universal property to such "directed equalities" by describing introduction and elimination rules that allows them to be contracted only with certain syntactic restrictions, based on polarity, which do not allow for symmetry to be derived. We give a characterization of such directed equality as a relative left adjoint, generalizing the idea by Lawvere of equality as left adjoint. The logic is equipped with a precise syntactic system of polarities, inspired by dinaturality, that keeps track of the occurrence of variables (positive/negative/both). The semantics of this logic and its system of variances is then captured categorically using the notion of directed doctrine, which we prove sound and complete with respect to the syntax.
