Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-generatedPipeline-generatedjudge pass (gpt-6-luna)verified 2026-10-22 (gpt-6.1-sol)
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.

Exact small-entry matrix algebra in quadratic logarithmic workspace

Statement

Let n≥1, and let A be an integer matrix with at most n rows and at most n columns, all entries in {−1,0,1}. Deterministic algorithms compute its rational rank and an independent set of original rows in time polynomial in n and sequential Turing workspace O(n2log⁡(n+2)) bits. The determinant of any specified square submatrix is computable within the same bounds. If A has b≥1 columns and rational rank b−1, a primitive integer generator of its one-dimensional rational kernel is computable within those bounds, with either choice of its overall sign. The zero-row and zero-column matrices and the 0×0 determinant convention are included.

Facts & Assumptions

Given: The bounded-size small-entry matrix of the Statement; all integers are binary encoded and the input can be reread.

[F2]

Gaussian elimination over a field consists of pivot selection, row interchange, nonzero pivot division and row addition. (Gaussian elimination reduces every finite matrix over a field to row echelon form)

Proof

1.1givenF1F3construct

Every d×d minor, 0≤d≤n, has absolute determinant at most d!≤(n+2)n by [F1], interpreting the empty determinant as 1. Put B=(n+2)n, M=16(n+2)4, LM=lcm⁡(1,…,M) and PM=∏p≤M, p primep. All these are integers; only B and the small bound M, not the complete integers LM,PM, will be stored.

2.1F3step 1.1algebra

The bound LM≥2M−1/M is elementary. For N=M−1 and any 0≤j≤N, counting multiples of p,p2,… in factorials gives vp(Nj)=∑a≥1(⌊Npa⌋−⌊jpa⌋−⌊N−jpa⌋). Each summand is zero or one and vanishes for pa>N. Thus this valuation is at most ⌊log⁡pN⌋, at most the exponent of p in LM. Unique factorization makes every (Nj) divide LM. The sum of the M binomial coefficients is 2M−1, so at least one is at least 2M−1/M, proving the bound.

3.1F3step 1.1step 2.1constructalgebra

The exponent of every prime in LM is at most log⁡2M. Consequently LM≤PMlog⁡2M and log⁡2PM≥M−1−log⁡2Mlog⁡2M. For the chosen M, log⁡2M=4+4log⁡2(n+2)≤4(n+2) and M−1−log⁡2M≥M/2. The displayed lower bound is therefore at least 2(n+2)3, which is greater than nlog⁡2(n+2)+3. Hence PM>8B. Enumerate integers 2,…,M, testing each for primality by trial division up to its square root. There are polynomially many trials on O(log⁡(n+2))-bit integers. Stop the prime stream as soon as its running product Q exceeds 2B; the bound just proved guarantees that this happens by M. Immediately before the last multiplication Q≤2B, so the final product is at most 2BM. The product accumulator thus has O(nlog⁡(n+2)) bits.

4.1F1F2F3step 1.1step 3.1construct

For a specified square submatrix D, compute its determinant modulo each successive prime by [F2]. Every nonzero residue h modulo a prime p is a unit, with an explicit small-space inverse: apply Euclidean descent to (p,h), maintaining ri=sip+tih with initial coefficient pairs (1,0),(0,1) and updates (si+1,ti+1)=(si−1,ti−1)−qi(si,ti). The last nonzero remainder is 1, since a common divisor of p and 0<h<p is 1 by primality. Its coefficient ti is an inverse modulo p. This also constructs Bézout identities for arbitrary integer pairs, and induction gives one for any finite list and its gcd. Thus elimination is over a field; if a pivot cannot be found in a square trailing block, the determinant residue is zero. Row interchanges change its sign, and otherwise the product of the unscaled pivots gives the determinant. This uses one matrix of O(n2) residues, each with O(log⁡(n+2)) bits, and O(n3) modular operations per prime. Combine each residue r with the previous representative a modulo Q by anew=a+Q((r−a)Q−1 mod p),Qnew=Qp. The inverse exists by [F3] and is computed from Q mod p, so its Euclidean inputs have only O(log⁡(n+2)) bits. After Q>2B, the unique representative in [−B,B] is the integer determinant by step 1.1. Only the current residue matrix, the two reconstruction integers and small counters are retained; no list of primes, residues or previous matrices is stored.

