Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedPipeline-generatedprecheck pass
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Element-distinctness gate cost in the QRAM model

Statement

Fix an injective encoding of values in [M] by b=O(log⁡(M+1)) bits and take the parameter r from Element-distinctness O(N^{2/3}) query bound. For N≥4096, the finite canonical storage of Canonical hash-bucket and nested skip-list storage has hash-table lookup, rank/select, complement-unranking, value insertion/deletion, and collision-check subroutines with polylog⁡(N+M) QRAM gate-time when their bounded searches do not overrun; the table uses O(N2/3log⁡3(N+M)) memory bits. A fixed threshold N0≥4096 is chosen below; the search uses this storage for N≥N0 and direct value comparison for the finite range 4≤N<N0.

For N≥N0, let Gsubset be the gate-time of the supplied uniform r-subset preparation. Assume an explicit compatible realization of the controlled/inverse Johnson-walk access used by reversible finding exists on this canonical storage, uses the local operations proved below with their reversible overflow/overrun caps, and preserves the hash seed. Let Grow be the maximum gate-time of one charged walk-update unit in that realization, including the forward, inverse, controlled, reflection, and swap capabilities supplied for the lazy Johnson walk in Finite row-preparation access model for a Szegedy walk and any encoding conversion. Under this explicit interface assumption, the complete search has value-query cost O(N2/3) and gate-time

O ⁣(Gsubset+rpolylog⁡(N+M)+N2/3(Grow+polylog⁡(N+M))).

The local storage operations are proved below; this item does not construct the compatible full row-access circuit or derive polylogarithmic bounds for Gsubset and Grow. The unconditional O(N2/3polylog⁡(N+M)) gate-time conclusion requires Gsubset=O(N2/3polylog⁡(N+M)) and Grow=O(polylog⁡(N+M)).

The phase-estimation part of this gate-time profile uses the ideal continuous-rotation submodel of Phase-estimation query and gate costs, where each exact controlled phase is one gate occurrence. Any synthesis overhead for a fixed finite gate alphabet is a separate cost.

For a Boolean value circuit with S non-input nodes, including constants, E input-port uses counted with multiplicity, and m output bits, the serial compiler Reversible embedding of a Boolean circuit implements one reversible XOR value query using at most 6S+4E+m ordinary gate occurrences. With the full DAG-layer parameters D,F of Parallel depth of reversible Boolean embedding (including any non-output nodes), its alternative parallel implementation uses at most 6S+4E+3m occurrences and has depth at most

2D(2⌈log⁡2(F+1)⌉+3)+2⌈log⁡2(m+1)⌉+1.

This bounds the written depth of the supplied parallel schedule under Finite circuit resource accounting. It does not claim minimum-layer depth or include the other ordinary gates used by the walk data structure.

Facts & Assumptions

Given: The query search and its marked-subset promise, the lazy Johnson update, the stated finite QRAM gate, and the explicit reversible Boolean compiler.

[F1]

Element-distinctness O(N^{2/3}) query bound: for r=Θ(N2/3), the walk has δ=N/[2r(N−r)], marked mass at least ε=r(r−1)/[N(N−1)], stored-vertex setup value-query cost r, elementary replacement-update cost 2, and check cost 0; its controlled row construction has stationary edge setup at most r+2, controlled row reflection at most 4, and controlled W,W∗ access at most 8 value queries.

[F2]

Element-distinctness Johnson walk and value access: a vertex stores an r-subset and injectively encoded values; a neighbor replaces one selected index by one unselected index; its marked predicate is the presence of an equal-value pair.

[F3]

Random-access quantum-memory gate model: an addressed call swaps the target bit with the addressed memory bit, is its own inverse, and costs one QRAM gate-time unit.

[F4]

Coherent XOR function oracle: a value query is the supplied reversible action ∣i,z⟩↦∣i,z⊕enc⁡(f(i))⟩, so the same oracle erases a stored value.

