Boolean functions that are one bit of a linear form: a toric identity, exact counts and asymptotics
Year: 2026
Type: preprint
Abstract: A Boolean function f of n variables is BLF if f(x) is bit j of K + a_1 x_1 + ... + a_n x_n for some integers K, a_i and some j; equivalently, f = floor(u) mod 2 for a real affine function u. These are the Boolean functions computed by one multiplication followed by one mask on packed data. We show that the classes of BLF functions modulo XOR with GF(2)-affine functions correspond to the antipodal pairs of chambers of the toric arrangement {t + r.x in Z : x in {0,1}^n} on the (n+1)-torus, so that |BLF(n)| = 2^n (R_n + 1), where R_n is its number of chambers. We compute |BLF(n)| = 2, 4, 16, 208, 10368, 1903808, 1359244544 for n = 0 to 6, prove log2 |BLF(n)| = n^2 - (1/2) n log2 n + O(n), and determine the structure for small n: BLF equals threshold XOR affine for n <= 3, and at n = 4 exactly one further class appears, bit 1 of x1 + x2 + x3 + x4. The least bit position that serves every BLF function of n variables is (1/2) n log2 n - n + O(n^0.78); the lower bound uses sign matrices of every large order m with determinant +-2^(m-1) and an inverse entry of size 2^((1/2) m log2 m - m - O(m^0.78)), extending a construction of Alon and Vu for powers of two. For cellular automata, k steps of any cyclic rule take one multiplication, one AND and one remainder on a packed row, while a multiplication and an AND compute exactly the BLF rules. Every result is labeled: the characterization, the parallelogram inequality, the inclusion of threshold functions, closure under XOR with affine functions, the counts and the structure for n <= 4, the exact least bit of gated threshold functions, and the fact that two and three steps of Rule 110 are not BLF are proved in Lean 4 with Mathlib; the counts for n = 5, 6 are certified by exhaustive computation along proved reductions; the other results are paper proofs checked by independent readers.
Author: Farland, Joseph S.
Language: English
Subfield: Discrete Mathematics and Combinatorics
Field: Mathematics
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7238876174
Cites:
Cited by:
Related to:
