Alphabeta Math
Pipeline-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.

Simon’s Algorithm and Finite-Field Recovery

1 · Prerequisites

2 · Summary

This page defines the coordinate vector space F2n, formalizes Simon’s nonzero hidden-XOR-period promise for total functions with output width at least n−1, and gives an explicit basis for the (n−1)-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 F2 recovers the unique hidden mask from n−1 independent equations. A capped procedure returns either the mask or FAIL, with success at least 1−δ, at most ⌈2(n−1)/δ⌉ queries, and explicit bit costs. The page also proves a classical randomized Ω(2n/2) 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

TheoremStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

The quotient Z/2 is the binary field

Statement

The quotient operations on Z/2Z make the carrier F2 of Binary residue carrier and operations a field. This is only the modulus-2 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.

[F1]

Binary residue carrier and operations: F2 is the two residue classes [0]2,[1]2 with addition and multiplication induced from Z.

[F2]

Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p: an integer p is prime when p>1 and its only positive divisors are 1 and p.

[F3]

For every prime p, the two operations on Z/p make it a field: for every prime p, the quotient operations on Z/pZ make it a field.

Proof

1.1givenF2algebra

The integer 2 is greater than 1. If a positive integer d divides 2, write 2=dq with positive integer q. If d=1 it is the first allowed divisor; if d≠1, then d≥2, which forces q=1 and d=2. Thus the only positive divisors are 1 and 2, so 2 is prime by [F2].

2.1givenF1F3step 1.1algebra∎

Apply [F3] with p=2 using step 1.1. The carrier and both operations in [F1] are exactly those of Z/2Z, so every field axiom supplied by that specialization holds for F2.

DefinitionDefinition: Literature-sourcedProof: AI-adaptedOpen item page →

The coordinate vector space over F2

Definition

For n≥0, let F2n={0,1}n. Give it coordinatewise addition (x+y)i=xi+yi and scalar multiplication (cx)i=cxi using the operations of Binary residue carrier and operations. Its zero vector is 0n. Then F2n is a vector space over F2, with standard basis e0,…,en−1 and dimension n. For n=0, the carrier consists of the empty tuple, and the basis is empty.

Facts & Assumptions

Given: An integer n≥0 and the field F2.

[F1]

Binary residue carrier and operations and The quotient Z/2 is the binary field: the carrier is {0,1} with its quotient addition and multiplication, and these operations satisfy the field axioms.

[F2]

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.

Verification

1.1givenF1F2algebra

The coordinate operations are closed because each coordinate operation is an operation in F2 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 n=0 there is only the empty tuple, and all coordinate identities hold vacuously.

2.1givenF1F3F4F5algebra∎

For i<n, let ei have coordinate 1 at i and 0 elsewhere. Every x∈F2n equals ∑i<nxiei coordinatewise, so B={ei:i<n} spans. The vectors ei are pairwise distinct because their 1-coordinates differ. To verify that B is independent in the subset sense of [F3], take any finite injective list b:r→B and coefficients ct∈F2. If r=0, the independence implication is vacuous. Otherwise write bt=eit; injectivity and distinctness of the ei make the indices it pairwise distinct. The coordinate it of ∑u<rcubu is then exactly ct, so a zero sum forces every ct=0. This also covers n=0, since then B=∅ admits no nonempty list. Thus B is independent, and it is a basis by [F4]–[F5]. Its n distinct vectors give dimension n.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Gaussian elimination over F2 for Simon recovery

Definition

Input: An (n−1)×n binary matrix Y over the field F2, with n≥1. Let d=n−1.

Instructions:

  1. Set the pivot-row index k=0 and an empty ordered list of pivot columns. For columns j=0,…,n−1 in order, search the rows i≥k for the least i with Yij=1. If none exists, continue to the next column.
  2. If such i exists, swap rows i and k. For every other row r≠k with entry 1 in column j, replace row r by its bitwise XOR with row k. Record j as a pivot column and increase k by one.
  3. After the finite column loop, return FAIL if k≠d. Otherwise find the sole nonpivot column q, set the free variable xq=1, and solve each pivot variable from its reduced row. Return the resulting vector x∈F2n.

All searches, swaps, row XORs, and loops are finite. The n=1 input has zero rows and the algorithm returns the one-bit vector 1. The operation is a deterministic row-reduction procedure; correctness and bit cost are proved in F2 row reduction returns the unique Simon mask.

LemmaStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Computational-basis measurement weights are squared amplitudes

Statement

Let (∣y⟩)y∈Y be a finite ordered orthonormal computational basis, let ψ=∑y∈Yay∣y⟩ be a unit vector, and put ρ=∣ψ⟩⟨ψ∣. For the computational-basis projective measurement with Py=∣y⟩⟨y∣, the associated POVM weight is

p(y)=tr⁡(ρPy)=∣ay∣2.

In particular these weights are nonnegative and sum to one.

Facts & Assumptions

Given: A finite ordered orthonormal computational basis (∣y⟩)y∈Y and a unit vector ψ=∑yay∣y⟩.

[F1]

Dirac Notation Conversion: ∣u⟩⟨v∣ sends z to ⟨z,v⟩rootu, and the root inner product is linear in its first argument.

[F2]

The computational basis is orthonormal: computational register bases are orthonormal.

[F3]

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.

[F4]

Finite projective measurements: a finite projective measurement has outcome weights tr⁡(ρPy) for its projections Py.

[F5]

Finite POVMs and their outcome law: a finite POVM assigns the outcome weight tr⁡(ρEy) to effect Ey.

[F6]

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

1.1givenF1F2F4F5F6algebra

By [F1] and [F2], Py∣z⟩=δy,z∣y⟩; hence the Py are pairwise orthogonal self-adjoint idempotents and sum to the identity, as can be checked on every basis vector. For z=∑wbw∣w⟩, ⟨Pyz,z⟩root=∣by∣2≥0, so these projections are POVM effects by [F4]–[F5]. Also ⟨y,ψ⟩root=ay‾, so ρPy∣z⟩=0 for z≠y and ρPy∣y⟩=ay‾ψ. The coefficient of ∣y⟩ in this last vector is ∣ay∣2. Thus the only nonzero diagonal entry of ρPy in this basis is ∣ay∣2, and [F6] gives tr⁡(ρPy)=∣ay∣2.

2.1givenF2F3F4F5step 1.1algebra∎

The vector projector ρ is a density operator by [F3]. The computational-basis projective measurement and its associated POVM law [F4]–[F5] therefore assign weight tr⁡(ρPy)=∣ay∣2 to outcome y. Since the basis is orthonormal and ∥ψ∥=1, ∑y∣ay∣2=1; each term is nonnegative. Hence the weights form a probability distribution.

DefinitionDefinition: Literature-sourcedProof: AI-adaptedOpen item page →

Simon hidden-XOR-period promise

Definition

Fix integers n≥1 and m≥n−1. A total function f:{0,1}n→{0,1}m satisfies the Simon hidden-XOR-period promise if there is a unique nonzero string s∈{0,1}n such that for all x,y∈{0,1}n,

f(x)=f(y)⟺(y=x or y=x⊕s).

For the query algorithms using this promise, the instance is n,m together with black-box access to f: the solver receives no function table or other information depending on f. Each oracle call uses the standard bit-query interface Standard bit-flip query convention. Its witness relation R(f,s) holds exactly when s 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 2n−1 fibers receive distinct labels; it does not promise that the image uses every m-bit label. Each fiber is exactly {x,x⊕s}.

Facts & Assumptions

Given: Integers n≥1, m≥n−1, and the binary residue operation from Binary residue carrier and operations.

[F1]

Binary residue carrier and operations: addition in F2 is the residue operation modulo two, represented on bits by XOR.

Verification

1.1givenF1constructalgebra

Set s=(1,0,…,0), which is a nonzero n-bit string because n≥1. For every x, x⊕s≠x and (x⊕s)⊕s=x, so this involution partitions the 2n addresses into disjoint two-element fibers; there are 2n−1 fibers.

2.1givenstep 1.1constructalgebra

The set of m-bit labels has 2m elements: it has one empty word at width zero, and appending either 0 or 1 doubles the count at each additional bit. Since m≥n−1, there are at least 2n−1 labels. Order the fibers by their least address and assign the first 2n−1 labels in lexicographic order; this constructs a total oracle satisfying the iff condition, so the promised family is nonempty.

3.1givenstep 1.1algebra∎

The displayed iff condition makes the output fiber of x exactly {x,x⊕s}. Since s≠0, the two members are distinct. For any other nonzero period t, the point x⊕t is the unique other member of the fiber of x, so x⊕t=x⊕s and cancellation gives t=s. This verifies the uniqueness clause in the Definition.

LemmaStatement: Literature-sourcedProof: AI-adaptedOpen item page →

The Simon annihilator is an (n−1)-dimensional binary subspace

Statement

Let n≥1 and let s∈F2n be nonzero in the coordinate vector space of The coordinate vector space over F2. Define

s⊥:={y∈F2n:s⋅y=0},

where the binary dot product is the parity defined in Binary dot product as parity. Then s⊥ is a linear subspace of dimension d=n−1 and has exactly 2d elements. The assertion includes n=1, when s⊥={0} has dimension zero.

Facts & Assumptions

Given: An integer n≥1 and a nonzero binary string s∈F2n.

[F1]

Simon hidden-XOR-period promise: the Simon mask is nonzero.

[F2]

The coordinate vector space over F2: F2n has coordinatewise vector addition and scalar multiplication over the field F2.

[F3]

The quotient Z/2 is the binary field: these quotient operations make F2 a field.

[F4]

Binary dot product as parity: s⋅y=⨁i<n(si∧yi).