[F5]

Reversible embedding of a Boolean circuit: the Boolean input is a topologically ordered DAG with constants and NOT/AND/OR nodes, and an ordered list of m output ports, which may repeat input or non-input nodes. Here S counts every non-input node, including constants, and E counts gate input-port uses with multiplicity.

[F6]

Gate, workspace, and serial-depth costs of reversible embedding: the serial compute-copy-reverse compiler implements one clean XOR query using at most 6S+4E+m gate occurrences, where S includes constants.

[F7]

Parallel depth of reversible Boolean embedding: a fanout-aware explicit schedule has depth 2D(2L+3)+2Lm+1 for L=⌈log⁡2(F+1)⌉ and Lm=⌈log⁡2(m+1)⌉.

[F8]

Finite circuit resource accounting: size counts gate occurrences; depth in this profile is the number of written layers; query and QRAM costs are distinct coordinates.

[F9]

For every prime p and n≥1, a field with pn elements exists and For every finite field Fq and every n≥1, a monic irreducible polynomial of degree n exists: for every k≥1 there is a field of order 2k with a polynomial-basis representation from an irreducible degree-k polynomial.

[F10]

Toffoli and Fredkin gates: a Fredkin gate swaps its two targets exactly when its control is one.

[F11]

Finite reversible-walk finding cost: with supplied dyadic gap and marked-mass lower bounds and fixed dyadic target ρ=1/2, the complete capped wrapper succeeds with probability at least 1/2 when a marked state exists, has one-sided error, charges every fresh stationary-state preparation, and assigning unit cost to each controlled walk update and mark check bounds their total number by O(S0+ε0−1/2(δ0−1/2+1)).

[F12]

Canonical hash-bucket and nested skip-list storage: hash buckets store stable input-index identifiers; two nested skip lists store index and (f(i),i) orders with rank spans; each level is determined by independent promotion bits; a capped search tests at most D entries per level.

[F13]

Projective measurement outcome weights are probabilities: the probability of a projective outcome with projection Π on unit state ψ is ∥Πψ∥2.

[F14]

Phase-estimation query and gate costs: an m-bit phase-estimation run has O(m2) phase-register and inverse-QFT gate occurrences in the ideal continuous-rotation submodel; each run uses at least one controlled-walk query.

[F15]

The inner-product norm is definite, homogeneous, and satisfies the triangle inequality: the inner-product norm satisfies the triangle inequality.

[F16]

The reverse triangle inequality in a normed space: ∣∥u∥−∥v∥∣≤∥u−v∥.

[F17]

Finite instruments can be coherently deferred: a finite instrument followed by finitely many outcome-controlled unitary suffixes has an exact coherent implementation retaining an outcome record, with the same complete branch maps.

Proof

1.1F1F9givenalgebra

For N≥4096, the clamp in [F1] is r=⌊N2/3⌋. Set m=⌈log⁡2(N+2)⌉, H=⌈log⁡2N⌉, d=C=16m, R=2⌈log⁡2r⌉, and q=2H. The function (log⁡2(x+2)+1)/x2/3 decreases for x≥4096, because its logarithmic derivative is 1/((x+2)ln⁡2(log⁡2(x+2)+1))−2/(3x)<0; indeed 2(x+2)ln⁡2(log⁡2(x+2)+1)>3x there. Since log⁡2(4098)<13, this gives d≤16(log⁡2(N+2)+1)≤224N2/3/256=7N2/3/8. Also r≥N2/3−1≥255N2/3/256, so d≤r≤N/2 and d≤N≤q. Finally r≤R<2r≤N. By [F9], fix a polynomial-basis representation of Fq; its irreducible polynomial is a finite hardwired setup description whose generation time is separate.

1.2F2F3F10F12construct

