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’s Factoring Algorithm — Examples
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Binary Operations, Monoids, Groups and Subgroups
- Boolean Circuits and Nonuniform Complexity
- Bounded Linear Operators and Quotient Spaces
- Circuit Syntax, Denotational Semantics, and Measurement
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Norms and Realification
- Complexification, Realification and Real Structures
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Computational Problems, Promises, and Cost Models
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Controlled Gates, Phase, and Entanglement
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Effective Numberings, Reductions, Resources, and Randomness
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Dimensional Normed Spaces and Riesz Lemma
- Finite Fourier Analysis and the Fast Fourier Transform
- Finite Probability Spaces and Random Variables
- Finite-Dimensional Complex Inner-Product Spaces and Matrix Interfaces
- Formal Languages, Encodings, and Decision Problems
- Foundations of the Real Numbers for Analysis
- Free Modules, Exact Sequences, Projective and Injective Modules
- Fundamental Trigonometric Identities
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Hilbert Space Geometry and Riesz Representation
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Infinite Product Measures and Kolmogorov Extension
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Recurrences and Rational Generating Functions
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Measurable Functions and Simple Approximation
- Measurements, POVMs, and Instruments
- Measures and Their Basic Properties
- Metric Spaces
- Modules, Submodules, Quotient Modules and the Isomorphism Theorems
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Normed and Banach Spaces
- Order, Zorn's Lemma, and the Axiom of Choice
- Outer Measure and the Caratheodory Extension Theorem
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Primitive Roots and Unit Groups Modulo N
- Product Measures and the Fubini Tonelli Theorems
- Properties of the Integral and the Working FTC
- Pure and Mixed States, Ensembles, and Schmidt Decomposition
- Quantum Fourier-Transform Circuits
- Quantum Order Finding and Rational Reconstruction
- Quantum Phase Estimation
- Qubits, Bloch Sphere, Pauli Algebra, and One-Qubit Gates
- Registers, Tensor Products, and Partial Trace
- Regular Continued Fractions and Diophantine Approximation
- Relations, Functions, and Quotients
- Resource Bounds and Machine Invariance
- Reversible Computation, Ancillas, and Coherent Oracles
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Shor’s Factoring Algorithm
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Splitting Fields
- Strongly Continuous Semigroups and Hille Yosida
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- Tensor Products of Modules
- The Complex Exponential and Euler's Formula
- The Derivative and the Mean Value Theorems
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Exponential Function
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Lebesgue Integral and the Convergence Theorems
- The Polynomial Hierarchy and Relativization
- The Riemann Integral: Definition and Integrability
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Turing Machines, Configurations, and Computation
- Uniform Circuit Families, Promise Problems, and Complexity
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
The first example follows an accepted order sample for and computes both proper factors. The second checks the even and perfect-power prechecks, a nonunit gcd, an odd-order retry, and a half-power equal to the global sign that produces no proper gcd. Every arithmetic claim is verified directly.
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
A Shor order sample for factoring fifteen
Example
Take and suppose the sampler returns the unit . A valid order-finding result is . Then , and the two gcds are and .
Facts & Assumptions
Given: The Shor factoring instructions on , a sample , and the candidate .
A candidate is accepted for the reduction only when , is even, and ; the algorithm then computes the two gcds and returns only a verified proper divisor (Shor factoring with verified output and bounded outer retries).
Residue powers are computed by multiplication of congruence classes (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 ).
A gcd is a common divisor, so a gcd strictly between and is a proper nontrivial divisor when it divides (Common divisor, and the greatest common divisor , with the convention , Divisibility in : when for some integer ).
In an odd modulus, an accepted even exponent gives a square root of one; a non-global sign gives both gcds as proper factors (Order-to-factor output correctness).
Verification
Direct multiplication gives , , , and . Since none of the first three powers is , the true order is . Thus satisfies , is even, and passes the power check in [F1].
The half-power is , which is neither nor . The computed values are and .
Both candidates divide and satisfy . Since the algorithm checks first, it returns on this execution; both factors are certified by [F3] and [F4].
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.