[F5]

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.

Proof

1.1givenF1F2F3F4chooseconstructalgebra

Choose the least coordinate j<n with sj=1, which exists by [F1]. For each i≠j, let u(i) have coordinate 1 at i, coordinate si at j, and zero elsewhere. Then s⋅u(i)=si⊕(sj∧si)=si⊕si=0, so every u(i) belongs to s⊥. When n=1, the index set i≠j is empty.

2.1givenF2F3F4F5F6F7step 1.1algebra

For any y∈s⊥, the equation s⋅y=0 and sj=1 give yj=⨁i≠j(si∧yi); hence y=∑i≠jyiu(i), checking each coordinate. Conversely, distributing [F4] over the finite sum gives s⋅(∑ciu(i))=∑ci(s⋅u(i))=0, so the span equals s⊥ and makes it a subspace by [F5] and [F7]. For any injective finite list bt=u(it) from this set, the indices it≠j are distinct, and coordinate it of ∑rcrbr is exactly ct. 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].

3.1givenF2F8step 2.1algebra∎

The independent spanning set from step 2.1 is a basis by [F8], and has exactly n−1=d elements, so dim⁡s⊥=d. Its coefficient map is bijective by the coordinate formula and independence, so ∣s⊥∣=2d because there are 2d binary coefficient lists. For n=1, the empty list gives only 0, and the same count is 20=1.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

One Simon Fourier-sampling sample

Definition

Input: Integers n≥1, m≥n−1, and ordinary access through the Standard bit-flip query convention to a total function satisfying Simon hidden-XOR-period promise. Prepare an ordered n-qubit address register and m-qubit target register, both in their zero computational-basis states.

Instructions:

  1. Apply the exact one-qubit Hadamard gate to every address wire, producing H⊗n∣0n⟩, and leave the target at ∣0m⟩.
  2. Apply the standard bit-flip oracle Uf∣x⟩∣z⟩=∣x⟩∣z⊕f(x)⟩ 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 Iv(X)=PvXPv, where Pv=Iaddress⊗∣v⟩⟨v∣, 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 Pv.
  3. Apply H⊗n to the address register and measure it in the computational basis. Return the observed n-bit string y as one sample row.

Every branch uses exactly one oracle query and 2n 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.

DefinitionDefinition: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Random Simon-oracle distribution for a classical lower bound

Definition

Fix n≥1 and m≥n−1, and put L=2m and C=2n−1. Choose s uniformly from the 2n−1 nonzero binary masks. Let Cs be the set of address pairs {x,x⊕s}. Conditional on s, choose uniformly an injection λ:Cs→{0,1}m and define the total oracle fs,λ(x)=λ({x,x⊕s}).

The sample space consists of all pairs (s,λ) with equal weight. There are C cosets and L≥C labels, so each s admits exactly L(L−1)⋯(L−C+1) injections; this number does not depend on s. Thus the marginal on s is uniform and the conditional label assignment is uniform without replacement.

Facts & Assumptions

Given: Integers n≥1, m≥n−1, and the hidden-XOR-period promise.

[F1]

Simon hidden-XOR-period promise: a valid Simon function is total and satisfies f(x)=f(y) exactly when y=x or y=x⊕s for its unique nonzero mask.

[F2]

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

1.1givenF1algebra

For every nonzero s, the map x↦x⊕s is a fixed-point-free involution, so its 2n addresses split into C=2n−1 two-element cosets. Since m≥n−1, L=2m≥C, and the number of injections from a C-element set into an L-element set is L(L−1)⋯(L−C+1)>0, the sample space is finite and nonempty.

2.1givenF2step 1.1algebra

Give every pair (s,λ) weight 1/((2n−1)L(L−1)⋯(L−C+1)). 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 s, the induced hidden mask is uniform and, conditional on it, every injection is equally likely.

3.1givenF1step 1.1algebra∎

If x⊕s=y, the two addresses lie in the same coset and receive the same label. Conversely, if fs,λ(x)=fs,λ(y), injectivity of λ gives equal cosets, hence y=x or y=x⊕s. Since s≠0, this is exactly the Simon promise with unique hidden mask s.

TheoremStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Simon query and output measurement produce a coset pair

Statement

For a Simon oracle with hidden nonzero string s, immediately after its one standard query the joint state is

2−n/2∑x∈{0,1}n∣x⟩∣f(x)⟩.

For each output value v in the image of f, the target Lüders instrument has probability 21−n and its conditional joint state factors as

∣x0⟩+∣x0⊕s⟩2⊗∣v⟩,

where x0 is either preimage of v. 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 n≥1, m≥n−1, and unique nonzero hidden string s.

[F1]

Simon hidden-XOR-period promise: every fiber is exactly one pair {x,x⊕s}, and s≠0.

[F2]

Standard bit-flip query convention: the ordinary oracle acts by Uf∣x⟩∣z⟩=∣x⟩∣z⊕f(x)⟩ on the ordered address and target bases.

