Many verification problems contain chains of "scale then round down" steps. Integer-only inference in quantized neural networks multiplies an accumulator by a rational scale and floors it. Fixed-point arithmetic circuits do the same, and so do rasterizers that draw digital straight lines. Current solvers treat each floor as an opaque integer variable with two bounds. They cannot see that $\lfloor \alpha\lfloor \beta x\rfloor\rfloor$ and $\lfloor \beta\lfloor \alpha x\rfloor\rfloor$ are exactly equal for some scale pairs and exactly ordered for others. Pure mathematics has recently produced complete classifications of both facts. This proposal turns those classifications into a small, sound theory module for a satisfiability solver. The module rewrites provably equal floor chains into one canonical form. It adds sharp one-sided ordering lemmas where the orders differ. It decides parametric questions of the form "for which scales does this pipeline behave as intended" directly, where a generic solver would need unbounded search.
The payoff we aim to measure is more than speed. Each opaque floor adds an integer variable and rational bound constraints. As a solver pivots and branches over these, the numerators and denominators in its internal rational arithmetic grow. This is the same intermediate "coefficient swell" that makes exact symbolic computation run out of memory. The core claim is that removing floors through exact rewriting, and replacing search with pre-proved lemmas, cuts the number of solved-for variables and the peak coefficient bit-size together. The claim is falsifiable. If a solver's existing integer reasoning already rediscovers these facts cheaply, the module should show no gain.
What the mathematics supplies
A dilated floor is $f_\alpha(x)=\lfloor \alpha x\rfloor$. Dilated Floor Functions That Commute classifies every real pair $(\alpha,\beta)$ with $f_\alpha\circ f_\beta=f_\beta\circ f_\alpha$. The commuting pairs are the families $(\alpha,\alpha)$, $(\alpha,0)$ and $(0,\alpha)$, together with the discrete family $(1/m,1/n)$ for positive integers $m,n$. Opposite-sign pairs never commute. The companion papers Dilated floor functions having nonnegative commutator I and II. Negative dilations study the one-sided relation
$$[f_\alpha,f_\beta](x)=\lfloor \alpha\lfloor \beta x\rfloor\rfloor-\lfloor \beta\lfloor \alpha x\rfloor\rfloor \ge 0 \quad \text{for all real } x,$$
and prove three results:
- If $\alpha<0<\beta$, the relation holds for every such pair.
- If $\alpha>0>\beta$, it never holds.
- If both are positive, it holds exactly when $m\alpha\beta+n\alpha=\beta$ for some non-negative integers $m,n$, not both zero.
This relation is transitive, so it defines a preorder on the nonzero reals that generalizes integer divisibility.
These papers motivate and supply the method. They are the lemma library. They do not constrain the design, and they say nothing about computation. The negative-dilation case is described as sporadic. We therefore use only the fully characterized cases as certified rules, and we treat negative–negative pairs through explicit per-instance checks.
Where this sits among the silos
Satisfiability Checking meets Symbolic Computation motivates the architecture. It argues that algebraic reasoning helps a satisfiability-modulo-theories solver (SMT solver: a search engine for logical formulas over arithmetic) only when it is incremental and produces conflict explanations, and that calling an algebra system as a black box performs poorly. Our module follows that prescription at a small scale. Every rewrite and lemma is an explanation the solver can learn from, and each lemma is justified by a theorem rather than recomputed. Suggesting Variable Order for Cylindrical Algebraic Decomposition via Reinforcement Learning is the closest silo-crossing work. It trains a graph network to order variables for polynomial decomposition and rewards fewer cells. Floors are not polynomial, so that line of work does not reach our fragment, and its reward ignores coefficient growth altogether.
Symbolic computation offers a precedent for the bet that exploiting discrete structure beats generic search. Univariate Polynomial Real Root Isolation: Continued Fractions Revisited builds its root-isolation method on floor-valued partial quotients. On a degree-400 Mignotte polynomial it isolates the roots in 0.42 s, while the subdivision solver rs needs over 7,328 s. Experimental evaluation and cross-benchmarking of univariate real solvers finds that reading only the needed prefix of coefficient bits wins above roughly 2,000 bits. Both results show that structure-aware exact methods beat generic exact methods by avoiding swell, not by giving up exactness. That second paper also shows that approximate numerical solvers fail on clustered roots. This constrains us: the module must stay exact.
Research Program
We would build a preprocessing and theory-lemma layer for SMT-LIB formulas that use to_int, div and multiplication by rational constants. The layer has four parts.
The first part is recognition. It detects dilated-floor chains of the form $\lfloor c_k\lfloor\cdots\lfloor c_1 x\rfloor\cdots\rfloor\rfloor$ and extracts the dilation constants $c_i$.
The second part is canonicalization. It uses the commutation classification to sort adjacent commuting factors into a fixed order. It then collapses the $(1/m,1/n)$ family into a single floor, $\lfloor x/(mn)\rfloor$. This gives congruence closure matching terms to merge.
The third part is ordering lemmas. For each pair of chain orderings present in the formula, the layer checks the sign and integer-relation criteria. For positive pairs this means a bounded search for $m,n$ with exact rational arithmetic. Wherever the criterion holds, it asserts $[f_\alpha,f_\beta]\ge 0$ as a learned clause.
The fourth part is parametric mode. When a dilation constant is a symbolic real, the layer emits the semi-algebraic description of the commuting or nonneg-commutator region from the theorems. That region is made of lines and rectangular hyperbolas, and for bounded $m,n$ the layer emits a finite disjunction of them, handing the solver polynomial constraints instead of floors.
The layer will be integrated with Z3 and with SMT-RAT, the solvers the $\text{SC}^2$ paper names. We will instrument both so they log the peak bit length of every rational in the arithmetic core and in learned lemmas.
A secondary aim uses the tool to feed results back to the mathematics. The authors of Dilated Floor Functions That Commute state that they do not know whether nontrivial commuting pairs exist for $\lfloor \alpha x+\gamma\rfloor$ with $\gamma\ne 0$. We will sweep rational grids of $(\alpha,\beta,\gamma,\delta)$ with the solver. Each non-commuting candidate gets a certified refuting witness $x$. Surviving candidates become conjectures, stated together with exhaustive-search evidence.
Baselines
The do-nothing reference is Z3 run on the unmodified encoding, with its default preprocessing. That preprocessing already simplifies nested div by positive integer literals. Measuring what remains unsolved after those built-in rules is essential, because it marks the ceiling on any gain.
The strongest competitor is Z3's full nonlinear integer and mixed arithmetic strategy, and SMT-RAT's CAD-based theory solver where the formula fits it, each given the same wall-clock limit and memory cap. Both are tuned over the same small grid of documented strategy options that we allow ourselves for the module. The comparison uses the same benchmarks, and the time limit includes preprocessing. No reported result found on Lacuna for Z3 or SMT-RAT on nested-floor or to_int benchmark families. The file reports cell counts for learned CAD orderings, but only qualitatively and on polynomial inputs that contain no floors. We will therefore establish these baseline numbers ourselves and publish them.
For fixed-width pipelines we add a bit-vector encoding baseline, solved by bit-blasting to Boolean satisfiability.
Beating the baselines means strictly more instances solved within the limit, lower median time on instances all methods solve, and lower logged peak coefficient bit-size. The last criterion is the one that tests the mechanism.
Two ablations isolate the key ingredient. One runs canonicalization without ordering lemmas. The other runs ordering lemmas without canonicalization. A third, generic-lemma control, adds an equal number of the standard local bounds $\lfloor y\rfloor\le y<\lfloor y\rfloor+1$ on every intermediate term. This separates "the theorem's integer information" from "more constraints of any kind."
Why not just…?
Why not just rely on the solver's existing integer reasoning to derive these facts? Commutator nonnegativity is a sharp statement about integers. Linear relaxations of the local floor bounds cannot imply it. They only bound the difference between the two orders by a quantity of order $|\alpha|+|\beta|$. The solver can reach the lemma only through branching and cuts, and those are exactly where rational coefficients grow. This is a real threat on small instances. The generic-lemma control and the bit-size logs will show whether the solver rediscovers the facts cheaply. If it does, the claim fails.
Why not just bit-blast fixed-width arithmetic? For quantized networks at 8 bits, bit-vector solving may well win, and we say so. The module targets cases where bit-blasting cannot apply or scales badly: unbounded integers, wide accumulators, and above all symbolic scales in parametric mode, where no finite width exists. The bit-vector baseline on the fixed-width family will mark the crossover.
Why not just relax floors to real arithmetic? The relaxation is unsound for the discrete semantics being verified. Mixed-sign chains produce order-dependent results that no continuous model reproduces, as Dilated floor functions having nonnegative commutator I proves. The same paper-pair shows approximate methods failing on hard instances. We will report the spurious-proof rate of the relaxed encoding on the equivalence family.
Why not just learn a heuristic, as GRL-SVO does for CAD? A learned ordering can only choose among existing solver actions. It cannot supply the missing integer facts. Learning a bit-aware ordering reward is a complementary follow-up, not a replacement.
Proposed Experiments
We will use three benchmark sources. The first is the SMT-LIB benchmarks used in the GRL-SVO study, filtered for nested div or to_int. We report the count honestly, even if it is small. The second is a generated suite with three families:
- requantization chains from integer-only network layers, with rational scales and random mixed signs, posed as equivalence and output-bound queries;
- equivalence of digital-straight-line rasterizers under reordered scaling, built from the $h_{\alpha\beta}$ correspondence;
- parametric scale-synthesis queries with symbolic $\alpha,\beta$.
The third source is the affine-intercept sweep.
We report four metrics: instances solved, time, auxiliary integer variables after preprocessing, and peak rational bit length. The first decisive check is whether solved-instance gains track reductions in peak bit-size across instances. If they do not, the module helps for some reason other than controlling swell. The second decisive check is parametric mode. It should answer scale-synthesis queries that every baseline times out on, and each answer should come with a certificate of integers $m,n$ that can be checked independently. The third check is soundness. Every rewrite and lemma will be validated on random inputs against exact evaluation. The positive-case criterion will also be cross-checked on its known boundary lines and hyperbolas.
References
- Dilated Floor Functions That Commute
- Dilated floor functions having nonnegative commutator I. Positive and mixed sign dilations
- Dilated floor functions having nonnegative commutator II. Negative dilations
- SC2: Satisfiability Checking Meets Symbolic Computation - (Project Paper)
- Suggesting Variable Order for Cylindrical Algebraic Decomposition via Reinforcement Learning
- Univariate Polynomial Real Root Isolation: Continued Fractions Revisited
- Experimental evaluation and cross-benchmarking of univariate real solvers