Certifiable Boolean Reasoning Is Universal

Wenhao Li, Anastasis Kratsios, Hrad Ghoukasian, Dennis Y. Zvigelsky

Abstract

The proliferation of agentic systems has thrust the reasoning capabilities of AI into the forefront of contemporary machine learning. While it is known that there exist neural networks which can reason through any Boolean task, trained models have been repeatedly demonstrated to fall short of these theoretical ideals. We exhibit a deep learning architecture, the Stochastic Boolean Circuit (SBC), which parameterizes distributions over Boolean circuits with the guarantee that, for every parameter configuration, a sample is almost surely a valid Boolean circuit. We prove a universality theorem: for any Boolean function, there exists a parameter configuration under which the sampled circuit computes it with arbitrarily high probability. Empirically, SBCs train reliably and achieve high exact-match accuracy while preserving predicted structure, unlike standard MLP baselines.

Introduction

Modern AI models, especially Large Language Models (LLMs), are increasingly deployed for complex reasoning tasks. Theoretical computer science tells us that neural networks can emulate Boolean circuits—the fundamental building blocks of logical reasoning. However, empirical evidence shows that trained models often act as sophisticated memorizers rather than true reasoners; their "chain-of-thought" can easily be broken by adversarial prompts or data contamination. This raises a fundamental question: Can we build a neural network that certifiably reasons, is universal, and remains practically competitive to train?

The Stochastic Boolean Circuit (SBC)

The authors introduce the Stochastic Boolean Circuit (SBC) model. Instead of using standard continuous neurons (like ReLUs), the SBC parameterizes a probability distribution over actual Boolean circuits. It consists of three main differentiable components:

1. Stochastic Bit-Lifting Channels

The first layer selects the most relevant input bits and their negations. This "lifting" process expands the input space to include both the literals and their complements, facilitating the construction of complex logical expressions.

Bit-Lifting Channels mapping input literals to intermediate nodes.

2. Randomized Fan-In Edges and Stochastic Gates

A routing mechanism where each node smoothly selects exactly two inputs from the previous layer (fan-in 2). Following this, a differentiable feature head evaluates all 16 possible binary Boolean gates (AND, OR, XOR, etc.) and learns to select exactly one.

Randomized Fan-In Edges and Stochastic Boolean Gates.

During training, the model uses continuous relaxations (like softmax with temperature annealing) to remain differentiable, allowing it to be trained with standard backpropagation. After training, the model's continuous probabilities are "snapped" into a discrete, hard-coded Boolean circuit.

Key Insights and Results

The SBC is certifiable by design. Any sample drawn from a trained SBC is mathematically guaranteed to be a valid Boolean circuit. This eliminates the need for post-hoc probing tools to interpret model behavior; the logic gates are directly readable.

Furthermore, the authors prove that SBCs are universal approximators for Boolean functions. For functions that are $\mathcal{O}(\log B)$-juntas (depending only on a small subset of inputs), the parameter count scales linearly with input dimension $B$.

The Interpretability Gap

The authors introduce Boolean Neuronal Representability (BNR) to test if a continuous neuron acts like a discrete logic gate (outputting only two distinct values).

  • SBC Performance: Achieves a perfect 1.000 BNR score, providing a perfect circuit-level certificate.
  • MLP Performance: While MLPs can achieve high accuracy (98.7% - 99.9%), they score poorly on BNR (0.10 to 0.20). This suggests that standard MLPs solve logical tasks through non-logical, continuous transformations rather than structured reasoning.

Conclusion

The SBC architecture bridges the gap between deep learning and formal logic. While standard MLPs slightly outperform SBCs in raw accuracy, they lack the structural guarantees and interpretability inherent in the SBC. Future work will explore richer circuit classes and variable fan-in/fan-out structures to scale certifiable reasoning further.

Summary updated

BibTeX
@misc{li2026certifiable,
  author = {Wenhao Li and Anastasis Kratsios and Hrad Ghoukasian and Dennis Y. Zvigelsky},
  title = {{Certifiable Boolean Reasoning Is Universal}},
  year = {2026},
  eprint = {2602.05120},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.05120},
}
Figure