Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: 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.

Rational reconstruction from a phase sample

Definition

Input. Integers N≥1, Q>4N2, and y∈{0,…,Q−1}, with Q=2m and y the label from Quantum phase estimation when this routine is called from QPE.

Output. A reduced fraction p/q with 1≤q≤N, or FAIL.

Instructions. Set u:=y, v:=Q, and j:=0. Repeatedly divide u by the positive integer v, obtaining the unique quotient aj and remainder rj with u=ajv+rj and 0≤rj<v. Append aj; if rj=0, stop, and otherwise set (u,v):=(v,rj), increment j, and repeat. For y=0 this immediately gives the one-digit expansion [0]; for every other input, The continued-fraction algorithm terminates exactly on rational numbers gives termination and the resulting normalized finite expansion is the one in Denominator-bounded rational phase reconstruction. Starting from p−2=0,p−1=1,q−2=1,q−1=0, process the digits in order using pj=ajpj−1+pj−2 and qj=ajqj−1+qj−2; this lists all convergents including the terminal one by Convergents of a regular continued fraction. For each convergent, reject it if q>N; otherwise compute 2∣yq−pQ∣ exactly and accept it precisely when this integer is at most q. Return the first accepted candidate, or FAIL if none exists. The uniqueness result lem-qa-rational-reconstruction-candidate-uniqueness shows there cannot be two. The algorithm makes no floating-point comparison. Its deterministic bit bound is proved separately in thm-qa-rational-reconstruction-bit-cost, which also establishes that these instructions terminate.

Depends on

Used by

Dependency tree · two levels

39 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