For fixed S and seed, place each (i,f(i)) in its hash bucket and build the two canonical lists of [F12]. Pad each list to a power-of-two length L=O(r) with sentinels. A bitonic sorting network recursively sorts the two halves in opposite directions and merges them by comparing pairs at distance L/2, then recursively merging both halves. A bitonic sequence becomes, after thresholding its keys at any fixed threshold, a circular interval of 1 bits; the half-distance compare-exchanges place either all 0 bits in the low half or all 1 bits in the high half, leaving each half bitonic. Induction proves merge correctness, and thresholding between any alleged inverted output pair would give a Boolean failure, so the network sorts the original keys. A merge uses O(Llog⁡L) comparisons and the sorting recurrence gives O(Llog⁡2L) compare-exchanges. Each comparison of w=O(log⁡N+b)-bit records uses O(w) Boolean gates; compute its decision bit into clean history, conditionally swap the records using Fredkin gates, copy the sorted list records, and reverse the network to erase the comparison history. This gives a reversible compute-copy-uncompute sort using O(rpolylog⁡(N+M)) gate-time. A scan of the sorted lists computes all level links and spans in O(rH) writes and computes the collision counter from the equal-value runs. If an insertion would exceed a bucket's C slots, use the fixed overflow sentinel of [F12]. The resulting storage is a deterministic function of (S,seed,f∣S), so it is independent of the history of the walk.

2.1F9F12step 1.1algebra

Choose H+1 independent uniform coefficient vectors in Fqd and use them for p−1,p0,…,pH−1 in [F12]. For any t≤d distinct addresses, the first t columns of their Vandermonde evaluation matrix have determinant ∏a<b(xb−xa)≠0, so the evaluations are uniform on Fqt. Thus the bucket labels are d-wise independent and uniform in [R], and each promotion-bit family is d-wise independent and fair. Preparing the coefficient strings uniformly with Hadamards uses (H+1)dH=O(log⁡3N) seed bits.

2.2F3F6F12step 1.1algebra

The index-list spans select the t-th member of S and compute ∣S∩[x]∣ by one bounded skip-list search. Define g(x)=x−∣S∩[x]∣ for 0≤x≤N, where [x]={1,…,x}. It is nondecreasing and increases by one exactly at an unselected index. Binary search for the least x with g(x)≥t+1 therefore gives the t-th element of [N]∖S and uses O(log⁡N) rank searches. Each list search has at most D forward entries per level, and each stable node identifier resolves by evaluating h(i) and scanning at most C slots in its bucket. Here is a finite bit-cost implementation of these operations. For H-bit field elements, addition is bitwise XOR. A polynomial-basis multiplication forms the H2 pairwise bit products and reduces their carryless product modulo the fixed degree-H irreducible polynomial using O(H2) Boolean gates; it has O(H2) serial depth when evaluated by the direct nested-loop circuit. Horner evaluation of one degree-<d polynomial therefore uses O(dH2)=O(H3) Boolean gates and depth, since d=O(H). Evaluating p−1 computes a bucket address within this cost; computing the height of a newly inserted index evaluates at most H promotion polynomials and costs O(H4) gates and depth. Compute-copy-uncompute using [F6] makes these deterministic calculations reversible with constant-factor gate overhead; the O(H2) multiplication scratch can be reused. Each stored record has w=O(log⁡2N+b) bits. Scanning a bucket costs at most Cw addressed swaps, while its hash computation uses the field-evaluation circuit above. A lexicographic key comparison on the O(log⁡N+b) index/value bits uses O(log⁡N+b) Boolean gates and depth by a sequential bit comparison. A rank traversal visits at most (H+1)D=O(log⁡2N) entries; span accumulation adds or compares O(log⁡N)-bit integers, so one rank search has O(log⁡5(N+M)) QRAM calls and ordinary gates. Complement unranking consequently has O(log⁡6(N+M)) such costs. These bounds establish finite polylogarithmic lookup, selected-index, and complement-unranking procedures whenever the capped searches do not overrun.

