Alphabeta Math
AlgorithmAlgorithm: AI-adaptedProof: Not applicablePipeline-generated
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.

Reversible zero-completion of an N-address bit query

Definition

Input: An integer N≥1, a power of two M=2m with N≤M<2N, a padded address register AM with basis ∣j⟩ for 0≤j<M, a response bit, and the raw XOR oracle Ox whose address input is the N-level register with basis ∣q⟩ for 0≤q<N. If N=M, identify AM with the raw address register. If N<M, supply a separate clean N-level raw-address register QN initialized to ∣0⟩, together with clean comparator and routing workspace.

Output: The zero-completed query action ∣j,b⟩↦∣j,b⊕x~j⟩ on AM and the response bit, where x~j=xj+1 for j<N and x~j=0 for j≥N, with every added register restored to its specified computational-basis zero state.

Instructions:

  1. If N=M, call Ox directly on AM and the response bit, then return. If N<M, continue with Steps 2--5.
  2. Compute the validity bit v=[j<N] into a clean bit by a reversible binary comparison. For most-significant-first address bits jr and the fixed binary digits Nr, initialize E0=1,L0=0 and update Er+1=Er∧((jr∧Nr)∨(¬jr∧¬Nr)),Lr+1=Lr∨(Er∧¬jr∧Nr). Implement this Boolean comparison into the validity bit with Reversible embedding of a Boolean circuit, leaving its comparison workspace clean. The raw query address is an N-level register, not an m-bit target. Route it as follows. For each j=1,…,N−1, apply the basis transposition (0 j) to QN conditioned on AM=j and v=1; apply no transposition for other control values. These mutually disjoint controlled permutations define a finite input-independent unitary RN,M, with RN,M∣j⟩AM∣0⟩QN∣v⟩=∣j⟩AM∣q(j,v)⟩QN∣v⟩, where q(j,v)=j if v=1 and j<N, and q(j,v)=0 otherwise. In particular, on the computed validity bit it writes j for valid padded addresses and 0 for invalid ones. The operation is a finite basis permutation; its inverse is itself.
  3. Allocate a fresh clean response bit r in ∣0⟩ and apply H to prepare ∣+⟩=(∣0⟩+∣1⟩)/2. Controlled on v=1, swap the caller's response bit with r using Fredkin gates.
  4. Make one ordinary call to Ox on the N-level raw-address register QN and response r.
  5. Reverse the response swap, then apply H to r to return it to ∣0⟩. Apply RN,M−1 to clear QN, and reverse the reversible comparison to restore v and all comparison workspace to zero. Return the caller's padded address and response registers.

The address comparison, the finite basis-permutation routing operation, response preparation, controlled swaps, and cleanup are nonoracle operations and must be charged in a gate-cost coordinate. The procedure uses no controlled-oracle capability. For N=1, M=1 and the direct-call branch applies.

Depends on

Used by

Dependency tree · two levels

45 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