[F3]

One Simon Fourier-sampling sample: the address is prepared uniformly by H⊗n, queried once, and the target is measured with the branch maps X↦PvXPv for Pv=I⊗∣v⟩⟨v∣.

[F4]

Finite projective measurements: a projective measurement is a finite family of pairwise orthogonal self-adjoint idempotents summing to the identity.

[F5]

Finite POVMs and their outcome law: a POVM is a finite family of nonnegative effects summing to the identity.

[F6]

A non-negative operator has a unique non-negative square root: every nonnegative operator has a unique nonnegative square root.

[F7]

The square-root Lüders maps form an instrument: for a finite POVM (Ev), the square-root maps X↦Ev1/2XEv1/2 form a finite instrument.

[F8]

Finite instruments and conditional states: an instrument assigns branch probability tr⁡(Iv(ρ)) and, on a positive branch, conditional state Iv(ρ)/tr⁡(Iv(ρ)).

[F9]

Instrument outcome weights normalize: for an input density operator, the branch weights of a finite instrument are nonnegative and sum to one.

[F10]

Ordered tensor registers, their inner product, and wire permutations: elementary tensor products use the displayed factor order and product inner product.

[F11]

The computational basis is orthonormal: each computational register basis is orthonormal.

[F12]

Dirac Notation Conversion: ∣w⟩⟨w∣ sends z to ⟨z,w⟩rootw.

[F13]

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.

[F14]

Hadamard character sum on F_2^n: the tensor Hadamard sends ∣0n⟩ to the uniform vector 2−n/2∑x∣x⟩.

[F15]

A unit-vector outer product is a density operator: the outer product of a unit vector is a density operator.

Proof

1.1givenF2F3F10F11F14F15algebra

The Hadamard-character formula [F14] gives H⊗n∣0n⟩=2−n/2∑x∣x⟩. Applying [F2] to this vector and the zero target produces the displayed joint vector Ψ. Its 2n orthogonal terms all have squared coefficient 2−n by [F10]–[F11], so ∥Ψ∥=1 and ∣Ψ⟩⟨Ψ∣ is a density operator by [F15].

1.2givenF3F4F5F6F7F8

For each v, the maps in [F3] have projectors Pv. By [F10]–[F11], computational basis vectors are orthonormal, so the Pv are self-adjoint idempotents, pairwise orthogonal, and sum to the identity. Also ⟨Pvz,z⟩=⟨Pvz,Pvz⟩≥0, 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].

1.3givenF1F3F11constructalgebra

Fix v in the image and let x0 be one preimage. Set wv:=2−n/2(∣x0⟩+∣x0⊕s⟩)⊗∣v⟩. The post-query vector projected into branch v is 2−n/2∑x:f(x)=v∣x⟩∣v⟩=wv by [F1]. The two address basis vectors are distinct and orthonormal by [F1] and [F11].

2.1givenF3F12F13step 1.3algebra

The branch operator is the rank-one map ∣wv⟩⟨wv∣ for the projected vector wv in step 1.3. In the product basis its only nonzero diagonal entries are the two squared coefficients 2−n, by [F12]–[F13]. Thus the branch probability is tr⁡(∣wv⟩⟨wv∣)=21−n. An output outside the image has zero projected vector and therefore zero trace.

3.1givenF1F8F9F15step 1.3step 2.1algebra∎

Dividing the projected vector in step 1.3 by its norm 2(1−n)/2 gives the normalized conditional state in the Statement; it factors into an address vector and the fixed output basis vector ∣v⟩. 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 2n−1 image values by the fiber partition in [F1], and their probabilities sum to one as required by [F9].

TheoremStatement: Literature-sourcedProof: AI-adaptedOpen item page →

F2 row reduction returns the unique Simon mask

Statement

For n≥1, let Y be a binary (n−1)×n matrix. The algorithm Gaussian elimination over F2 for Simon recovery terminates, returns FAIL exactly when rank⁡(Y)<n−1, and otherwise returns the unique nonzero vector in ker⁡Y. In particular, if the rows are independent and each row yi satisfies yi⋅s=0 for a fixed nonzero Simon mask s, then the returned vector is s. The algorithm uses O(n3) classical bit operations.

Facts & Assumptions

Given: n≥1, a binary matrix Y with n−1 rows and n columns, and, in the Simon case, a nonzero s∈F2n annihilated by each row.

[F1]

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 n−1, and otherwise sets the sole free variable to 1.

[F2]
[F3]

Rank-nullity: dim⁡FV=nullity⁡T+rank⁡T: for a linear map from an n-dimensional vector space, kernel dimension plus rank equals n.

[F4]

Simon hidden-XOR-period promise: the Simon mask s is nonzero.

[F5]

Binary dot product as parity: y⋅s is the parity of the coordinatewise products in F2.

[F6]

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.