2.3F1F2F12step 1.2algebra

The QRAM table has RC=O(rlog⁡N) slots. Each slot stores an index, a b-bit value, and O(H) pointers and spans of O(log⁡N) bits each, hence O(log⁡2N+b) bits. The seed, counters, rank registers, arithmetic workspace, and comparator-history scratch add O(rlog⁡2N+log⁡3N) bits. Therefore total table and workspace memory is O(rlog⁡N(log⁡2N+b)+rlog⁡2N+log⁡3N)=O(rlog⁡3(N+M)). The finite initial table and both sorted lists can be built by the reversible networks in step 1.2 using O(rpolylog⁡(N+M)) gate-time after the r value loads.

3.1F2F3F4F6F10F12step 2.2constructalgebra

To update the stored subset, delete the removed index from the index and value lists, apply one inverse XOR query to erase its value, apply one forward XOR query to load the inserted value, and insert its record into both lists. The predecessor search on each level supplies the crossing edge and its old span. If a list has length r and insertion is at base rank t, old keys of rank at least t move up by one. At each level containing the new key x, replace the crossing span by the two exact differences t−rank⁡(p) and rank⁡(q)+1−t, where p and q are its predecessor and successor in the old level list; if x is absent at that level, increment the crossing span by one. For deletion of a key x of base rank t, if x is present at a level, replace spans s(p,x) and s(x,q) by s(p,x)+s(x,q)−1; if it is absent, decrement the unique crossing span by one. The head has rank −1 and a missing successor is treated as a virtual tail of rank equal to the current list length, so the same formulas cover both endpoints. Each updated span is an integer at most r+1≤N and fits in O(log⁡N) bits. Ripple-carry addition, subtraction, and comparison use O(log⁡N) Boolean gates and depth per operation; at most H+1 predecessor paths of at most D entries and O(H) span writes are needed. Their arithmetic, record reads, and writes therefore have polylogarithmic gate and QRAM costs. Two bounded searches in the value list, at (v,1) and (v,N+1), give the multiplicity of a value v; maintain the number of value classes with multiplicity at least two, decrementing when a deletion changes multiplicity two to one and incrementing when an insertion changes one to two. This counter makes the marked check an exact zero test with no value query. Compute its nonzero bit into the fresh check flag by reversible XOR and undo the comparison scratch, leaving the canonical memory and every other existing register fixed; the reversed circuit supplies the inverse check at the same polylogarithmic gate/QRAM cost. The fresh-flag Lüders readout and inverse specified by the finding algorithm then implement its required retained-state instrument, with both check calls and the readout charged separately. Reversing these finite operations restores the canonical table. A controlled memory-bit access uses two addressed swaps with clean scratch and a Fredkin between them, so it has constant-factor QRAM overhead by [F3, F10]. Thus the local update and marked-check subroutines use polylog⁡(N+M) QRAM time and gates whenever their searches fit the cap.

3.2F12step 2.1algebra

For fixed S and a bucket v, let Xv count its selected indices. The d-wise hash family from step 2.1 gives, with C≤d, Pr⁡(Xv≥C)≤E(XvC)=(rC)R−C. Since (rC)≤rC/C!, R≥r, and C!≥2C−1 (each factor 2,…,C is at least 2), this is at most 21−C. With C=16m and 2m≥N+2, 21−C≤2(N+2)−16. A union bound over R≤N buckets gives probability at most 2N(N+2)−16.

3.3F12step 2.1algebra

Put s=⌊d/2⌋=8m. For either fixed key order and each level ℓ<H, condition on the seeds for levels below ℓ; this fixes the level-ℓ list and its key order. Among at most r consecutive windows of s nodes, s-wise independence makes the chance that the promotion bits are all zero or all one equal to 21−s. A union bound over two lists and H levels gives probability at most 4rH2−s≤4rH(N+2)−8. These events control the traversals below level H; the initial traversal at level H needs a separate occupancy bound.

