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 , and let be an integer matrix with at most rows and at most columns, all entries in . Deterministic algorithms compute its rational rank and an independent set of original rows in time polynomial in and sequential Turing workspace bits. The determinant of any specified square submatrix is computable within the same bounds. If has columns and rational rank , 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 determinant convention are included.
Statement references
For , the determinant over a commutative ring by the Leibniz formula, and for a real matrix — the determinant is an integer Leibniz sum.
Gaussian elimination reduces every finite matrix over a field to row echelon form — elimination is used only over prime fields.
For coprime positive , every pair of residue classes modulo and has a unique simultaneous class modulo — streamed reconstruction from coprime moduli.
Laplace expansion computes the determinant along every row and every column over a commutative ring — cofactor construction of a null vector.
Facts & Assumptions
Given: The bounded-size small-entry matrix of the Statement; all integers are binary encoded and the input can be reread.
The Leibniz formula has terms in dimension , and Laplace expansion expresses a determinant through its cofactors. (For , the determinant over a commutative ring by the Leibniz formula, and for a real matrix, Laplace expansion computes the determinant along every row and every column over a commutative ring)
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)
Positive integers have unique finite prime factorizations. Coprime residue classes reconstruct uniquely modulo their product, and Euclidean remainder descent computes gcds. The proof below constructs the coefficient identities needed for inverses and primitivity. (The fundamental theorem of arithmetic: every integer is a product of primes, and the factorisation is unique up to order — if with every and prime, then and for some , For coprime positive , every pair of residue classes modulo and has a unique simultaneous class modulo , The Euclidean algorithm: for and the remainder descent from terminates, and the last nonzero remainder is )
Proof
Every minor, , has absolute determinant at most by [F1], interpreting the empty determinant as . Put , , and . All these are integers; only and the small bound , not the complete integers , will be stored.
The bound is elementary. For and any , counting multiples of in factorials gives Each summand is zero or one and vanishes for . Thus this valuation is at most , at most the exponent of in . Unique factorization makes every divide . The sum of the binomial coefficients is , so at least one is at least , proving the bound.
The exponent of every prime in is at most . Consequently and For the chosen , and . The displayed lower bound is therefore at least , which is greater than . Hence . Enumerate integers , testing each for primality by trial division up to its square root. There are polynomially many trials on -bit integers. Stop the prime stream as soon as its running product exceeds ; the bound just proved guarantees that this happens by . Immediately before the last multiplication , so the final product is at most . The product accumulator thus has bits.
For a specified square submatrix , compute its determinant modulo each successive prime by [F2]. Every nonzero residue modulo a prime is a unit, with an explicit small-space inverse: apply Euclidean descent to , maintaining with initial coefficient pairs and updates . The last nonzero remainder is , since a common divisor of and is by primality. Its coefficient is an inverse modulo . 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 residues, each with bits, and modular operations per prime. Combine each residue with the previous representative modulo by The inverse exists by [F3] and is computed from , so its Euclidean inputs have only bits. After , the unique representative in 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.
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 pivots, the unselected rows have only had combinations of the 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 original independent rows and pivot columns; their submatrix becomes triangular with nonzero pivots after invertible row operations, so it has nonzero determinant. Conversely, 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 . If , choose any nonzero integer minor . If all sampled ranks were less than , every sampled prime would divide . Their product would divide , contradicting . Therefore the maximum modular rank is exactly , and its retained original rows form a rational row basis. For every entry and modular rank is zero.
If the number of columns is and the rank is , let consist of the independent original rows from step 4.2. For , compute by step 4.1, retaining the vector . Some cofactor is nonzero because has full row rank. Expanding the determinant of the matrix obtained by adding any row of as a duplicate row gives by [F1]. Every row of lies in the rational row span of , hence . Divide by the positive gcd of its entries; the result is primitive. If a rational multiple of a primitive integer vector is integral, a Bézout identity gives , so it generates all integer points on that line. Either overall sign may be selected. For , is empty and its one empty cofactor is , as required.
All counters bounded by have bits. The residue matrix uses bits, the row-index list bits, and each reconstructed determinant has bits. The at most retained cofactors therefore also use bits; the same residue matrix storage is reused for each one. Trial division, at most prime eliminations per determinant and at most cofactor determinants take polynomially many arithmetic operations on polynomial-length integers. Binary multiplication and long division take polynomial time; the Euclidean descent takes 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 . It has updates and quotients at most , so even the crude coefficient bound obtained by multiplying per update has bits. Thus these small inverses need only extra workspace, which fits the asserted bound. Normalizing the cofactor vector needs only ordinary remainder gcds on -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
- For $n\ge1$, the determinant over a commutative ring by the Leibniz formula, and $|\det A|$ for a real matrix
- Laplace expansion computes the determinant along every row and every column over a commutative ring
- Gaussian elimination reduces every finite matrix over a field to row echelon form
- The fundamental theorem of arithmetic: every integer $n \ge 1$ is a product of primes, and the factorisation is unique up to order — if $\prod_{i<r} p_i = \prod_{j<s} q_j$ with every $p_i$ and $q_j$ prime, then $r = s$ and $q_i = p_{\pi(i)}$ for some $\pi \in \operatorname{Sym}(r)$
- For coprime positive $m,n$, every pair of residue classes modulo $m$ and $n$ has a unique simultaneous class modulo $mn$
- The Euclidean algorithm: for $a \in \mathbb{Z}$ and $b > 0$ the remainder descent from $(a,b)$ terminates, and the last nonzero remainder is $\gcd(a,b)$
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
- Joel Hass, Jeffrey C. Lagarias and Nicholas Pippenger, The Computational Complexity of Knot and Link Problems (standard reference, not scraped)
- Keith Conrad, The Chinese Remainder Theorem (standard reference, not scraped)