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.
Simon’s Algorithm and Finite-Field Recovery
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
- Exact Oracle Algorithms
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Dimensional Normed Spaces and Riesz Lemma
- 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
- Gaussian Elimination, Elementary Matrices and Reduced Row Echelon Form
- 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
- 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
- Measurements, POVMs, and Instruments
- 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
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Properties of the Integral and the Working FTC
- Pure and Mixed States, Ensembles, and Schmidt Decomposition
- Qubits, Bloch Sphere, Pauli Algebra, and One-Qubit Gates
- Registers, Tensor Products, and Partial Trace
- Relations, Functions, and Quotients
- Resource Bounds and Machine Invariance
- Reversible Arithmetic and Oracle Conversion
- 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
- 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 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
- 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
This page defines the coordinate vector space , formalizes Simon’s nonzero hidden-XOR-period promise for total functions with output width at least , and gives an explicit basis for the -dimensional annihilator. It proves computational-basis Born weights from the trace formula, then derives the two-preimage state and uniform Fourier sample after one oracle query. Independent samples give exact rank-rise probabilities, finite-prefix expected query cost, and a vanishing termination tail. Gaussian elimination over recovers the unique hidden mask from independent equations. A capped procedure returns either the mask or FAIL, with success at least , at most queries, and explicit bit costs. The page also proves a classical randomized query lower bound for mask recovery under a uniform nonzero-mask and injective-label distribution. No general finite-abelian Fourier theorem is used.
3 · Logical flowchart
4 · Definitions, theorems and proofs
The quotient Z/2 is the binary field
Statement
The quotient operations on make the carrier of Binary residue carrier and operations a field. This is only the modulus- specialization of the published prime-modulus theorem; it does not assert a classification of finite fields.
Facts & Assumptions
Given: The binary residue carrier and its quotient operations.
Binary residue carrier and operations: is the two residue classes with addition and multiplication induced from .
Prime and composite integers: is prime when and its only positive divisors are and : an integer is prime when and its only positive divisors are and .
For every prime , the two operations on make it a field: for every prime , the quotient operations on make it a field.
Proof
The integer is greater than . If a positive integer divides , write with positive integer . If it is the first allowed divisor; if , then , which forces and . Thus the only positive divisors are and , so is prime by [F2].
Apply [F3] with using step 1.1. The carrier and both operations in [F1] are exactly those of , so every field axiom supplied by that specialization holds for .
The coordinate vector space over F2
Definition
For , let . Give it coordinatewise addition and scalar multiplication using the operations of Binary residue carrier and operations. Its zero vector is . Then is a vector space over , with standard basis and dimension . For , the carrier consists of the empty tuple, and the basis is empty.
Facts & Assumptions
Given: An integer and the field .
Binary residue carrier and operations and The quotient Z/2 is the binary field: the carrier is with its quotient addition and multiplication, and these operations satisfy the field axioms.
Vector space over a field: a vector space has an abelian-group addition, zero vector, and scalar multiplication satisfying both distributive laws, associativity of scalar multiplication, and the identity-scalar law.
Linear independence: a finite list is independent when forces every , and a subset is independent when every injective finite list into is independent: a finite list is independent when a zero linear combination forces every coefficient to be zero.
Linear combination of a finite list, and the span as the smallest linear subspace containing and is exactly the set of linear combinations of finite lists of elements of , and : the span of a list is the set of its finite linear combinations.
Basis of a vector space: a linearly independent spanning subset; and ordered basis: an injective finite list whose image is a basis and Finite-dimensional vector space, and its dimension ; infinite-dimensional means having no finite basis: a basis is an independent spanning set, and dimension is the number of elements in a finite basis.
Verification
The coordinate operations are closed because each coordinate operation is an operation in by [F1]. Each vector-space axiom in [F2] holds coordinate by coordinate by the corresponding field axiom in [F1]; coordinatewise equality then gives the vector identity. For there is only the empty tuple, and all coordinate identities hold vacuously.
For , let have coordinate at and elsewhere. Every equals coordinatewise, so spans. The vectors are pairwise distinct because their -coordinates differ. To verify that is independent in the subset sense of [F3], take any finite injective list and coefficients . If , the independence implication is vacuous. Otherwise write ; injectivity and distinctness of the make the indices pairwise distinct. The coordinate of is then exactly , so a zero sum forces every . This also covers , since then admits no nonempty list. Thus is independent, and it is a basis by [F4]–[F5]. Its distinct vectors give dimension .
Gaussian elimination over F2 for Simon recovery
Definition
Input: An binary matrix over the field , with . Let .
Instructions:
- Set the pivot-row index and an empty ordered list of pivot columns. For columns in order, search the rows for the least with . If none exists, continue to the next column.
- If such exists, swap rows and . For every other row with entry in column , replace row by its bitwise XOR with row . Record as a pivot column and increase by one.
- After the finite column loop, return FAIL if . Otherwise find the sole nonpivot column , set the free variable , and solve each pivot variable from its reduced row. Return the resulting vector .
All searches, swaps, row XORs, and loops are finite. The input has zero rows and the algorithm returns the one-bit vector . The operation is a deterministic row-reduction procedure; correctness and bit cost are proved in F2 row reduction returns the unique Simon mask.
Computational-basis measurement weights are squared amplitudes
Statement
Let be a finite ordered orthonormal computational basis, let be a unit vector, and put . For the computational-basis projective measurement with , the associated POVM weight is
In particular these weights are nonnegative and sum to one.
Facts & Assumptions
Given: A finite ordered orthonormal computational basis and a unit vector .
Dirac Notation Conversion: sends to , and the root inner product is linear in its first argument.
The computational basis is orthonormal: computational register bases are orthonormal.
A unit-vector outer product is a density operator and Density operator: the outer product of a unit vector is a nonnegative trace-one density operator.
Finite projective measurements: a finite projective measurement has outcome weights for its projections .
Finite POVMs and their outcome law: a finite POVM assigns the outcome weight to effect .
The basis-independent trace of an endomorphism of a finite-dimensional vector space: trace is the sum of diagonal matrix entries in any finite-dimensional basis.
Proof
By [F1] and [F2], ; hence the are pairwise orthogonal self-adjoint idempotents and sum to the identity, as can be checked on every basis vector. For , , so these projections are POVM effects by [F4]–[F5]. Also , so for and . The coefficient of in this last vector is . Thus the only nonzero diagonal entry of in this basis is , and [F6] gives .
The vector projector is a density operator by [F3]. The computational-basis projective measurement and its associated POVM law [F4]–[F5] therefore assign weight to outcome . Since the basis is orthonormal and , ; each term is nonnegative. Hence the weights form a probability distribution.
Simon hidden-XOR-period promise
Definition
Fix integers and . A total function satisfies the Simon hidden-XOR-period promise if there is a unique nonzero string such that for all ,
For the query algorithms using this promise, the instance is together with black-box access to : the solver receives no function table or other information depending on . Each oracle call uses the standard bit-query interface Standard bit-flip query convention. Its witness relation holds exactly when is the nonzero mask in the displayed iff condition, so the required output is the unique hidden mask. The address operation is the coordinatewise addition of Binary residue carrier and operations. The output width condition lets the fibers receive distinct labels; it does not promise that the image uses every -bit label. Each fiber is exactly .
Facts & Assumptions
Given: Integers , , and the binary residue operation from Binary residue carrier and operations.
Binary residue carrier and operations: addition in is the residue operation modulo two, represented on bits by XOR.
Verification
Set , which is a nonzero -bit string because . For every , and , so this involution partitions the addresses into disjoint two-element fibers; there are fibers.
The set of -bit labels has elements: it has one empty word at width zero, and appending either or doubles the count at each additional bit. Since , there are at least labels. Order the fibers by their least address and assign the first labels in lexicographic order; this constructs a total oracle satisfying the iff condition, so the promised family is nonempty.
The displayed iff condition makes the output fiber of exactly . Since , the two members are distinct. For any other nonzero period , the point is the unique other member of the fiber of , so and cancellation gives . This verifies the uniqueness clause in the Definition.
The Simon annihilator is an (n−1)-dimensional binary subspace
Statement
Let and let be nonzero in the coordinate vector space of The coordinate vector space over F2. Define
where the binary dot product is the parity defined in Binary dot product as parity. Then is a linear subspace of dimension and has exactly elements. The assertion includes , when has dimension zero.
Facts & Assumptions
Given: An integer and a nonzero binary string .
Simon hidden-XOR-period promise: the Simon mask is nonzero.
The coordinate vector space over F2: has coordinatewise vector addition and scalar multiplication over the field .
The quotient Z/2 is the binary field: these quotient operations make a field.
Vector space over a field and Linear subspace of a vector space: a linear subspace contains zero and is closed under vector addition and scalar multiplication over the field.
Linear independence: a finite list is independent when forces every , and a subset is independent when every injective finite list into is independent: a finite list is independent when a zero linear combination forces every coefficient to be zero.
is exactly the set of linear combinations of finite lists of elements of , and : the span of a finite list is exactly the set of its finite linear combinations.
Basis of a vector space: a linearly independent spanning subset; and ordered basis: an injective finite list whose image is a basis and Finite-dimensional vector space, and its dimension ; infinite-dimensional means having no finite basis: a basis is an independent spanning set, and the dimension of a finite-dimensional vector space is the size of a finite basis.
Proof
Choose the least coordinate with , which exists by [F1]. For each , let have coordinate at , coordinate at , and zero elsewhere. Then , so every belongs to . When , the index set is empty.
For any , the equation and give ; hence , checking each coordinate. Conversely, distributing [F4] over the finite sum gives , so the span equals and makes it a subspace by [F5] and [F7]. For any injective finite list from this set, the indices are distinct, and coordinate of is exactly . Thus a zero combination forces every coefficient to vanish; when the list is empty the condition is vacuous. The set is independent by [F6] and spans by [F7].
The independent spanning set from step 2.1 is a basis by [F8], and has exactly elements, so . Its coefficient map is bijective by the coordinate formula and independence, so because there are binary coefficient lists. For , the empty list gives only , and the same count is .
One Simon Fourier-sampling sample
Definition
Input: Integers , , and ordinary access through the Standard bit-flip query convention to a total function satisfying Simon hidden-XOR-period promise. Prepare an ordered -qubit address register and -qubit target register, both in their zero computational-basis states.
Instructions:
- Apply the exact one-qubit Hadamard gate to every address wire, producing , and leave the target at .
- Apply the standard bit-flip oracle once. Measure the target with the computational-basis projective measurement Finite projective measurements, viewed as the finite POVM Finite POVMs and their outcome law. Use the Lüders branch maps , where , under the instrument and conditional-state interface Finite instruments and conditional states. Theorem The square-root Lüders maps form an instrument supplies a valid instrument; its outcome weights and positive-branch states are covered by Instrument outcome weights normalize and Positive-probability instrument branches are density operators. Discard the reported value and target register. The POVM effects are these same .
- Apply to the address register and measure it in the computational basis. Return the observed -bit string as one sample row.
Every branch uses exactly one oracle query and Hadamard gates. It makes one finite instrument measurement on the target and one terminal projective measurement on the address. The intermediate target outcome is not used by classical postprocessing. There is no failure branch, controlled-oracle call, or inverse-oracle call. This procedure's sample law is proved separately in Simon samples uniformly from s-perp.
Random Simon-oracle distribution for a classical lower bound
Definition
Fix and , and put and . Choose uniformly from the nonzero binary masks. Let be the set of address pairs . Conditional on , choose uniformly an injection and define the total oracle .
The sample space consists of all pairs with equal weight. There are cosets and labels, so each admits exactly injections; this number does not depend on . Thus the marginal on is uniform and the conditional label assignment is uniform without replacement.
Facts & Assumptions
Given: Integers , , and the hidden-XOR-period promise.
Simon hidden-XOR-period promise: a valid Simon function is total and satisfies exactly when or for its unique nonzero mask.
Finite probability spaces, outcome weights, events, and event probabilities: a finite probability space is a finite outcome set with nonnegative weights summing to one.
Verification
For every nonzero , the map is a fixed-point-free involution, so its addresses split into two-element cosets. Since , , and the number of injections from a -element set into an -element set is , the sample space is finite and nonempty.
Give every pair weight . There are exactly the denominator's many pairs, so the weights are nonnegative and sum to one by [F2]. Because the number of injections is constant for each , the induced hidden mask is uniform and, conditional on it, every injection is equally likely.
If , the two addresses lie in the same coset and receive the same label. Conversely, if , injectivity of gives equal cosets, hence or . Since , this is exactly the Simon promise with unique hidden mask .
Simon query and output measurement produce a coset pair
Statement
For a Simon oracle with hidden nonzero string , immediately after its one standard query the joint state is
For each output value in the image of , the target Lüders instrument has probability and its conditional joint state factors as
where is either preimage of . Outcomes outside the image have probability zero. Hence the address register conditional state is the normalized coset-pair vector shown above.
Facts & Assumptions
Given: A Simon oracle with , , and unique nonzero hidden string .
Simon hidden-XOR-period promise: every fiber is exactly one pair , and .
Standard bit-flip query convention: the ordinary oracle acts by on the ordered address and target bases.
One Simon Fourier-sampling sample: the address is prepared uniformly by , queried once, and the target is measured with the branch maps for .
Finite projective measurements: a projective measurement is a finite family of pairwise orthogonal self-adjoint idempotents summing to the identity.
Finite POVMs and their outcome law: a POVM is a finite family of nonnegative effects summing to the identity.
A non-negative operator has a unique non-negative square root: every nonnegative operator has a unique nonnegative square root.
The square-root Lüders maps form an instrument: for a finite POVM , the square-root maps form a finite instrument.
Finite instruments and conditional states: an instrument assigns branch probability and, on a positive branch, conditional state .
Instrument outcome weights normalize: for an input density operator, the branch weights of a finite instrument are nonnegative and sum to one.
Ordered tensor registers, their inner product, and wire permutations: elementary tensor products use the displayed factor order and product inner product.
The computational basis is orthonormal: each computational register basis is orthonormal.
Dirac Notation Conversion: sends to .
The basis-independent trace of an endomorphism of a finite-dimensional vector space: trace is the sum of diagonal entries in any finite-dimensional basis.
Hadamard character sum on F_2^n: the tensor Hadamard sends to the uniform vector .
A unit-vector outer product is a density operator: the outer product of a unit vector is a density operator.
Proof
The Hadamard-character formula [F14] gives . Applying [F2] to this vector and the zero target produces the displayed joint vector . Its orthogonal terms all have squared coefficient by [F10]–[F11], so and is a density operator by [F15].
For each , the maps in [F3] have projectors . By [F10]–[F11], computational basis vectors are orthonormal, so the are self-adjoint idempotents, pairwise orthogonal, and sum to the identity. Also , so these projectors form a POVM by [F4]–[F5]. The nonnegative square root of each projector is itself by [F6]; hence [F7] makes the branch maps a valid instrument with the probabilities and conditional states of [F8].
Fix in the image and let be one preimage. Set . The post-query vector projected into branch is by [F1]. The two address basis vectors are distinct and orthonormal by [F1] and [F11].
The branch operator is the rank-one map for the projected vector in step 1.3. In the product basis its only nonzero diagonal entries are the two squared coefficients , by [F12]–[F13]. Thus the branch probability is . An output outside the image has zero projected vector and therefore zero trace.
Dividing the projected vector in step 1.3 by its norm gives the normalized conditional state in the Statement; it factors into an address vector and the fixed output basis vector . Its rank-one outer product is a density operator by [F15], and its probability is positive, so it is the conditional state in [F8]. There are exactly image values by the fiber partition in [F1], and their probabilities sum to one as required by [F9].
F2 row reduction returns the unique Simon mask
Statement
For , let be a binary matrix. The algorithm Gaussian elimination over F2 for Simon recovery terminates, returns FAIL exactly when , and otherwise returns the unique nonzero vector in . In particular, if the rows are independent and each row satisfies for a fixed nonzero Simon mask , then the returned vector is . The algorithm uses classical bit operations.
Facts & Assumptions
Given: , a binary matrix with rows and columns, and, in the Simon case, a nonzero annihilated by each row.
Gaussian elimination over F2 for Simon recovery: the procedure uses row swaps and row XORs, clears every pivot column from all other rows, fails when the pivot count is not , and otherwise sets the sole free variable to .
The quotient Z/2 is the binary field: is a field.
Rank-nullity: : for a linear map from an -dimensional vector space, kernel dimension plus rank equals .
Simon hidden-XOR-period promise: the Simon mask is nonzero.
Binary dot product as parity: is the parity of the coordinatewise products in .
Gaussian elimination reduces every finite matrix over a field to row echelon form: finite matrices over a field can be reduced by elementary row operations to echelon form.
Classical bit-operation cost: bit-operation cost counts the transitions of the declared finite-alphabet Turing machine, including reading, writing, comparisons, and postprocessing.
The coordinate vector space over F2: and are vector spaces of dimensions and with coordinatewise operations.
Matrix equation , its solution set, consistency, homogeneous systems and the augmented matrix : is the homogeneous system for the associated matrix map.
The rank of a matrix equals the rank of the linear map : the matrix rank equals the rank of its associated linear map.
Basis of a vector space: a linearly independent spanning subset; and ordered basis: an injective finite list whose image is a basis and is exactly the set of linear combinations of finite lists of elements of , and : a basis spans its vector space by finite linear combinations.
Binary residue carrier and operations: , so a one-dimensional -space has only the zero vector and its unique basis vector.
Row space, column space, nullspace, row rank, column rank and matrix rank: matrix rank is the dimension of the span of its rows.
Proof
Swapping two rows or replacing a row by its XOR with another preserves both the homogeneous solution set and row space: each operation has an inverse of the same form, and the new row is a combination of old rows. Thus the rank and kernel of are preserved by [F13] and [F9]. The loops visit columns and at most pivot rows, with finite row scans, so they terminate.
At each pivot the selected entry is , earlier pivot columns are zero below it, and XORing the pivot row clears its column in every other row. At termination the pivot columns form an identity block and all remaining rows are zero. The nonzero rows are independent because their pivot columns form an identity matrix, and they span the row space because every other row is zero. By [F13], the pivot count equals ; step 1.1 preserves this rank from the input. The procedure returns FAIL precisely when this rank is below .
If the pivot count is , there is exactly one nonpivot column. Setting its coordinate to and solving each pivot equation gives a vector in the reduced system with that coordinate nonzero. By step 1.1, it lies in the kernel of the original and is nonzero.
Whenever , the associated map has rank by [F10] and domain dimension by [F8]; rank-nullity [F3] gives a one-dimensional kernel. A basis of that kernel has one vector , so every vector is by [F11]; [F12] gives , hence is its unique nonzero vector. The algorithm's output from step 3.1 is therefore the unique nonzero kernel vector. In the Simon case, every row has dot product zero with , so [F5] and [F9] give , and [F4] gives ; thus the output is .
Store the rows consecutively on an input work tape. To find pivots, a multitape machine may scan the whole -bit matrix once for each of at most columns; this costs transitions including head movement. For each of at most pivots, copy its bits to a work tape, then scan each of at most other rows and XOR the copied pivot row into it when required; each scan and row update costs transitions, so all row operations cost . Swaps, pivot bookkeeping, and back-substitution require at most further transitions under the same scan representation. The finite-alphabet multitape convention [F7] therefore gives the stated classical bit cost.
Classical randomized Simon search needs exponential queries
Statement
Let , , and . Consider algorithms that know and receive only classical query access to the promised oracle ; no truth table, description, or other information depending on is supplied. Every randomized algorithm in this model that outputs the unique nonzero Simon mask with success probability at least on every promised oracle must use more than queries in the worst case. Consequently the classical randomized query complexity in this oracle-only model is . This is a query lower bound; no classical bit-time lower bound is asserted.
Facts & Assumptions
Given: The random Simon-oracle distribution, a randomized classical query algorithm with worst-case query bound , , and output width .
Random Simon-oracle distribution for a classical lower bound: is uniform among nonzero masks and coset labels are assigned uniformly by an injection into the -bit outputs.
Classical query algorithm: fixing the finite random tape gives a deterministic adaptive query procedure. Under the oracle-only convention in the Statement, its address choices may depend on and earlier replies, but receive no additional -dependent input.
Finite probability spaces, outcome weights, events, and event probabilities: all hidden masks, label injections, and finite random tapes are sampled in finite probability spaces.
Proof
Assume, for contradiction, that . Put and .
Fix one finite random tape, making the algorithm deterministic. Repeated addresses can be answered from the earlier reply and removed without changing the output, so the resulting at most queries are distinct.
The assumption in step 1.1 gives . Hence , since .
Consider a collision-free transcript of queries. A mask is inconsistent with it only if it is the XOR difference of a pair of queried addresses, so at most masks are excluded and at least remain. For each remaining , the queried addresses lie in distinct -cosets. Write , where and . For a specified ordered list of distinct replies, the number of injections extending those assignments is out of total injections, giving likelihood , independent of . Because the deterministic query addresses are functions of earlier replies, the transcript has the same likelihood for every consistent mask. The posterior on those masks is therefore uniform.
At the th fresh query, a collision with a previous address requires . There are at most candidate masks, and after any collision-free transcript at least masks remain equally likely by step 3.1. Thus the probability that the first collision occurs at query is at most . Summing over bounds the total collision probability by .
On a collision-free transcript, the deterministic final guess is correct with probability at most , since at least that many masks remain equally likely. On transcripts with a collision, success is at most one. Therefore average success under [F1] is at most .
By steps 1.1 and 2.2, with , . The strict inequality is equivalent to , which holds because . Thus every fixed random tape has average success strictly below under the finite oracle distribution.
Averaging over the algorithm's finite random tapes keeps its average success below . But success at least on every promised function implies average success at least under [F1], since every function in that distribution is promised. This contradiction proves and hence the stated lower bound.
Simon samples uniformly from s-perp
Statement
For every Simon hidden nonzero string , the one-sample algorithm returns a string uniformly distributed on
The set has elements. Conditional on the measured output value , the amplitude of is when and is zero otherwise. Thus the outcome law is independent of which output fiber was observed.
Facts & Assumptions
Given: , the Simon promise, and a fresh one-sample execution.
Simon query and output measurement produce a coset pair: conditional on output , the address state is .
Binary dot product as parity: is the parity .
One Simon Fourier-sampling sample: after the target branch, the algorithm applies to the address and measures in the computational basis.
Computational-basis measurement weights are squared amplitudes: for a unit vector measured in the computational basis, the outcome weight is the squared modulus of its basis amplitude.
The Simon annihilator is an (n−1)-dimensional binary subspace: is a subspace of dimension and has exactly elements.
The computational basis is orthonormal: the address register's computational basis is orthonormal.
Proof
Apply [F2] to the two terms in [F1]. The amplitude at is By [F3], .
If , the two signs in step 1.1 are opposites and the amplitude is zero. If , they agree and the amplitude is . Thus its squared modulus is on every allowed and zero otherwise.
There are allowed strings by [F6]. The vector after the final Hadamards has squared norm by step 2.1 and orthonormality [F7]. This also covers , when the only allowed string is .
The measured vector is unit by step 3.1, so [F5] gives probability for each allowed string and zero for every disallowed string. These weights sum to one; the phase depends on but the probabilities do not. Thus every fresh execution has the same uniform sample law regardless of the observed coset.
Simon independent-sample rank process
Definition
Fix integers and , and fix one total oracle satisfying the Simon hidden-XOR-period promise, with its hidden nonzero mask . Put and use the coordinate vector space of The coordinate vector space over F2. Start with an empty ordered list of accepted rows and . On each round, reset both registers and run a fresh One Simon Fourier-sampling sample for this same fixed oracle . Its measurement outcomes are independent across these freshly initialized executions: every finite -round history is an outcome in a finite probability space Finite probability spaces, outcome weights, events, and event probabilities with the product of its one-sample probabilities. Obtain its sample row . At current rank , let be the span of the accepted rows. If , append and set ; if , discard it and leave the list and span unchanged. Stop once the span has dimension .
The sample law Simon samples uniformly from s-perp places every row in , and The Simon annihilator is an (n−1)-dimensional binary subspace proves that this subspace has dimension , so this stopping target is attainable and never exceeds the available rank. This is an unbounded rank-collection process, with one oracle query in every sampling round. Its probability and expected-query claims use finite prefix experiments as in Expected query cost from finite execution prefixes; a finite cap and failure output are specified separately.
Simon rank growth probability
Statement
Let and consider a finite history with accepted rows in the Simon rank process. These rows are independent by the acceptance rule, so the current rank is . The next independent sample increases the rank with probability
Writing , for each fixed rank- history and every , let be the event, in the finite continuation experiment of the next fresh samples, that all fail to raise rank. For , let on the finite -sample continuation experiment be the number of samples up to the first rank increase, capped at , with value if no increase occurs in that prefix. Then
and the expected truncated waiting count is
All probabilities and expectations here are over finite continuation experiments; no probability measure on infinite sample histories is assumed.
Facts & Assumptions
Given: A fixed Simon oracle, , and a finite history with accepted rows.
Simon independent-sample rank process: the accepted rows span , and fresh independent Simon samples are taken until rank .
Simon samples uniformly from s-perp: a fresh sample is uniform on .
The Simon annihilator is an (n−1)-dimensional binary subspace: has dimension and elements.
The coordinate vector space over F2 and Binary residue carrier and operations: coefficient lists are in , with each coordinate chosen from .
The quotient Z/2 is the binary field: is a field.
Linear independence: a finite list is independent when forces every , and a subset is independent when every injective finite list into is independent: an accepted list is independent when its only zero linear combination has all coefficients zero.
Linear combination of a finite list, and the span as the smallest linear subspace containing and is exactly the set of linear combinations of finite lists of elements of , and : the span consists exactly of finite linear combinations of the accepted rows.
Basis of a vector space: a linearly independent spanning subset; and ordered basis: an injective finite list whose image is a basis and Finite-dimensional vector space, and its dimension ; infinite-dimensional means having no finite basis: a basis is an independent spanning set, and the dimension is the size of a finite basis.
Finite probability spaces, outcome weights, events, and event probabilities: every finite-prefix outcome space has nonnegative weights summing to one.
Real random variables on finite probability spaces and their finite distributions: a real random variable on a finite probability space is a function on that finite outcome set.
Expectation of a real random variable on a finite probability space: expectation is the finite sum of value times outcome weight.
For , , and for the series diverges: if , then .
Proof
By [F1], each accepted row was outside the span of its predecessors. In a zero linear combination, if the last nonzero coefficient were , that row would be a combination of its predecessors, contradicting acceptance; since the only nonzero scalar is , this proves inductively that the accepted list is independent by [F6]. It spans by [F7], hence is a basis by [F8]. The coefficient map from to is injective by independence and surjective by span; [F4] gives possible coefficient lists, so .
By [F2]–[F3], samples are uniform on the elements of , and [F1] gives . Exactly lie in by step 1.1, so the probability the next sample is accepted is , while the failure probability is .
Condition on any rank- history and use the finite -sample continuation experiment. Let be the event that every one of those samples lies in the current span . On this event the span remains throughout; by freshness, each conditional failure probability is , so multiplying the finite conditional probabilities gives . For , is the whole one-outcome empty continuation and has probability .
For each finite horizon , the explicitly defined is a function on the finite experiment by [F9]–[F10]. For every , the event is the event after projection to its first samples, so . The expectation definition [F11] and step 3.1 give . Since , [F12] bounds these partial sums by .
Budgeted Simon recovery with explicit failure branch
Definition
Input: A promised Simon oracle with , output width , and a supplied rational failure tolerance with positive binary integers . Set .
Instructions:
- If , return the unique nonzero one-bit string immediately, using zero queries.
- Otherwise form by binary shift-and-add multiplication, divide by using binary long division with , and set if and otherwise. Start with an empty reduced row-echelon basis.
- For at most trials, run One Simon Fourier-sampling sample once. Reduce its row against the current pivot rows in increasing pivot-column order. Discard it if the residual row is zero. Otherwise insert it at its least nonzero coordinate as a new pivot, clear that pivot column from the old rows by XOR, and maintain the pivot order. Stop sampling as soon as the basis reaches rank .
- If the basis reaches rank , form the matrix of its rows, call Gaussian elimination over F2 for Simon recovery, and output the returned vector. If all trials are used before rank is reached, return FAIL.
Every execution has at most oracle queries. Each sample uses Hadamard gates and two finite measurements; no controlled or inverse query is used. Under the Classical bit-operation cost model, classical basis maintenance costs bit operations, the final row reduction costs , and computing by schoolbook integer arithmetic costs bit operations, where is the total binary input length of . The total classical bit bound is therefore . The correctness and failure bound are proved in Simon recovery succeeds with probability at least 1-delta.
Simon recovery succeeds with probability at least 1-delta
Statement
Fix a Simon oracle with , let , and let . The unbounded rank-collection process terminates almost surely in the sense that its finite-prefix tail probability tends to zero as ; its expected query cost, defined as the supremum over finite query prefixes, is at most . For the finite algorithm with , the probability of returning the hidden mask is at least , and its worst-case query count is at most . For fixed constant , the query count is . The finite algorithm's classical postprocessing has bit cost when is supplied in binary with total numerator/denominator length .
Here the tail probabilities are computed from the finite prefix experiments of the rank process. When , the induced stopping-time law assigns mass to and mass to ; the proof shows the latter is zero. When , and the process is already complete. No measure on an infinite execution-history space is assumed.
Facts & Assumptions
Given: A fixed promised Simon oracle, , , and a rational .
Simon independent-sample rank process: samples are fresh and independent, one query is made per sample, and the process stops at rank .
Simon rank growth probability: at every rank , a new sample raises rank with probability , and the finite-prefix expected waiting count at that rank is at most .
Expected query cost from finite execution prefixes: expected query cost is the supremum of the expectations of query counts on finite execution prefixes; query-indexed sample rounds are cofinal.
Budgeted Simon recovery with explicit failure branch: the cap is , rank returns a kernel solution, and a missing rank at the cap returns FAIL.
F2 row reduction returns the unique Simon mask: full-rank independent rows in yield the unique nonzero kernel vector .
Finite probability spaces, outcome weights, events, and event probabilities: each finite-prefix experiment has a finite outcome set with nonnegative weights summing to one.
Markov's inequality on a finite probability space: for a nonnegative variable on a finite probability space and threshold , .
Classical bit-operation cost: classical bit work is measured by transitions of the stated finite-alphabet Turing-machine model.
Proof
If , the unique nonzero element of is , so the budgeted algorithm returns the correct mask with zero queries. The rank process has already reached its target rank zero.
Suppose . For each finite horizon , use the finite -round experiment of [F1] and let count the samples actually taken before reaching rank , capped at . Decompose , where counts the trials spent at rank and is zero if that rank is not reached within the prefix. Condition on each finite history at the first time rank is reached, with rounds remaining. If , its remaining contribution is zero; if , the rank-growth theorem [F2] gives expected truncated wait at most on that continuation. If rank is not reached, the contribution is zero. Summing over these disjoint first-arrival histories gives for every , hence . Since is the query count on the finite -round prefix, [F3] gives expected query cost at most .
Let be the event, in the finite -round experiment, that the rank is still below after all samples. On the process has used all queries, so and . Therefore for every , which tends to zero. This tail argument uses only finite-prefix events and expectations.
In the finite -sample experiment, failure is the event that rank remains below after all samples. On , , so . The variable is nonnegative and bounded, and Markov's inequality [F7] gives .
For , let be as in step 2.1, with the whole zero-round experiment. By consistency of finite-prefix probabilities, extending the -round experiment to rounds partitions into histories that first reach rank at round and histories in . Define the mass at to be ; these masses are nonnegative. Their partial sums telescope to , and step 2.1 makes the residual mass at infinity zero. The resulting countable masses sum to one. For , step 1.1 gives . Thus the process terminates almost surely without assuming a measure on infinite histories.
If rank is reached, all collected rows are independent and lie in by [F1]–[F2]. The recovery routine therefore returns by [F5]. Combining this with step 2.2 proves success probability at least . The finite cap makes at most sampling rounds. In each round, reducing an incoming row against at most pivot rows and clearing a new pivot from at most rows requires bit operations; so basis maintenance costs . The final reduction costs by [F5]. To compute , the algorithm multiplies binary integers of total length and performs long division on integers of at most that length; the schoolbook multiplication, comparisons, shifts, and long division each use bit operations. These counts use the finite-alphabet Turing-machine convention [F9], giving the stated postprocessing bound.
5 · Examples, counterexamples and false statements
None yet.