Alphabeta Math
ExampleConstruction: AI-adaptedVerification: AI-generatedPipeline-generatedjudge pass (gpt-6-luna)
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Shor factoring preprocessing and retry branches

Example

The following exact inputs exercise the early return and retry branches of Shor factoring with verified output and bounded outer retries: the even input 14, the perfect power 81=34, the nonunit choice a=5 for N=15, and the unit samples (N,a)=(35,11) and (15,14). For these two retry executions, take the order-finding subroutine to return candidate q=3 for (35,11) and candidate q=2 for (15,14).

Facts & Assumptions

Given: The stated Shor algorithm, the displayed residue samples, and the chosen order-finding candidate outputs q=3 for (N,a)=(35,11) and q=2 for (N,a)=(15,14).

[F1]

The even precheck returns 2 for even composite N≥4. When the root-search branch is reached on a perfect-power input, it detects an exact representation N=ce with c≥2 and e≥2, and returns that representation's base c as a proper factor (Shor factoring with verified output and bounded outer retries, Even and perfect-power preprocessing returns a proper factor).

[F2]

A nonunit sample in {1,…,N−1} gives a proper gcd factor; conditional on gcd one, it is a unit (Random residue gcd branch for factoring, For n≥1, [a]n is a unit if and only if gcd⁡(a,n)=1).

[F3]

A period candidate is continued only when it is even, between 2 and N, and passes aq≡1(modN); 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).

Verification

1.1givenF1algebra

For N=14, the even branch checks 1<2<14 and 14 mod 2=0, so it returns the proper factor 2 before sampling. For N=81, the root search starts at e=2 and finds 92=81; since 1<9<81, that branch returns 9. The alternative representation 81=34 is not reached after this earlier return.

1.2givenF2F4algebra

For N=15 and sample a=5, gcd⁡(5,15)=5, which is strictly between 1 and 15 and divides 15; the nonunit branch returns 5 without order finding.

1.3givenF3F4algebra

For N=35 and a=11, gcd⁡(11,35)=1. The powers satisfy 111≡11, 112≡16, and 113≡1(mod35), so the true order is 3, agreeing with the chosen candidate q=3. This candidate is odd and therefore fails the algorithm's even-period check; this attempt continues.

2.1givenF3F4algebra∎

For N=15 and a=14, gcd⁡(14,15)=1 and 142≡1(mod15) while 14≢1, so the true order is 2, agreeing with the chosen candidate q=2. The half-power is z=14≡−1(mod15), giving gcd⁡(z−1,15)=gcd⁡(13,15)=1 and gcd⁡(z+1,15)=gcd⁡(15,15)=15. Neither passes the strict check, so the algorithm continues.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

53 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources