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 preprocessing and retry branches
Example
The following exact inputs exercise the early return and retry branches of Shor factoring with verified output and bounded outer retries: the even input , the perfect power , the nonunit choice for , and the unit samples and . For these two retry executions, take the order-finding subroutine to return candidate for and candidate for .
Facts & Assumptions
Given: The stated Shor algorithm, the displayed residue samples, and the chosen order-finding candidate outputs for and for .
The even precheck returns for even composite . When the root-search branch is reached on a perfect-power input, it detects an exact representation with and , and returns that representation's base as a proper factor (Shor factoring with verified output and bounded outer retries, Even and perfect-power preprocessing returns a proper factor).
A nonunit sample in gives a proper gcd factor; conditional on gcd one, it is a unit (Random residue gcd branch for factoring, For , is a unit if and only if ).
A period candidate is continued only when it is even, between and , and passes ; the half-power gcds are returned only after the strict divisor checks (Shor factoring with verified output and bounded outer retries, Order-to-factor output correctness).
Modular powers and gcds here are computed by integer multiplication, congruence and common-divisor calculations (The congruence class and the quotient set , For every natural , is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold, Powers : natural exponents in a monoid and integer exponents in a group, with , Common divisor, and the greatest common divisor , with the convention , Divisibility in : when for some integer ).
Verification
For , the even branch checks and , so it returns the proper factor before sampling. For , the root search starts at and finds ; since , that branch returns . The alternative representation is not reached after this earlier return.
For and sample , , which is strictly between and and divides ; the nonunit branch returns without order finding.
For and , . The powers satisfy , , and , so the true order is , agreeing with the chosen candidate . This candidate is odd and therefore fails the algorithm's even-period check; this attempt continues.
For and , and while , so the true order is , agreeing with the chosen candidate . The half-power is , giving and . Neither passes the strict check, so the algorithm continues.
Depends on
- Shor factoring with verified output and bounded outer retries
- Even and perfect-power preprocessing returns a proper factor
- Random residue gcd branch for factoring
- Order-to-factor output correctness
- 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
- Powers $g^{n}$: natural exponents in a monoid and integer exponents in a group, with $g^{0} = e$
- 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$
- For $n\ge1$, $[a]_n$ is a unit if and only if $\gcd(a,n)=1$
Used by
Nothing in the library uses this result yet.
Dependency tree · two levels
53 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)