[F7]

Classical bit-operation cost: bit-operation cost counts the transitions of the declared finite-alphabet Turing machine, including reading, writing, comparisons, and postprocessing.

[F8]

The coordinate vector space over F2: F2n and F2n−1 are vector spaces of dimensions n and n−1 with coordinatewise operations.

[F10]

The rank of a matrix equals the rank of the linear map x↦Ax: the matrix rank equals the rank of its associated linear map.

[F12]

Binary residue carrier and operations: F2={0,1}, so a one-dimensional F2-space has only the zero vector and its unique basis vector.

[F13]

Row space, column space, nullspace, row rank, column rank and matrix rank: matrix rank is the dimension of the span of its rows.

Proof

1.1givenF1F2F9F13algebra

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 Y are preserved by [F13] and [F9]. The loops visit n columns and at most n−1 pivot rows, with finite row scans, so they terminate.

2.1givenF1F2F6F13step 1.1algebra

At each pivot the selected entry is 1, 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 rank⁡(Y); step 1.1 preserves this rank from the input. The procedure returns FAIL precisely when this rank is below n−1.

3.1givenF1step 1.1step 2.1algebra

If the pivot count is n−1, there is exactly one nonpivot column. Setting its coordinate to 1 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 Y and is nonzero.

4.1givenF2F3F4F5F8F9F10F11F12step 3.1algebra

Whenever rank⁡(Y)=n−1, the associated map has rank n−1 by [F10] and domain dimension n by [F8]; rank-nullity [F3] gives a one-dimensional kernel. A basis of that kernel has one vector u, so every vector is cu by [F11]; [F12] gives c∈{0,1}, hence u 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 s, so [F5] and [F9] give s∈ker⁡Y, and [F4] gives s≠0; thus the output is s.

5.1givenF1F7algebra∎

Store the n−1 rows consecutively on an input work tape. To find pivots, a multitape machine may scan the whole O(n2)-bit matrix once for each of at most n columns; this costs O(n3) transitions including head movement. For each of at most n−1 pivots, copy its n bits to a work tape, then scan each of at most n−2 other rows and XOR the copied pivot row into it when required; each scan and row update costs O(n) transitions, so all row operations cost O(n3). Swaps, pivot bookkeeping, and back-substitution require at most O(n3) further transitions under the same scan representation. The finite-alphabet multitape convention [F7] therefore gives the stated O(n3) classical bit cost.

TheoremStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Classical randomized Simon search needs exponential queries

Statement

Let n≥8, N=2n, and m≥n−1. Consider algorithms that know n,m and receive only classical query access to the promised oracle f; no truth table, description, or other information depending on f is supplied. Every randomized algorithm in this model that outputs the unique nonzero Simon mask with success probability at least 2/3 on every promised oracle must use more than ⌊2n/2/4⌋ queries in the worst case. Consequently the classical randomized query complexity in this oracle-only model is Ω(2n/2). 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 q, n≥8, and output width m≥n−1.

[F1]

Random Simon-oracle distribution for a classical lower bound: s is uniform among nonzero masks and coset labels are assigned uniformly by an injection into the m-bit outputs.

[F2]

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 n,m and earlier replies, but receive no additional f-dependent input.

[F3]

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

1.1givenassume-contraalgebra

Assume, for contradiction, that q≤⌊N/4⌋. Put S=N−1 and B=(q2).

2.1givenF2F3step 1.1algebra

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 q queries are distinct.

2.2givenstep 1.1algebra

The assumption in step 1.1 gives B≤q2/2≤N/32. Hence S−B≥31N/32−1>0, since N=2n≥256.

3.1givenF1F2step 2.1step 2.2algebra

Consider a collision-free transcript of t≤q queries. A mask is inconsistent with it only if it is the XOR difference of a pair of queried addresses, so at most (t2)≤B masks are excluded and at least S−B remain. For each remaining s, the queried addresses lie in distinct s-cosets. Write (L)t=L(L−1)⋯(L−t+1), where L=2m and C=2n−1. For a specified ordered list of t distinct replies, the number of injections extending those assignments is (L−t)C−t out of (L)C total injections, giving likelihood 1/(L)t, independent of s. 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.

4.1step 3.1algebra

At the jth fresh query, a collision with a previous address xi requires s=xj⊕xi. There are at most j−1 candidate masks, and after any collision-free transcript at least S−B masks remain equally likely by step 3.1. Thus the probability that the first collision occurs at query j is at most (j−1)/(S−B). Summing over j=2,…,q bounds the total collision probability by ∑j=2q(j−1)/(S−B)=B/(S−B).

5.1F1step 3.1step 4.1algebra

On a collision-free transcript, the deterministic final guess is correct with probability at most 1/(S−B), 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 B/(S−B)+1/(S−B)=(B+1)/(S−B).

6.1givenF3step 2.2step 5.1algebra

