Classifying Identities: Subcubic Distributivity Checking and Hardness from Arithmetic Progression Detection
Bartlomiej Dudek, Nick Fischer, Geri Gokaj, Ce Jin, Marvin Künnemann, Xiao Mao, Mirza Redzic
Abstract
We revisit the complexity of verifying basic identities, such as associativity and distributivity, on a given finite algebraic structure. In particular, while Rajagopalan and Schulman (FOCS'96, SICOMP'00) gave a surprising randomized algorithm to verify associativity of an operation odot: S x S -> S in optimal time O(|S|^2), they left open the problem of finding any subcubic algorithm for verifying distributivity of given operations odot, oplus: S x S -> S. We resolve the open problem by Rajagopalan and Schulman by devising an algorithm verifying distributivity in strongly subcubic time O(|S|^omega), together with a matching conditional lower bound based on the Triangle Detection Hypothesis. We propose arithmetic progression detection in small universes as a consequential algorithmic challenge: We show that unless 4-term arithmetic progressions in a set X subseteq 1,...,N can be detected in time O(N^2-epsilon), then the 3-uniform 4-hyperclique hypothesis is true, and verifying certain identities requires running time |S|^3-o(1). A careful combination of our algorithmic and hardness ideas allows us to fully classify a natural subclass of identities: Specifically, any 3-variable identity over binary operations in which no side is a subexpression of the other is either verifiable in randomized time O(|S|^2), verifiable in randomized time O(|S|^omega) with a matching lower bound from triangle detection, or trivially verifiable in time O(|S|^3) with a matching lower bound from hardness of 4-term arithmetic progression detection. Finally, we obtain near-optimal algorithms for verifying whether a given algebraic structure forms a field or ring, and show that counting the number of distributive triples is conditionally harder than verifying distributivity.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on12
- More Asymmetry Yields Faster Matrix MultiplicationJosh Alman, Ran Duan, Virginia Vassilevska Williams, Yinzhan Xu et al.SODA 2025 · 35 citations
- Strong Bounds for 3-ProgressionsZander Kelley, Raghu MekaFOCS 2023 · 24 citations
- Hardness of approximation in p via short cycle removal: cycle detection, distance oracles, and beyondAmir Abboud, Karl Bringmann, Seri Khoury, Or ZamirSTOC 2022 · 11 citations
- Removing Additive Structure in 3SUM-Based ReductionsCe Jin, Yinzhan XuSTOC 2023 · 9 citations
- Induced Cycles and Paths Are Harder Than You ThinkMina Dalirrooyfard, Virginia Vassilevska WilliamsFOCS 2022 · 6 citations
Related papers
- A Truly Subcubic Combinatorial Algorithm for Induced 4-Cycle DetectionAmir Abboud, Shyan Akmal, Nick FischerSODA 2026
- A tight (non-combinatorial) conditional lower bound for Klee's Measure Problem in 3DMarvin KünnemannFOCS 2022 · 1 citation
- Fredman's Trick Meets Dominance Product: Fine-Grained Complexity of Unweighted APSP, 3SUM Counting, and MoreTimothy M. Chan, Virginia Vassilevska Williams, Yinzhan XuSTOC 2023 · 4 citations
- Pushdown Model Checking above the Cubic BottleneckA. R. Balasubramanian, Dmitry Chistikov, Rupak MajumdarLICS 2025
- Hardness for triangle problems under even more believable hypotheses: reductions from real APSP, real 3SUM, and OVTimothy M. Chan, Virginia Vassilevska Williams, Yinzhan XuSTOC 2022
