Logic-Based Artificial Intelligence Algorithms Supporting Categorical Semantics
Ralph Wojtowicz
TL;DR
The paper presents a framework for logic-based AI grounded in categorical semantics, reframing inference and unification for multi-sorted, context-rich theories within cartesian and related categories. It adapts Johnstone's sequent calculus (Elephant) to forward-chaining and normal-form Horn theories, deriving both propositional and first-order Horn inference algorithms that respect terms- and formulae-in-context. Central contributions include algorithms for Horn normalization, context-aware unification, and first-order Horn forward chaining, supported by a rigorous semantic justification via Sigma-Structures and pullback/subobject semantics. By enabling reasoning in semantic categories that do not support full classical logic, the work broadens the applicability of symbolic AI to richer mathematical structures and dynamic interpretations, with a practical realization path via C implementations and connections to established theorem provers. Overall, it provides a principled bridge between categorical logic and AI inference, offering concrete methods and proofs to perform sound symbolic reasoning in non-classical semantic settings.
Abstract
This paper seeks to apply categorical logic to the design of artificial intelligent agents that reason symbolically about objects more richly structured than sets. Using Johnstone's sequent calculus of terms- and formulae-in-context, we develop forward chaining and normal form algorithms for reasoning about objects in cartesian categories with the rules for Horn logic. We also adapt first-order unification to support multi-sorted theories, contexts, and fragments of first-order logic. The significance of these reformulations rests in the fact that they can be applied to reasoning about objects in semantic categories that do not support classical logic or even all its connectives.
