A matrix with vanishing trace and determinant squares to zero
ProvedDiaz.sq_eq_zero_of_trace_eq_zeroCayley--Hamilton in dimension two: trace zero and determinant zero force .
For a matrix over a commutative ring with and , one has .
Why. The Cayley--Hamilton relation in size two reads ; under the two hypotheses it collapses to . The Lean proof simply verifies the four entries directly from the two scalar hypotheses, so no Cayley--Hamilton machinery is invoked.
Role. In Carlo Perassi's proof of the uniqueness of the obstruction this converts the four vanishing identities produced by coefficient comparison into the square-zero conditions that pin down the pencil , and hence identify the singular matrix as with algebraic. Together with it also shows .
Source: Carlo Perassi, the Cayley--Hamilton step in his proof of the uniqueness of the obstruction, unpublished apart from this node; the nilpotent pencil it yields is stated after Theorem 4.2 (Uniqueness of the obstruction) of his companion note to https://github.com/carlok/diaz-modulus-lean (version 1.9, 25 September 2026, GitHub release note-v1.9). Classical; no novelty is claimed.
import Mathlib open ComplexConjugate
theorem Diaz.sq_eq_zero_of_trace_eq_zero {R : Type*} [CommRing R] (M : Matrix (Fin 2) (Fin 2) R)
(htr : Matrix.trace M = 0) (hdet : M.det = 0) : M * M = 0 := by sorry