Skip to content

Differentiable Horn Programs: A Constructive Expressivity Theorem for Latent Rule Operators

Aymen Mejri

cs.LOarXiv:2609.06235

Abstract

We introduce LatentGamma, a differentiable operator on the unit cube [0,1]M designed as a smooth surrogate of Tarski's immediate consequence operator associated with a definite Horn program P on M atoms. The operator is built as a five-stage composition combining sigmoidal gating, softmax routing, and a residual update that enforces monotonicity by construction. We establish four theoretical results. First, the iterated sequence is coordinate-wise non-decreasing and bounded by ∈d, hence converges to a fixed point of LatentGamma; the operator itself is lattice-monotone on [0,1]M. Second, our constructive expressivity theorem shows that for every definite Horn program P there exists a closed-form parameter assignment θ*(P) and an explicit time bound T(P) such that the iterated sequence exactly reproduces (F0) for every initial fact set F0 throughout the window [D(P, F0), T(P)], where D(P, F0) ≤ M is the derivation depth. The window T is large in practice (≥ 105 for sparse programs) and reflects the finite-time nature of computation by smooth sigmoidal gates. Third, the oracle is robust to Gaussian noise on its body and head logits, with explicit non-asymptotic bounds. Fourth, we prove a matching information-theoretic lower bound on the parameter count. We provide a complete numerical validation on programs ranging from M = 33 to M = 504 atoms: oracle accuracy reaches 1.0000 on 2000 test cases with zero false-positive and false-negative rates, and the empirical noise tolerance σ scales precisely as the union bound RM · Φ(-10/ση) predicts.

Create a lesson