Alphabeta Math
LemmaStatement: Literature-sourcedProof: AI-adaptedPipeline-generatedprecheck passjudge pass (gpt-6-sol)audited 2026-09-27
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.

A polynomial-size prime field meets the soundness budget

Statement

Let T≥1 and D≥1 be integers and put N:=max⁡{2, 12TD+1}. Then:

  1. (Existence and size.) There is a prime p with N<p<2N, and every such prime satisfies p>12TD and p<2N≤max⁡{4, 24TD+2}. Hence p=O(TD) and ⌈log⁡2p⌉=O(log⁡(TD)).
  2. (Deterministic search.) Call an integer m with N<m<2N admissible when no integer d with 2≤d≤N divides m. The first admissible m in the order N+1,N+2,…,2N−1 is prime; a search that tests every candidate against every such d performs at most N2 trial divisions and O(N2log⁡2N) bit operations, using no randomness and no primality test.
  3. (Residue arithmetic.) In F:=Z/p addition and multiplication make F a field in which each class has exactly one representative in {0,1,…,p−1}; representatives are stored in ⌈log⁡2p⌉ bits, adding or subtracting two representatives costs O(log⁡p) bit operations and multiplying them costs O(log⁡2p) bit operations. Consequently Horner evaluation of a polynomial of degree at most D at a point of F costs O(D) operations in F, hence O(Dlog⁡2p) bit operations.
  4. (Sampler with point mass at most 2/p.) Let k:=2⌈log⁡2p⌉, let U be uniform on {0,1}k and let r be the integer U∈{0,…,2k−1} reduced modulo p. Then Pr⁡[r=a]≤2/p for each a∈{0,…,p−1}, and Pr⁡[r∈S]≤2∣S∣/p for every set S of residues.

Facts & Assumptions

Given: Integers T≥1 and D≥1, N=max⁡{2,12TD+1}, and a uniform string U∈{0,1}k.

[A1]

For every integer n>1 there is a prime p with n<p<2n (Bertrand's postulate).

[A2]

An integer p is prime when p>1 and every positive divisor d of p satisfies d=1 or d=p; an integer n>1 that is not prime is composite, and then n has a positive divisor d with d≠1 and d≠n (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p).

[A3]

For every prime p the operations of addition and multiplication on Z/p make it a field (For every prime p, the two operations on Z/p make it a field).

[A4]

For every positive integer n, each class in Z/n contains exactly one integer r with 0≤r<n, and ∣Z/n∣=n (For n≥1, every class in Z/n has one representative r with 0≤r<n, so ∣Z/n∣=n; while Z/0 is in bijection with Z).

Proof

technique · direct
1.1

Since T,D≥1 we have N≥max⁡{2,13}=13>1, so [A1] with n:=N yields a prime p with N<p<2N. Writing N=max⁡{2,12TD+1} gives p>N≥12TD+1>12TD in both cases of the maximum, and p<2N≤max⁡{4,24TD+2}; since T,D≥1, also 24TD+2≤26TD, so p=O(TD) and ⌈log⁡2p⌉≤log⁡2p+1=O(log⁡(TD)). This is claim (1).

A1givenalgebra
1.2

Let m be an integer with 1<m<2N that is not prime, so m is composite and has a positive divisor d0 with d0≠1 and d0≠m by [A2]. Write m=d0m1; the divisor d:=d0 can be replaced by the smaller of the pair {d0,m1}, so we may take 2≤d≤m. From m<2N≤N2, valid because N≥2, we get m<N, hence d≤N. Therefore every non-prime m with 1<m<2N is inadmissible: admissibility forces primality.

A2givenalgebra
1.3

By [A3] the operations of Z/p make it a field, and p>N≥2 is a positive integer, so by [A4] applied to n:=p every class in Z/p has exactly one representative in {0,1,…,p−1} and the field has exactly p elements. Representatives are integers below 2N, hence below 21+⌈log⁡2N⌉: each occupies at most 1+⌈log⁡2N⌉=O(log⁡N) bits, and schoolbook add/subtract and multiply on such integers cost O(log⁡N) and O(log⁡2N) bit operations.

A3A4algebra
1.4

Let a∈{0,…,p−1} and count the strings of {0,1}k whose integer value U satisfies U≡a(modp); these are exactly the integers in the arithmetic progression a,a+p,a+2p,… below 2k, so there are at most ⌈2k/p⌉≤2k/p+1 of them. Because k=2⌈log⁡2p⌉ gives 2k≥p2, division by 2k yields Pr⁡[r=a]≤1/p+1/p2≤2/p, the last step using p≥2.

A4givenalgebra
2.1

Run the search of claim (2). By step 1.1 the prime p of the interval (N,2N) is one of the candidates N+1,…,2N−1, and it is admissible: a divisor d of p with 2≤d≤N would satisfy d≠p because d≤N<p, and d≠1, contradicting primality. So the scan halts, and by step 1.2 its first admissible candidate is prime. There are at most N−1 candidates and at most N−1 divisors tested for each, so at most N2 trial divisions are performed, each on integers below 2N with O(log⁡N) bits, for O(N2log⁡2N) bit operations in total. This is claim (2).

step 1.1step 1.2algebra
2.2

By step 1.3 each class of Z/p is represented by a unique integer in {0,…,p−1} of O(log⁡N)=O(log⁡(TD)) bits, so one field operation costs O(log⁡2p) bit operations: O(log⁡p) for addition or subtraction of representatives and O(log⁡2p) for a schoolbook product followed by reduction modulo p. Horner's rule evaluates a polynomial of degree at most D with D multiplications and D additions of representatives, that is O(D) field operations or O(Dlog⁡2p) bit operations. Since p<2N≤max⁡{4,24TD+2} by step 1.1, this is O(Dlog⁡2(TD)) bit operations. This is claim (3).

step 1.1step 1.3algebra
2.3

For a set S of residues, Pr⁡[r∈S]=∑a∈SPr⁡[r=a]≤2∣S∣/p by step 1.4, the residues outside {0,…,p−1} being represented by their unique representative in that range. With ∣S∣=1 this reduces to step 1.4, and with S=∅ the bound reads 0≤0. This is claim (4).

step 1.4algebra
3.1

Claims (1)–(4) are steps 1.1, 2.1, 2.2 and 2.3, so for all integers T,D≥1 the interval (N,2N) contains a prime p above the budget 12TD, findable deterministically in O(N2log⁡2N) bit operations, whose residue field admits O(log⁡2p)-cost arithmetic and a 2/p-point-mass sampler. Every bound is polynomial in T and D, which is the content of the statement. ∎

step 1.1step 2.1step 2.2step 2.3

Depends on

Used by

Dependency tree · two levels

33 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