Skip to content

A homotopy-type-theoretic generalization of neurosymbolic inference

Jun 2026 · arXiv.org · Vol abs/2606.17851 · 0 citations · 25 references
Computer Science

TL;DR

A framework from scratch is developed for NeSy systems, a conservativity theorem is proved that recovers the classical functional when symmetries are trivial, and it is shown that the symmetry the framework exposes is exactly the one behind reasoning shortcuts.

Abstract

A wide range of neurosymbolic (NeSy) systems compute one functional: a belief-weighted sum of a logical quantity over a space of $\sigma$-structures, of which weighted model counting, fuzzy logic, and probabilistic logic are special cases. This account is built on sets, and a set deliberately forgets two things that are important for NeSy: when two $\sigma$-structures are the same up to a symmetry of the theory, and how many distinct proofs witness a query. Types, in the sense of homotopy type theory, preserve this information and turn the functional into a belief-weighted homotopy cardinality, a notion of size that counts each object in inverse proportion to its symmetries. We develop the framework from scratch for NeSy systems, prove a conservativity theorem that recovers the classical functional when symmetries are trivial, and show that the symmetry our framework exposes is exactly the one behind reasoning shortcuts. The payoff is concrete: the shortcut-aware concept posterior that recent methods reach by ensembling or expressive density estimation is the only symmetry-invariant point of the confusion-set simplex, computable in closed form by averaging a single model over the symmetry group. On MNIST reasoning-shortcut benchmarks this single-model wrapper is better calibrated than a diversity-trained ensemble, while leaving label accuracy and identifiable concepts untouched. Code is freely available at https://github.com/bio-ontology-research-group/hott-nesy.

View source

Similar papers

Preprint Sep 2026

Mathematical Koans and Cartan Convexity: $\Gamma$-Convex Hulls and Butterfly Realizations

In homage to Hofstadter, we call a compact, citable specification of definitions, theorem, proof mechanism, and examples a mathematical koan when a full paper can be reconstructed and verified from it, including in reader-specific forms generated by AI. Every AI-solvable problem is itself a koan, although reconstructio...

J. Pascoe · 0 citations
Preprint Oct 2026

Inter-Categorical Subobject Analysis

We introduce a systematic way to use the subobject functor on any category to set up a framework for generalized topological and measure-theoretic notions and inferences. Concretely, we develop two connected calculi: 1. a fourfold calculus derived from notions of smallness and density that generalizes, among other thin...

Alexander Prahauser · 0 citations
Open access Sep 2026

Equivalence and Determinism in Light of Topologically-Induced Structure

Contemporary philosophy of spacetime has thus far focused predominantly on the metrical properties of spacetime, with substantially less attention paid to its topological aspects. In this article, we go some way to rectifying this situation, by introducing philosophers to a class of ‘(almost) asymmetric’ manifolds...

D. Grimmer, James Read · 0 citations
Preprint Aug 2026

A Note on the Measure of Vector and Pythagorean Theorem

Why the square? We present a geometry-axiom-free derivation of the Pythagorean theorem and the square at its core, establishing their algebraic origin from within the bare vector-space framework. Such concepts as the (right) angle, rotation, inner product, orthogonality etc also emerge as a logical construct rather tha...

Y. Brezhnev · 0 citations

Related blog posts

Hugging Face Blog Oct 20, 2026

MPS in PyTorch 2.15

We’re on a journey to advance and democratize artificial intelligence through open source and open science.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.