Alphabeta Math
LemmaStatement: AI-adaptedProof: 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.

Even and perfect-power preprocessing returns a proper factor

Statement

For a promised composite N≥4, the even branch and the finite integer-root precheck in Shor factoring with verified output and bounded outer retries return a proper factor whenever they return. If N is even, the even branch returns 2. If N=be for integers b≥2 and e≥2 and N is odd, the root-search branch is reached, detects an exact-power representation N=cf with c≥2 and f≥2, and returns its base c as a proper factor. Writing n=⌈log⁡2N⌉, its schoolbook bit cost is O(n5).

Facts & Assumptions

Given: A composite integer N≥4, n=⌈log⁡2N⌉, and the even/perfect-power preprocessing instructions in Shor factoring with verified output and bounded outer retries.

[F1]

Divisibility means d∣N exactly when N=dq for an integer q (Divisibility in Z: d∣a when a=dq for some integer q); integer powers are natural monoid powers with b0=1 and be+1=beb (Powers gn: natural exponents in a monoid and integer exponents in a group, with g0=e).

[F2]

Integer order is translation invariant, products of positive integers are positive, and the natural embedding preserves order (The integers form a totally ordered ring, The integers form a commutative ring, The naturals embed in the integers).

[F3]

The binary search and exponent range are those in Shor factoring with verified output and bounded outer retries; its capped repeated-squaring powers use integers at most N+1. Schoolbook multiplication of two n-bit integers costs O(n2) bit operations (Shor factoring cost-accounting branches).

Proof

1.1givenF1F2algebra

If N is even, 2∣N. Since N≥4, 1<2<N, so the returned integer is a proper factor.

1.2givenF1F2algebra

Suppose the precheck finds N=be with 2≤b≤N and e≥2. Then N=b be−1, so b∣N by [F1]. The power be−1≥2, so N=b be−1≥2b>b; hence 1<b<N and its explicit divisibility verification returns a proper factor.

2.1givenF1F2algebra

Conversely, suppose N=be with b≥2 and e≥2. If N is even, step 1.1 shows that the earlier even branch returns 2, so the root search is not reached. Now suppose N is odd. Then the root-search branch is reached, and 2e≤be=N≤2n, so e≤n and the loop includes this exponent. If the algorithm has not already returned on an earlier exact-power match in this root search, then for this fixed e, if 2≤x<y, ye−xe=(y−x)∑j=0e−1ye−1−jxj>0, because the factor and every summand are positive by [F2]. Hence x↦xe is strictly increasing, so binary search on [2,N] finds b; capping values above N at N+1 preserves each comparison with N. If the algorithm already returned on an earlier root-search match, that match was itself an exact-power representation of N, and step 1.2 shows that its returned base is a proper factor. Thus the odd perfect-power input returns a proper factor through the root search, while the even case is handled by step 1.1.

3.1givenF3algebra∎

There are at most n exponents and at most n binary-search comparisons per exponent because N≤2n. Each comparison uses at most O(log⁡n) capped multiplications of O(n)-bit integers, hence O(n2log⁡n) bit operations by [F3]. The total is O(n4log⁡n)=O(n5) for n≥2, proving the claimed bound.

Depends on

Used by

Dependency tree · two levels

50 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