4.2F1F2F3step 1.1step 3.1construct

For rank, perform prime-field elimination on the original rectangular matrix over the same prime stream, retaining the largest rank found and the original row indices of a basis attaining it. These indices can be selected during elimination without a transformation matrix: after the first k pivots, the unselected rows have only had combinations of the k selected original rows subtracted, so the next pivot row is independent of them exactly when its remainder is nonzero. The rank equals the largest order of a nonzero minor over either field. To see the needed direction directly, elimination selects r original independent rows and r pivot columns; their r×r submatrix becomes triangular with nonzero pivots after invertible row operations, so it has nonzero determinant. Conversely, r+1 rows are dependent and multilinearity makes every minor of that order zero. A nonzero modular minor is a nonzero integer minor, so every modular rank is at most the rational rank r. If r>0, choose any nonzero r×r integer minor d. If all sampled ranks were less than r, every sampled prime would divide d. Their product Q>2B would divide d, contradicting 0<∣d∣≤B. Therefore the maximum modular rank is exactly r, and its retained original rows form a rational row basis. For r=0 every entry and modular rank is zero.

5.1F1F3step 4.1step 4.2construct

If the number of columns is b and the rank is b−1, let R consist of the b−1 independent original rows from step 4.2. For 1≤j≤b, compute wj=(−1)j+1det⁡Rj^ by step 4.1, retaining the vector w. Some cofactor is nonzero because R has full row rank. Expanding the determinant of the matrix obtained by adding any row of R as a duplicate row gives Rw=0 by [F1]. Every row of A lies in the rational row span of R, hence Aw=0. Divide w by the positive gcd of its entries; the result is primitive. If a rational multiple cu of a primitive integer vector u is integral, a Bézout identity ∑jajuj=1 gives c=∑jaj(cuj)∈Z, so it generates all integer points on that line. Either overall sign may be selected. For b=1, R is empty and its one empty cofactor is 1, as required.

6.1F3step 3.1step 4.1step 4.2step 5.1algebra∎

All counters bounded by M have O(log⁡(n+2)) bits. The residue matrix uses O(n2log⁡(n+2)) bits, the row-index list O(nlog⁡(n+2)) bits, and each reconstructed determinant has O(nlog⁡(n+2)) bits. The at most n retained cofactors therefore also use O(n2log⁡(n+2)) bits; the same residue matrix storage is reused for each one. Trial division, at most M prime eliminations per determinant and at most n cofactor determinants take polynomially many arithmetic operations on polynomial-length integers. Binary multiplication and long division take polynomial time; the Euclidean descent takes O(ℓ) divisions on ℓ-bit inputs because after two nonzero remainder steps the remainder is at most half its previous value. The coefficient-tracking algorithm is needed computationally only for inverses with inputs less than p≤M. It has O(log⁡p) updates and quotients at most p, so even the crude coefficient bound obtained by multiplying 2p per update has O((log⁡p)2) bits. Thus these small inverses need only O((log⁡(n+2))2) extra workspace, which fits the asserted bound. Normalizing the cofactor vector needs only ordinary remainder gcds on O(nlog⁡(n+2))-bit integers; the existential Bézout identity used to prove primitivity need not be computed or stored. All integer multiplications and divisions can be done by the digit-by-digit algorithms using a constant number of buffers of the operand/output lengths. Thus reconstruction, inversions, gcd normalization, rank and kernel calculations all have polynomial bit time and the asserted workspace. Empty matrices are handled directly by rank zero and empty determinant one. This proves all claims.

Depends on

Used by

Dependency tree · two levels

58 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