arXiv:2610.31638cs.CCOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.31638

No Perfect Randomized Composition

Alexander Meiburg

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Does computing a composition of total Boolean functions require the product of the randomized query complexities of its factors? We give a negative answer. There are families of total functions f,gf, g such that

R(f∘g)=Θ(1log⁡R(g))R(f)R(g).\mathrm{R}(f\circ g)=\Theta\bigg(\frac{1}{\log\mathrm{R}(g)}\bigg)\mathrm{R}(f)\mathrm{R}(g).

This result requires first separating linearized query complexity LR, as well as noisy randomized query complexity noisyR, from standard randomized query complexity R. Both constructions essentially come from totalizing existing partial function separations, albeit via different techniques.

By adapting these techniques, we also construct total functions separating every adjacent pair in the chain from sabotage RS, max-conflict χˉ\bar{\chi}, and linearised query complexity LR. We show that AND-of-ORs separates conflict χ\chi from max-conflict χˉ\bar{\chi} complexity and makes conflict and sabotage incomparable. Finally, randomized complexity can be smaller than its composition limit R∗R^* by the maximal factor Θ(log⁡R)\Theta(\log R). The total-total composition separation is also formalized in Lean.

1 Introduction

Suppose an algorithm must evaluate a Boolean function ff, but each input bit of ff is itself the output of a Boolean function gg on a separate block. The natural algorithm evaluates gg whenever it needs a bit of ff. Must every randomized algorithm pay, up to a constant, for both computations? Writing R for bounded-error randomized query complexity, the question is whether

R(f∘g)≥cR(f)R(g)\mathrm{R}(f\circ g)\geq c\mathrm{R}(f)\mathrm{R}(g)

holds with a universal c>0c > 0. For partial functions it does not [13, 6, 8]. We show that requiring both functions to be total does not restore the inequality.

Theorem 1.1 (No total-total randomized composition). There are families of nonconstant total Boolean functions f on N variables and g on n variables, with

R(f)=Θ(N2/3(log⁡N)3/4(log⁡log⁡N)1/3),\mathrm{R}(f)=\Theta\Big(N^{2/3}(\log N)^{3/4}(\log\log N)^{1/3}\Big), R(g)=Θ(n4/5log⁡n).\mathrm{R}(g)=\Theta(n^{4/5}\log n).

*nprc@ohaithe.re

The families can be coupled with outer size N=2Θ(n4/5)N = 2^{\Theta(n^{4/5})}. Their block composition has input length

L=N⋅n=Θ(N(log⁡N)5/4),L=N\cdot n=\Theta\Big(N(\log N)^{5/4}\Big),

and satisfies

R(f∘g)R(f)R(g)=Θ(1log⁡n)=Θ(1log⁡log⁡L)=o(1).\frac{\mathrm{R}(f\circ g)}{\mathrm{R}(f)\mathrm{R}(g)}=\Theta\bigg(\frac{1}{\log n}\bigg)=\Theta\bigg(\frac{1}{\log\log L}\bigg)=o(1).

The saving relative to the product is Θ(log⁡R(g))\Theta(\log \mathrm{R}(g)).

Theorem 5.1 gives the construction and quantitative proof. The coupling uses the same parameter q=2s−1q = 2^s - 1 in both functions: the inner size is n=Θ(q5)n = \Theta(q^5) and the outer size is N=2Θ(q4)N = 2^{\Theta(q^4)}. Thus the outer size is exponential in the 4/5 power of the inner size, while log⁡log⁡L=Θ(log⁡n)\log \log L = \Theta(\log n). The size qualification matters. This is a counterexample to a constant-factor composition theorem, so we don’t refute composition up to polylogarithmic factors. At a high level, it seems difficult to make the separation stronger: the outer function has a very large address table, and we use this large space to make the two costs in the question come apart.

Two sides of the composition question. The existing lower bounds point to two possible obstructions, and finding a way to overcome both (simultaneously!) is the main guidance in finding this construction. These two obstructions are linearised and noisy randomized query complexity.

Linearised query complexity LR measures the cost of obtaining a small amount of correctly signed evidence. Noisy randomized query complexity noisyR measures the cost of computing when such evidence is supplied by the oracle: a query of correlation γ\gamma costs γ2\gamma^{2}. They satisfy

R(f∘g)=Ω(max⁡{R(f)LR(g),noisyR(f)R(g)})(1)\mathrm{R}(f\circ g)=\Omega(\max\{\mathrm{R}(f)\mathrm{LR}(g),\mathrm{noisyR}(f)\mathrm{R}(g)\}) \tag{1}

for possibly partial f,gf, g [6, 8]. Thus a counterexample needs an outer function for which noisyR is small and an inner function for which LR is small. Or, in more standard terminology: it had been conjectured that R=Θ(LR)\mathrm{R} = \Theta(\mathrm{LR}) and R=Θ(noisyR)\mathrm{R} = \Theta(\mathrm{noisyR}) for total functions, and proving either one (i.e. proving either measure equivalent to R up to constant factors) was a promising way towards proving randomized composition, and no function was known to asymptotically separate either from R. Separations of these measures alone would not be enough – the cheap information supplied by the inner algorithm still has to be useful to the outer one – but it was a necessary obstacle to overcome. The first construction in isolation essentially immediately gives us a counterexample to partial–total composition, 3.6, but then we need to further confirm that this is compatible with the latter construction.

The investigation process was significantly aided by AI. It is worth noting, perhaps, that frontier models (e.g. Claude Fable, or GPT-6-Astra, on maximum effort, on several repeated trials) seemed unable to construct any counterexample to randomized composition. Decomposing the problem into several smaller subtler targets and giving proposed families of constructions seemed to significantly help. Even asking for an LR vs. R construction seemed to fail in isolation, but refocusing the problem on related measures as a more direct target improved the outcomes, as we will explain in the next section.

High-Level Constructions The inner function is a majority of encoded pointer functions, as in [2, 15]. A detector accepts every zero input with probability zero and every one input with the same constant probability. Sampling one majority block and applying an affine correction gives a uniformly correctly signed bias of order 1/q, at a cost much smaller than bounded-error evaluation of the majority. Exactness of the detector's acceptance probability is essential here. A merely one-sided algorithm cannot in general be calibrated across different one inputs.

The outer function starts from approximate indexing (as in [8]). Weak independent evidence about a long address is enough to land in a large Hamming ball around it; the table is constant on that ball. Ordinary queries reveal much less about the table's value. This was used in earlier partial function counterexamples. The difficulty is making this promise problem total. Checking the promise directly would lose the saving we want.

We instead put the approximate-index problems into an AND of ORs, and store certificates for several independent copies in an address-indexed array. The AND–OR core has short certificates even when its value is hard to find. Each certificate cell is encoded so that a short bit transcript is exactly independent of its decoded payload. Finding a useful certificate therefore requires either many queries to one cell or a short list containing the correct address. A direct-product bound rules out the latter. Once an approximate address has been found by the algorithm, the certificate can be checked exactly at an affordable cost. This is what allows the construction to remain total, including on malformed core and certificate inputs.

Separating the composition measures. The pointer construction also gives separations among other measures that have been used to approach the composition question. The relevant chain is

RS⁡(f)≲χˉ(f)≲LR⁡(f)≲R⁡(f),χ(f)≤χˉ(f).(2)\operatorname{RS}(f)\lesssim \bar {\chi}(f)\lesssim \operatorname{LR}(f)\lesssim \operatorname{R}(f),\qquad \chi (f)\leq \bar {\chi}(f). \tag{2}

Here RS is sabotage complexity [9], χ\chi is conflict complexity [19], and χˉ\bar{\chi} is max-conflict complexity [13]. The notation ≲\lesssim suppresses an absolute constant. In particular, with our signed-bias convention the immediate bound is LR≤3R\mathrm{LR} \leq 3\mathrm{R}, rather than an exact inequality with constant one. Each adjacent comparison in the chain is strict on total functions. Previously, no asymptotic separations were known between any two of these, and we give asymptotic separations between all five.

For the succinctly encoded pointer function gqg_{q}, put mq=q3log⁡qm_{q} = q^{3} \log q. The three families

Pq=XORq∘gqq,Mq=Majq∘gqq,Gq=Mq⊕XORt(t=Θ(mq))P _ {q} = \mathrm{XOR} _ {q} \circ g _ {q} ^ {q}, \qquad M _ {q} = \mathrm{Maj} _ {q} \circ g _ {q} ^ {q}, \qquad G _ {q} = M _ {q} \oplus \mathrm{XOR} _ {t} \quad (t = \Theta (m _ {q}))

all have input length Θ(q4log⁡q)\Theta(q^4 \log q). Their bounds are collected below. We write Fm=ANDm∘ORmF_m = \mathrm{AND}_m \circ \mathrm{OR}_m for a separate AND–OR family, on m2m^2 bits.

FamilyRSχ\chiχˉ\bar{\chi}LRR
PqP_qO(mq)O(m_q)Θ(mqlog⁡q)\Theta(m_q \log q)Θ(mqlog⁡q)\Theta(m_q \log q)Θ(mqlog⁡q)\Theta(m_q \log q)Θ(mqlog⁡q)\Theta(m_q \log q)
MqM_qO(mq)O(m_q)O(mq)O(m_q)O(mq)O(m_q)O(mq)O(m_q)Θ(mqlog⁡q)\Theta(m_q \log q)
GqG_qΘ(mq)\Theta(m_q)-Θ(mq)\Theta(m_q)Ω(mqlog⁡q)\Omega(m_q\sqrt{\log q})Θ(mqlog⁡q)\Theta(m_q \log q)
FmF_mΘ(m2)\Theta(m^2)O(m2/log⁡m)O(m^2/\sqrt{\log m})Θ(m2)\Theta(m^2)Θ(m2)\Theta(m^2)Θ(m2)\Theta(m^2)

Table 1: Bounds for the total separating families. Note that some bounds are one-sided, and we have left one blank where we have not determined useful bounds otherwise.

Parity makes bounded-error computation pay for amplification while sabotage can stop at the first damaged bit. Majority lets a linearised algorithm use the exact detector without amplifying its bias. Adding a parity mask forces any biased algorithm to pay to read the mask, while max-conflict complexity can absorb that cost additively. These mechanisms give gaps of Ω(log⁡N)\Omega(\log N), Ω(log⁡N)\Omega(\log N), and Ω(log⁡N)\Omega(\sqrt{\log N}), respectively (Theorems 7.5, 3.5, and 8.3). In particular, RS and R are not within a constant factor on total functions, answering the question of [9, 20] at that resolution.

The AND–OR family behaves differently. Its sabotage and max-conflict complexities are maximal, but every single opposite-output pair admits a cheaper conflict tree (Theorem 9.1).

Together with the parity family PqP_q, this makes RS and χ\chi incomparable and separates χ\chi from χˉ\bar{\chi} on total functions. It also gives a failure of perfect composition for χ\chi and a superlinear separation of χ\chi from certificate complexity (Corollaries 9.9 and 9.11).

Finally, let R∗(f)=lim⁡dR(fod)1/d\mathrm{R}^{*}(f) = \lim_{d} \mathrm{R}(f^{\mathrm{od}})^{1/d} be the composition limit studied in [3]. A cyclic rotation of compositions gives a total family Hq\mathcal{H}_q with

R∗(Hq)/R(Hq)=Θ(log⁡R(Hq)),\mathrm{R}^{*}(\mathcal{H}_{q})/\mathrm{R}(\mathcal{H}_{q})=\Theta(\log\mathrm{R}(\mathcal{H}_{q})),

attaining the general upper bound. This is a different direction of separation from Theorem 1.1: the limit is larger than the one-level complexity. It's proved in Section 10.

Organisation and formal verification. After the definitions, Section 3 develops the exact detector and the LR separation. Section 4 constructs the total noisy-query separation, and Section 5 combines the two mechanisms to prove Theorem 1.1. The remaining sections establish the other separations and the composition-limit result. The main result, the total-total composition failure, is checked in Lean 4.