paper

Optimal Learning of Logical Semantics from Data

arXiv:2611.41815

Abstract

A learner that induces logic programs from a template of candidate Horn clauses is handed the clause-sets , but most of them deduce the same facts. What it can actually learn is the set of realizable deductive closures, the distinct meanings (semantic contents) the template can express. Learning theory takes the hypothesis class as given; here it is not. exists only implicitly, as the image of a least-fixpoint map, and its size, its VC and Littlestone dimensions, and even a way to run the optimal learners over it become available only once it is constructed. We construct it for two recursive families. For the bandwidth- reachability template on atoms the semantic capacity is bits, with the -bonacci constant, against about syntactic bits; for nonlinear transitive closure on constants it is bits. Standard finite-class results applied to then become closed-form rates: Halving makes at most mistakes, the minimax log-loss (Shtarkov) regret equals once the queries separate the contents, and the agnostic regret is for both families, whose Littlestone dimension is of order . Under random base facts, the size of a content and its semantic compression (how much of a random program its meaning makes redundant) share a sharp threshold at one base fact per constant: below it the meaning determines the program up to bits, above it a constant fraction of the program is redundant. On real data (Padgett's Florentine families and WordNet) the clause-sets of the Florentine template collapse onto contents. Under label noise, version-space pruning loses the target in every run, while exponential weights over stays within its regret bound.