4.1F12step 1.1step 2.1step 3.3algebra

Let XH count nodes of S with height H; it is the same count in both key orders. For any s distinct nodes, step 2.1 and independence of the H promotion seeds give probability 2−Hs=q−s that all reach level H. Thus Pr⁡(XH≥s)≤E(XHs)=(rs)q−s≤(r/q)s/s!≤21−s≤2(N+2)−8, since s≤d≤r, r≤q, and s!≥2s−1. Outside this event, the top list has fewer than s nodes, and deleting and inserting one node leaves at most s there. Below the top level, absence of the run events in step 3.3 bounds every run of unpromoted nodes by s−1. Deleting a promoted node can merge two such runs, and the subsequent insertion can add at most one unpromoted node, giving at most 2s−1 consecutive unpromoted nodes. A search descends from the predecessor found at the next level and inspects only such a run and its boundary entries. Hence every search before, during, or after one replacement fits D=2s+1 entries at each lower level; the top traversal also fits this cap.

5.1F12step 3.2step 3.3step 4.1construct

Call a seed bad for S if some bucket has occupancy at least C or a run event of step 3.3 or the top-level event of step 4.1 occurs. Its probability is ηN≤2N(N+2)−16+(4rH+2)(N+2)−8=O(N−7log⁡N) by steps 3.2, 3.3, and 4.1. Cap every bounded lookup, rank, select, and collision check after the prescribed bucket/level limits: a failed read writes a fixed invalid sentinel to its clean output and leaves the canonical table unchanged; a failed check returns the non-marked bit. For a Johnson replacement, compute all endpoint and search flags before modifying the table and apply the toggle only if both endpoint loads are below C and every search fits; otherwise act as the identity. This update cap is symmetric in its endpoints, so the accepted toggle is an involution and the rejected basis states are fixed. A coherent row access applies the same cap to each coin-labelled replacement branch, retaining the coin label so distinct source/successor blocks remain orthogonal. Read/check caps are reversible XORs into clean outputs. Thus each cap is a finite unitary and agrees with the ideal operation on every good configuration. The initial table is a deterministic isometry; it agrees with the ideal stored representation on good seeds and can differ only on the bad-seed block.

6.1F15F17step 5.1algebra

For a fixed subset and neighbor, either endpoint is bad with probability at most 2ηN by the union bound. The retained logical labels make distinct subset/neighbor blocks orthogonal, so on a state whose seed is uniform conditional on each logical history, the squared norm of the bad block for one logical data-access unit is at most 2ηN. Since the capped and ideal operations are unitary and agree off that block, their state-vector difference on that prefix is at most 22ηN. The same estimate covers the initial table encoding, a one-subset check, and the final capped scan. The finding algorithm has only finitely many Lüders tests and outcome-controlled unitary suffixes. By [F17], defer those measurements to outcome-record registers; the ideal search and its recorded branch controls are independent of the hash seed, while the canonical table is a deterministic encoding of the current subset and seed. Hence each ideal prefix keeps the seed uniform conditional on its logical labels and recorded outcomes, as required for the bad-block bound.

7.1F1F11F13F15F16step 1.1step 5.1step 6.1algebra

