Boolean functions that are one bit of a linear form: a toric identity, exact counts and asymptotics

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.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-23
DOI
https://doi.org/10.5281/zenodo.24467977
Primary Topic
Advanced Combinatorial Mathematics
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Boolean functions that are one bit of a linear form: a toric identity, exact counts and asymptotics

Joseph S. Farland
Zenodo (CERN European Organization for Nuclear Research)
Advanced Combinatorial Mathematics
preprint

Boolean functions that are one bit of a linear form: a toric identity, exact counts and asymptotics

Joseph S. Farland
preprint en

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.

Zenodo (CERN European Organization for Nuclear Research)
Advanced Combinatorial Mathematics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Boolean functions that are one bit of a linear form: a toric identity, exact counts and asymptotics — Joseph S. Farland · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS