cs.DMSep 19, 2026

Counting and Covering in Nearest-Neighbour Representations of Boolean Functions

Authors: Martin Anthony

Organizations: Department of Mathematics London School of Economics and Political Science, London, UK

Abstract

We study the number of prototypes needed to represent Boolean functions by nearest-neighbour classification. There are two distinct settings: the prototypes may be arbitrary points of Euclidean space, or they may themselves be required to lie in the Boolean cube. For unrestricted prototypes, we strengthen a known lower bound for almost all Boolean functions. The bound applies simultaneously to nearest-neighbour voting rules with any number of voting neighbours, and substantially narrows the gap with the known general upper bound. We obtain a VC-dimension bound for classes with a bounded number of prototypes, and show that it is sharp in order in dimensions at least four. We then study Boolean prototypes, beginning with symmetric threshold functions. A connection with covering designs expresses the minimum number of prototypes at every threshold level exactly in terms of a covering number, and leads to further exact results for related monotone functions, including disjunctive extensions and a characterisation of when a representation with a single negative prototype is possible. For a uniformly random Boolean function, the Boolean nearest-neighbour complexity, as a proportion of the cube, is asymptotically close either to one half or to one, with explicit limiting probabilities. In particular, almost every Boolean function requires at least approximately half as many prototypes as there are points in the cube, and one half is the largest proportion for which such a lower bound holds. Finally, we consider arbitrary symmetric Boolean functions. Their Boolean nearest-neighbour complexity is closely approximated by a weighted vertex-cover problem on paths. As a consequence, a uniformly random symmetric function typically requires prototypes amounting to 11/2011/20 of the cube. This is much larger than the upper bounds known when the prototypes are allowed to lie anywhere in Euclidean space.

Figures & tables

Explore similar work

Jun 28, 2026

Chamber geometry and specification numbers of Boolean threshold functions

The specification number σn(f)σ_n(f) of a Boolean threshold function ff on nn variables is the least number of points whose ff-values determine ff uniquely among all threshold functions. Its essential points form the unique minimum such set. We develop Zuev's geometric interpretation: the threshold functions are the chambers of a central hyperplane arrangement in the (n+1)(n+1)-dimensional space of weights and thresholds, and the essential points of a function correspond exactly to the facets of its chamber, so the specification number is the chamber's facet number. The lower bound σn(f)≥n+1σ_n(f)\ge n+1 becomes the fact that a pointed full-dimensional cone has at least n+1n+1 facets, with equality for simplicial chambers. The average specification number σ‾n\overlineσ_n becomes an average facet count. We evaluate this average exactly via the resonance arrangement and bound it through a theorem of Fukuda, Tamura, and Tokuyama, obtaining σ‾n≤2n\overlineσ_n\le 2n; hence σ‾n=Θ(n)\overlineσ_n=Θ(n). This settles a question of Gutekunst, Mészáros, and Petersen. The method also extends to polynomial threshold functions. The same geometry links threshold functions with a threshold zonotope, whose vertices are modified Chow vectors. Its one-skeleton is the one-inclusion graph, and a vertex's degree is the specification number of that function. Finally, we treat the operations of Lozin et al. on functions of minimum specification number. Adding a variable and extending on a variable both take the product of a chamber closure with a half-line, preserving simpliciality. For the symmetric-variables extension we give an exact thresholdness criterion and show that minimum specification number is preserved whenever the extension is a threshold function. We also resolve a question they pose concerning a fourth operation.
May 21, 2026

Holographic functions and neural networks

A fuzzy Boolean function is a map f:\cuben→[0,1]f:\cube^n\to [0,1], where n∈Nn\in\mathbb N. We introduce and compare three ways of saying that such a function has bounded complexity. The first is a sampling property: the value f(x)f(x) can be recovered, up to small error and with high probability, from the values of a bounded number of randomly chosen coordinates of xx. We call this the holographic property. The second is a structural property: ff is uniformly close to a bounded-degree polynomial in boundedly many bounded linear coordinate forms. The third is computational: ff is uniformly close to the output of a neural network with a bounded number of non-input neurons, bounded Lipschitz activation functions and bounded incoming weights. We prove that these three properties are equivalent up to quantitative changes of the parameters. The implication from holography to polynomial structure uses a variant of a weak version of hypergraph regularity.
Sep 24, 2026

Boolean threshold functions, neuron capacity, and memory retrieval

How much information can a single neuron remember? How many memories can neural networks retrieve without creating false memories? These questions are related to a basic question: how many Boolean threshold functions f(x)=sgn⁡(a0+⟨a,x⟩)f(x)=\operatorname{sgn}(a_0+\langle a,x\rangle), x∈{−1,1}nx\in\{-1,1\}^n, are there? In this paper, we show that the number TnT_n of distinct Boolean threshold functions is Tn=2(2n−1n)(1+O(n−99)).T_n=2\binom{2^n-1}{n}\bigl(1+O(n^{-99})\bigr). Equivalently, the capacity of a single threshold neuron is n2−log⁡2(n!)+1+O(n−99)n^2-\log_2(n!)+1+O(n^{-99}) bits, improving the O(n)O(n) error term in the result of Kahn--Komlós--Szemerédi to O(n−99)O(n^{-99}). To prove this, we show that, for 1≤r≤n−11\le r\le n-1, and v1,…,vrv_1,\ldots,v_r are chosen at random from {−1,1}n\{-1,1\}^n, P ⁣{⟨v1,…,vr⟩∩{−1,1}n={±v1,…,±vr}}=1−O(n−99).\mathbb P\!\left\{ \langle v_1,\ldots,v_r\rangle\cap\{-1,1\}^n =\{\pm v_1,\ldots,\pm v_r\} \right\} =1-O(n^{-99}). In the context of the Kanter--Sompolinsky Hamiltonian for memory retrieval, this identifies r=n−1r=n-1 as a sharp threshold, at which, for almost every collection of rr memories, the only ground states are these memories and their negatives, confirming a weaker form of the Kalai--Linial--Odlyzko conjecture. It also settles a recent open problem posed by M. Anthony on the specification number of Boolean threshold functions. In addition, we show that, for every 1≤r≤n−11\le r\le n-1, P{v1,…,vr are linearly dependent}=2(r2) 2−n+O ⁣(2−ne−cn),\mathbb P\{v_1,\ldots,v_r\text{ are linearly dependent}\} =2\binom r2\,2^{-n}+O\!\left(2^{-n}e^{-cn}\right), confirming a conjecture of Kahn--Komlós--Szemerédi.