Write δ∗=N/[2r(N−r)] and ε∗=r(r−1)/[N(N−1)]. For 0<q≤1, define dyad⁡(q)=2−j for the least integer j≥0 with 2−j≤q, determined by exact rational comparisons; then q/2≤dyad⁡(q)≤q. Supply δ0=dyad⁡(δ∗), ε0=dyad⁡(ε∗), and ρ=1/2 to [F11]. Since r≤N/2, δ∗≥1/(2r); since r−1≥r/2 and N(N−1)≤N2, ε∗≥r2/(2N2). Thus δ0≥1/(4r) and ε0≥r2/(4N2). Counting each capped walk update and mark check as one logical operation, [F11] gives O(ε0−1/2(δ0−1/2+1))=O(N/r) such operations. The complete wrapper makes only O(1) fresh stationary preparations at this fixed failure target. Each uses O(r) value queries by [F1], so all setups together use O(r) queries; table encoding and final reading occur only O(1) times. Thus even counting every setup query, T=O(r+N/r)=O(N2/3). A hybrid over these T data-dependent operations gives state-vector error at most 2T2ηN. The final success probability changes by at most twice this error: [F13] writes it as ∥Πψ∥2 for the success projection, [F16] bounds ∣∥Πψ∥−∥Πϕ∥∣ by ∥ψ−ϕ∥, and [F15] bounds the difference of squares. Since ηN=O(N−7log⁡N), this probability error tends to zero; choose fixed N0 large enough that it is at most 1/40 for all N≥N0. The fixed target ρ=1/2 includes only a constant number of fresh outer trials in the complete wrapper, so all its calls are included in T. By [F11], the ideal wrapper succeeds with probability at least 1/2; its capped-storage implementation therefore succeeds with probability at least 19/40. Verify any reported pair directly with two value queries; this preserves one-sided error and adds only O(1) queries.

8.1F1F2F4F11F14step 1.1step 2.3step 3.1step 5.1algebrastep 7.1

On the walk branch N≥N0, the actual gap is δ∗ by [F1] and the marked mass is at least ε∗ by [F1]. Use the dyadic bounds fixed in step 7.1; they satisfy ε0<1/2. By [F1], the coherent Johnson row preparation has stationary edge setup at most r+2, controlled row reflection at most 4, and controlled W,W∗ access at most 8 value queries; thus the complete fixed-target wrapper in [F11], with all its fresh setups counted as in step 7.1, gives O ⁣(r+ε0−1/2(δ0−1/2+1))=O(r+N/r)=O(N2/3) value queries. Moreover δ0≥1/(4r)≥1/(2N) and ε0≥r2/(4N2)≥1/N2, so the phase-register lengths in the reversible-finding algorithm are O(log⁡N). Each phase-estimation run therefore uses O(log⁡2N) phase-register and inverse-QFT gates by [F14]; the number of such runs is at most the number of controlled-walk calls because each run uses at least one. Reversible arithmetic and local checks add polylog⁡(N+M) gate-time per charged update. Each fresh stationary preparation charges Gsubset for its uniform subset, O(rpolylog⁡(N+M)) for value loading and table construction, and O(Grow) for its edge-row preparation. There are only O(1) fresh preparations by step 7.1, so their total cost is O(Gsubset+rpolylog⁡(N+M)+Grow). The final stored-value scan costs O(rpolylog⁡(N+M)). Charging each of the O(N2/3) walk-access units at Grow gives the stated formula; direct verification of a reported pair costs at most two further value queries and polylogarithmic gate-time. For 4≤N<N0, direct pair comparison uses N value queries and O(N2log⁡(M+1)) gates; since N0 is a fixed constant, this finite branch is absorbed by the asymptotic bounds. The phase-gate bound is in the ideal continuous-rotation submodel; fixed-alphabet synthesis and a polylogarithmic bound for Grow are not proved here.

9.1F4F5F6F7F8step 8.1algebra∎

For the optional Boolean value circuit, [F5] counts every non-input node, including unused constants, in S, so [F6] gives the serial bound 6S+4E+m. The parallel construction in [F7] instead uses at most 6S evaluation/reversal gates, 4E input fanout/unfanout gates across the two passes, 2m output fanout/unfanout gates, and m output CNOTs, totaling at most 6S+4E+3m. Its stated depth follows by substituting L=⌈log⁡2(F+1)⌉ and Lm=⌈log⁡2(m+1)⌉ in [F7]. These are separate implementations of the same XOR query; their occurrence and written-depth bounds do not assert minimum depth or bound the other walk gates.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

116 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources