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.
Shor factoring with verified output and bounded outer retries
Definition
Inputs. A composite integer , encoded in binary, and a rational target failure probability with coprime integers . Use the modular-order-finding procedure on the earlier A page with its explicit reversible modular-multiplication circuit. Output is a verified proper divisor of or FAIL.
Arithmetic subroutines. For and exponent , CappedPower(c,e) returns : initialize ; while , replace by if is odd, then replace by and, if the new , replace by . For any integer and exponent , ModPower(c,e) returns : initialize ; while , replace by if is odd, then replace by and, if the new , replace by . In both routines, parity, quotient, product, comparison, and remainder operations are exact integer operations.
-
Set . If is even, set , check and , and return if both checks pass.
-
For each integer exponent , initialize and . While , set and . If , set . If , set . If , verify and ; return if both checks pass, and otherwise set . If the loop ends without a return, continue to the next exponent.
-
Initialize , , and . While , replace by . Continue to instruction 4 with this ; it is the least positive integer satisfying , equivalently .
-
For attempts , obtain a fresh independent sample by running Exact uniform sampling from the nonzero residue representatives on with a fresh independent countable fair-bit tape. Compute . If and , return . If , start the next attempt; the case is rejected as an invalid sample and also starts the next attempt.
-
When , run modular order finding on with target parameter , so its target failure is . Use fresh measurement randomness independent of the sampler tape and all previous attempts. If it returns
FAIL, start the next attempt. Otherwise let be its candidate. Reject the candidate unless , is even, and . Set , the standard representative of . Compute and . Return the first of these satisfying and ; if neither passes, start the next attempt. -
If all attempts finish without returning a divisor, return
FAIL.
The residue sampler's exact uniformity, almost-sure termination, and expected-bit bound are proved separately. The outer attempt count, root search, modular exponentiation, and divisor checks have the finite bounds stated above. Correctness, success probability, and costs are separate claims.
Remarks
The odd-composite branch reaches order finding only after the gcd test establishes , so the residue class of is a unit by For , is a unit if and only if . A returned candidate period is rechecked even though the order-finding contract also verifies candidates. Its fair-bit tapes use countable choice and dependent choice through the sampler's countable product model; the number-theoretic and output-verification branches use finite arguments. Order-finding success and cost are separate claims.
Depends on
- Modular order finding with rational reconstruction
- Reversible modular multiplication by a unit
- Exact uniform sampling from the nonzero residue representatives
- The congruence class $[a]_n$ and the quotient set $\mathbb{Z}/n$
- For every natural $n$, $(\mathbb{Z}/n,+)$ is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold
- Common divisor, and the greatest common divisor $\gcd(a,b)$, with the convention $\gcd(0,0) := 0$
- Divisibility in $\mathbb{Z}$: $d \mid a$ when $a = dq$ for some integer $q$
- Bézout's identity: for integers $a, b$ not both zero, $\gcd(a,b)$ is the least positive element of $\{\, ax + by : x, y \in \mathbb{Z} \,\}$; in particular $ax + by = \gcd(a,b)$ has an integer solution
- For $n\ge 1$, every class in $\mathbb{Z}/n$ has one representative $r$ with $0\le r<n$, so $\lvert\mathbb{Z}/n\rvert=n$; while $\mathbb{Z}/0$ is in bijection with $\mathbb{Z}$
- The unit group $(\mathbb{Z}/n)^\times$ and Euler's totient $\varphi(n)=\lvert(\mathbb{Z}/n)^\times\rvert$ for $n\ge1$
- For $n\ge1$, $[a]_n$ is a unit if and only if $\gcd(a,n)=1$
- The Axiom of Countable Choice ($\mathrm{AC}_\omega$)
- The axiom of dependent choice: a relation in which every element is related to something admits an $\mathbb{N}$-indexed chain
- Assuming countable and dependent choice, countable products of arbitrary probability spaces
- The natural numbers $\mathbb{N}$ (von Neumann)
- Order on the natural numbers
Used by
- A Shor order sample for factoring fifteen Example
- Shor factoring preprocessing and retry branches Example
- Even and perfect-power preprocessing returns a proper factor Lemma
- Bounded-error success of Shor factoring Theorem
- Order-to-factor output correctness Theorem
- Separate Shor factoring bit, gate, and query costs Theorem
Dependency tree · two levels
79 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
- Peter W. Shor, Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer (standard reference, not scraped)
- Ronald de Wolf, Quantum Computing: Lecture Notes (standard reference, not scraped)