By steps 1.1 and 2.2, with S−B>0, (B+1)/(S−B)≤(N/32+1)/(31N/32−1)<2/3. The strict inequality is equivalent to 5<59N/32, which holds because N≥256. Thus every fixed random tape has average success strictly below 2/3 under the finite oracle distribution.

7.1givenF1F3step 6.1discharge-contradiction∎

Averaging over the algorithm's finite random tapes keeps its average success below 2/3. But success at least 2/3 on every promised function implies average success at least 2/3 under [F1], since every function in that distribution is promised. This contradiction proves q>⌊N/4⌋ and hence the stated Ω(2n/2) lower bound.

TheoremStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Simon samples uniformly from s-perp

Statement

For every Simon hidden nonzero string s∈{0,1}n, the one-sample algorithm returns a string uniformly distributed on

s⊥:={y∈{0,1}n:s⋅y=0}.

The set s⊥ has 2n−1 elements. Conditional on the measured output value f(x0), the amplitude of y is 2−(n−1)/2(−1)x0⋅y when s⋅y=0 and is zero otherwise. Thus the outcome law is independent of which output fiber was observed.

Facts & Assumptions

Given: n≥1, the Simon promise, and a fresh one-sample execution.

[F1]

Simon query and output measurement produce a coset pair: conditional on output f(x0), the address state is (∣x0⟩+∣x0⊕s⟩)/2.

[F2]

Hadamard character sum on F_2^n: H⊗n∣x⟩=2−n/2∑y(−1)x⋅y∣y⟩.

[F3]

Binary dot product as parity: x⋅y is the parity ⨁i<n(xi∧yi).

[F4]

One Simon Fourier-sampling sample: after the target branch, the algorithm applies H⊗n to the address and measures in the computational basis.

[F5]

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.

[F6]

The Simon annihilator is an (n−1)-dimensional binary subspace: s⊥ is a subspace of dimension d=n−1 and has exactly 2d elements.

[F7]

The computational basis is orthonormal: the address register's computational basis is orthonormal.

Proof

1.1givenF1F2F3algebra

Apply [F2] to the two terms in [F1]. The amplitude at y is 2−(n+1)/2((−1)x0⋅y+(−1)(x0⊕s)⋅y). By [F3], (x0⊕s)⋅y=(x0⋅y)⊕(s⋅y).

2.1step 1.1F3algebra

If s⋅y=1, the two signs in step 1.1 are opposites and the amplitude is zero. If s⋅y=0, they agree and the amplitude is 2−(n−1)/2(−1)x0⋅y. Thus its squared modulus is 2−(n−1) on every allowed y and zero otherwise.

3.1givenF2F6F7step 2.1algebra

There are 2n−1 allowed strings by [F6]. The vector after the final Hadamards has squared norm 2n−12−(n−1)=1 by step 2.1 and orthonormality [F7]. This also covers n=1, when the only allowed string is 0.

4.1F4F5step 2.1step 3.1algebra∎

The measured vector is unit by step 3.1, so [F5] gives probability 2−(n−1) for each allowed string and zero for every disallowed string. These weights sum to one; the phase depends on x0 but the probabilities do not. Thus every fresh execution has the same uniform sample law regardless of the observed coset.

DefinitionDefinition: Literature-sourcedProof: Not applicableOpen item page →

Simon independent-sample rank process

Definition

Fix integers n≥1 and m≥n−1, and fix one total oracle f:{0,1}n→{0,1}m satisfying the Simon hidden-XOR-period promise, with its hidden nonzero mask s. Put d=n−1 and use the coordinate vector space F2n of The coordinate vector space over F2. Start with an empty ordered list of accepted rows and V0={0}=span⁡(∅). On each round, reset both registers and run a fresh One Simon Fourier-sampling sample for this same fixed oracle f. Its measurement outcomes are independent across these freshly initialized executions: every finite R-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 y. At current rank k, let Vk be the span of the k accepted rows. If y∉Vk, append y and set Vk+1:=span⁡F2(Vk∪{y}); if y∈Vk, discard it and leave the list and span unchanged. Stop once the span has dimension d.

The sample law Simon samples uniformly from s-perp places every row in s⊥, and The Simon annihilator is an (n−1)-dimensional binary subspace proves that this subspace has dimension d, 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.

TheoremStatement: Literature-sourcedProof: AI-adaptedOpen item page →

Simon rank growth probability

Statement

Let d=n−1 and consider a finite history with k<d accepted rows in the Simon rank process. These rows are independent by the acceptance rule, so the current rank is k. The next independent sample increases the rank with probability

pk=1−2k−d≥12.

Writing qk=2k−d, for each fixed rank-k history and every r∈N, let Ak,r be the event, in the finite continuation experiment of the next r fresh samples, that all r fail to raise rank. For M≥1, let Wk,M on the finite M-sample continuation experiment be the number of samples up to the first rank increase, capped at M, with value M if no increase occurs in that prefix. Then

Pr⁡(Ak,r)=qkr,

and the expected truncated waiting count is

E[Wk,M]=∑j=0M−1qkj≤1pk≤2.

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, d=n−1, and a finite history with k<d accepted rows.

[F1]

Simon independent-sample rank process: the accepted rows span Vk⊆s⊥, and fresh independent Simon samples are taken until rank d.

[F2]

Simon samples uniformly from s-perp: a fresh sample is uniform on s⊥.

[F3]

The Simon annihilator is an (n−1)-dimensional binary subspace: s⊥ has dimension d and 2d elements.

[F4]

The coordinate vector space over F2 and Binary residue carrier and operations: coefficient lists are in F2k, with each coordinate chosen from {0,1}.

[F5]
[F9]

Finite probability spaces, outcome weights, events, and event probabilities: every finite-prefix outcome space has nonnegative weights summing to one.

[F10]

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.

[F11]

Expectation of a real random variable on a finite probability space: expectation is the finite sum of value times outcome weight.

Proof

1.1givenF1F4F5F6F7F8algebra

By [F1], each accepted row was outside the span of its predecessors. In a zero linear combination, if the last nonzero coefficient were 1, that row would be a combination of its predecessors, contradicting acceptance; since the only nonzero scalar is 1, this proves inductively that the accepted list is independent by [F6]. It spans Vk by [F7], hence is a basis by [F8]. The coefficient map from F2k to Vk is injective by independence and surjective by span; [F4] gives 2k possible coefficient lists, so ∣Vk∣=2k.

2.1givenF1F2F3step 1.1algebra

By [F2]–[F3], samples are uniform on the 2d elements of s⊥, and [F1] gives Vk⊆s⊥. Exactly 2k lie in Vk by step 1.1, so the probability the next sample is accepted is (2d−2k)/2d=1−2k−d=pk, while the failure probability is qk=2k−d≤1/2.

3.1givenF1step 2.1algebra

Condition on any rank-k history and use the finite r-sample continuation experiment. Let Ak,r be the event that every one of those r samples lies in the current span Vk. On this event the span remains Vk throughout; by freshness, each conditional failure probability is qk, so multiplying the finite conditional probabilities gives Pr⁡(Ak,r)=qkr. For r=0, Ak,0 is the whole one-outcome empty continuation and has probability 1=qk0.

4.1givenF9F10F11F12step 3.1algebra∎

For each finite horizon M, the explicitly defined Wk,M is a function on the finite experiment by [F9]–[F10]. For every 0≤j<M, the event {Wk,M>j} is the event Ak,j after projection to its first j samples, so Wk,M=∑j=0M−11Ak,j. The expectation definition [F11] and step 3.1 give E[Wk,M]=∑j=0M−1qkj. Since 0≤qk≤1/2, [F12] bounds these partial sums by 1/(1−qk)=1/pk≤2.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Budgeted Simon recovery with explicit failure branch

Definition

Input: A promised Simon oracle with n≥1, output width m≥n−1, and a supplied rational failure tolerance δ=a/b with positive binary integers a<b. Set d=n−1.

Instructions:

  1. If d=0, return the unique nonzero one-bit string 1 immediately, using zero queries.
  2. Otherwise form u=2db by binary shift-and-add multiplication, divide u by a using binary long division u=ha+r with 0≤r<a, and set M=h if r=0 and M=h+1 otherwise. Start with an empty reduced row-echelon basis.
  3. For at most M 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 d.
  4. If the basis reaches rank d, form the (n−1)×n matrix of its rows, call Gaussian elimination over F2 for Simon recovery, and output the returned vector. If all M trials are used before rank d is reached, return FAIL.

Every execution has at most M oracle queries. Each sample uses 2n Hadamard gates and two finite measurements; no controlled or inverse query is used. Under the Classical bit-operation cost model, classical basis maintenance costs O(Mn2) bit operations, the final row reduction costs O(n3), and computing M by schoolbook integer arithmetic costs O((B+log⁡n)2) bit operations, where B is the total binary input length of a,b. The total classical bit bound is therefore O(Mn2+n3+(B+log⁡n)2). The correctness and failure bound are proved in Simon recovery succeeds with probability at least 1-delta.

TheoremStatement: Literature-sourcedProof: AI-adaptedOpen item page →

Simon recovery succeeds with probability at least 1-delta

Statement

Fix a Simon oracle with n≥1, let d=n−1, and let δ∈Q∩(0,1). The unbounded rank-collection process terminates almost surely in the sense that its finite-prefix tail probability Pr⁡(T>R) tends to zero as R→∞; its expected query cost, defined as the supremum over finite query prefixes, is at most 2d. For the finite algorithm with M=⌈2d/δ⌉, the probability of returning the hidden mask is at least 1−δ, and its worst-case query count is at most M=O(n/δ). For fixed constant δ, the query count is O(n). The finite algorithm's classical postprocessing has bit cost O(Mn2+n3+(B+log⁡n)2) when δ=a/b is supplied in binary with total numerator/denominator length B.

Here the tail probabilities are computed from the finite prefix experiments of the rank process. When d≥1, the induced stopping-time law assigns mass Pr⁡(T=t)=Pr⁡(T>t−1)−Pr⁡(T>t) to t≥1 and mass lim⁡RPr⁡(T>R) to T=∞; the proof shows the latter is zero. When d=0, T=0 and the process is already complete. No measure on an infinite execution-history space is assumed.

Facts & Assumptions

Given: A fixed promised Simon oracle, n≥1, d=n−1, and a rational δ∈(0,1).

[F1]

Simon independent-sample rank process: samples are fresh and independent, one query is made per sample, and the process stops at rank d.

[F2]

Simon rank growth probability: at every rank k<d, a new sample raises rank with probability pk≥1/2, and the finite-prefix expected waiting count at that rank is at most 2.

[F3]

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.

[F4]

Budgeted Simon recovery with explicit failure branch: the cap is M=⌈2d/δ⌉, rank d returns a kernel solution, and a missing rank at the cap returns FAIL.

[F5]

F2 row reduction returns the unique Simon mask: full-rank independent rows in s⊥ yield the unique nonzero kernel vector s.

[F6]

Finite probability spaces, outcome weights, events, and event probabilities: each finite-prefix experiment has a finite outcome set with nonnegative weights summing to one.

[F7]

Markov's inequality on a finite probability space: for a nonnegative variable on a finite probability space and threshold a>0, Pr⁡(X≥a)≤E[X]/a.

[F9]

Classical bit-operation cost: classical bit work is measured by transitions of the stated finite-alphabet Turing-machine model.

Proof

1.1givenF1F4algebra

If d=0, the unique nonzero element of F21 is 1, so the budgeted algorithm returns the correct mask with zero queries. The rank process has already reached its target rank zero.

1.2givenF1F2F3algebra

Suppose d≥1. For each finite horizon R, use the finite R-round experiment of [F1] and let QR count the samples actually taken before reaching rank d, capped at R. Decompose QR=∑k<dVk,R, where Vk,R counts the trials spent at rank k and is zero if that rank is not reached within the prefix. Condition on each finite history at the first time rank k is reached, with r≤R rounds remaining. If r=0, its remaining contribution is zero; if r≥1, the rank-growth theorem [F2] gives expected truncated wait at most 2 on that continuation. If rank k is not reached, the contribution is zero. Summing over these disjoint first-arrival histories gives E[Vk,R]≤2 for every k<d, hence E[QR]≤2d. Since QR is the query count on the finite R-round prefix, [F3] gives expected query cost at most 2d.

2.1givenF1F2step 1.2F6algebra

Let AR be the event, in the finite R-round experiment, that the rank is still below d after all R samples. On AR the process has used all R queries, so QR=R and RPr⁡(AR)≤E[QR]≤2d. Therefore Pr⁡(T>R):=Pr⁡(AR)≤2d/R for every R≥1, which tends to zero. This tail argument uses only finite-prefix events and expectations.

2.2givenF4F6F7step 1.2algebra

In the finite M-sample experiment, failure is the event AM that rank remains below d after all M samples. On AM, QM=M, so Pr⁡(FAIL)≤Pr⁡(QM≥M). The variable QM is nonnegative and bounded, and Markov's inequality [F7] gives Pr⁡(FAIL)≤E[QM]/M≤2d/M≤δ.

3.1step 1.1step 2.1F4F6algebra

For d≥1, let AR be as in step 2.1, with A0 the whole zero-round experiment. By consistency of finite-prefix probabilities, extending the (t−1)-round experiment to t rounds partitions At−1 into histories that first reach rank d at round t and histories in At. Define the mass at T=t to be Pr⁡(At−1)−Pr⁡(At); these masses are nonnegative. Their partial sums telescope to 1−Pr⁡(AR), and step 2.1 makes the residual mass at infinity zero. The resulting countable masses sum to one. For d=0, step 1.1 gives T=0. Thus the process terminates almost surely without assuming a measure on infinite histories.

4.1givenF1F2F4F5F9step 2.2algebra∎

If rank d is reached, all collected rows are independent and lie in s⊥ by [F1]–[F2]. The recovery routine therefore returns s by [F5]. Combining this with step 2.2 proves success probability at least 1−δ. The finite cap makes at most M sampling rounds. In each round, reducing an incoming row against at most d pivot rows and clearing a new pivot from at most d−1 rows requires O(n2) bit operations; so basis maintenance costs O(Mn2). The final reduction costs O(n3) by [F5]. To compute M, the algorithm multiplies binary integers of total length O(B+log⁡n) and performs long division on integers of at most that length; the schoolbook multiplication, comparisons, shifts, and long division each use O((B+log⁡n)2) 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.

Sources