Eventual Nonnegativity of a Matrix Is in P

Julian D’Costa

There is a deterministic polynomial-time algorithm deciding, for a square rational matrix A, whether AnA^{n} is entrywise nonnegative for every sufficiently large integer n.

What was already known

D’Costa, Ouaknine and Worrell established decidability in 2024 using potentially exponentially many residue classes. The new argument checks one arithmetic progression and computes grouped spectral coefficients without constructing a splitting field or taking the large matrix power.

How the result developed

  1. 20 Sept 2026 · Manuscript date [1]

    Julian D’Costa reported the AI-assisted result in this manuscript.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvementAI-led
ImportanceNotable
Technical verificationPartial
Human understandingFew

AI involvement

Da Costa credits the model with the eventual-nonnegativity result. The results in this paper were obtained by the OpenAI model GPT-5.6 Sol on 2nd August 2026. He takes responsibility for the correctness, originality and exposition.

Importance

The result strengthens decidability to polynomial-time complexity for eventual nonnegativity of a whole rational matrix. Ultimate positivity of one arbitrary linear recurrence remains a different, open problem.

Technical verification

The pinned project reports completed Lean proofs of Theorem 10, its torsion-killing exponent, the Galois-orbit degree bound and the Liouville separation bound. Summary.lean restates the criterion with rational matrices and standard Mathlib vocabulary and checks the three standard axioms. Theorem 1’s polynomial-time algorithm and its bit-complexity analysis are expressly outside this formalization.

Formal checking

The pinned project reports completed Lean proofs of Theorem 10, its torsion-killing exponent, the Galois-orbit degree bound and the Liouville separation bound. Summary.lean restates the criterion with rational matrices and standard Mathlib vocabulary and checks the three standard axioms. Theorem 1’s polynomial-time algorithm and its bit-complexity analysis are expressly outside this formalization.

Checker
Lean kernel, as reported by the project
Scope
The exact structural criterion and selected algebraic inequalities; the end-to-end polynomial-time algorithm is outside formalization.
Basis
Reported by the linked checker

Human understanding

The paper describes grouping eigenvalues and avoiding an exponentially large splitting field. Its disclosure attributes the results to the model; it does not document a separately attributed human reconstruction of the central algorithmic reasoning. Few records that evidence gap.

Other useful sources

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

Added the historical source-reviewed eventual matrix nonnegativity contribution with precise AI attribution and checking scope.