Differentiable Horn Programs: A Constructive Expressivity Theorem for Latent Rule Operators
Aymen Mejri
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
Related papers
Rice's Theorem under Self-Modification: Elevation Operators and a Normal Form
Shared title terminology · Jose Pascual Gumbau Mezquita
Foundations for an Abstract Proof Theory in the Context of Horn Rules
Shared title terminology · Tim S. Lyon, Piotr Ostropolski-Nalewaja
Invariance and Expressiveness: Modal Variations
Shared title terminology · Martin Otto
Sound Automatic Lock Placement for Concurrent Programs with Pointers
Shared title terminology · Nicolas Waldburger, Florian Faissole, Ryo Okabe et al.
Strong Lyndon Interpolation for Multi-Modal Logics with Converses: A Constructive Approach with Tree Sequents
Shared title terminology · Tim S. Lyon
Typed Knowledge over Constructive Institutions: A Proof-Relevant Type Theory for Verified Science
Shared title terminology · Hans-Martin Will