Every square complex matrix is similar to a Jordan form matrix
ProvedHefferonLinAlg.jordan_form_existsLet be an matrix over . Then has a Jordan form: there are a block count , nonempty block sizes , eigenvalues , a reindexing of the coordinates by the block index type, and an invertible matrix , such that is the block-diagonal Jordan matrix built from those blocks, transported along . Equivalently: every square complex matrix is similar to a matrix in Jordan form. This is Hefferon's Theorem 2.8 exactly as he states it — the existence half of the canonical form. Mathlib has the generalized eigenspace decomposition but no Jordan canonical form, so this is a genuine formalization target.
import Mathlib import Definitions.Def_HefferonLinAlg_jordan open Matrix
namespace HefferonLinAlg
theorem jordan_form_exists
{n : ℕ} (A : Matrix (Fin n) (Fin n) ℂ) : HasJordanForm A := by
sorry
end HefferonLinAlgRead-back
What the Lean code literally says, in plain math · claude-opus-5
Read-back: HefferonLinAlg.jordan_form_exists
For every natural number (an implicit argument, so it ranges over all of including ) and every square matrix of size with entries in , indexed by rows and columns drawn from , the following holds: there exist
- a natural number (the number of blocks, with allowed a priori),
- a function assigning a size to each block, and
- a function assigning a scalar to each block,
such that both of the following are true.
(a) Every block is nonempty: for all . (Sizes are natural numbers, so this rules out and nothing else; the need not be distinct or ordered, and the need not be distinct either.)
(b) There is a reindexing under which is similar to the corresponding block-diagonal Jordan matrix. Precisely, let
be the disjoint-union index set of the blocks (so ), and let be the matrix over that is block-diagonal with -th diagonal block the matrix
i.e. on the diagonal and on the subdiagonal (ones below the diagonal), and whenever . Then the claim is that there exists a bijection
(the existence of such a bijection already forces ) such that, writing for the matrix obtained by transporting along , namely , we have that is similar to in the following explicit sense: there exists an matrix over whose determinant is a unit of (equivalently, , since is a field) and which satisfies the equation in this exact orientation
where denotes the matrix-inverse operation, which is a total function in this formalization (returning the zero matrix when the determinant is not invertible) but which, under the stated unit-determinant hypothesis, is the genuine two-sided inverse of .
Scope and edge cases. The statement is an existence claim only: it asserts nothing about uniqueness of , of the multiset of pairs , or of or ; no ordering, grouping, or distinctness of blocks or eigenvalues is imposed; and the are not independently required to be eigenvalues, roots of the characteristic polynomial, or otherwise related to except through the similarity equation above. The auxiliary notion of the multiset of block data is defined in the accompanying definitions file but does not appear in this statement. The degenerate case is included, where is the empty matrix and the claim is satisfiable with (an empty family of blocks, empty index set , and the empty bijection); the hypothesis-free form of the theorem means there are no assumptions that could be vacuously satisfied — the quantifier over ranges over every complex square matrix of every size. The scalar field is fixed to in this statement, even though the underlying definitions of similarity, Jordan blocks, and Jordan matrices are stated over an arbitrary commutative ring. The declaration is a theorem whose proof is not supplied in this file.
Confirmed by the mission captain (proposal self-audit).