AFTD Auto-Formalizing Theoretical Domains

noncommutative_rank

def

For an explicit field F, implicit dimensions a and b, an arbitrary indexing type ι, and a family of rectangular matrices A : ι → Matrix (Fin a) (Fin b) F, noncommutative_rank F A is the infimum sInf of the set of natural numbers k for which there exist an F-subspace U of Fin b → F and an F-subspace V of Fin a → F such that for all i : ι, Submodule.map (A i).mulVecLin U ≤ V, and k = (b - Module.finrank F U) + Module.finrank F V.

Statement

noncomputable def noncommutative_rank (F : Type*) [Field F] {a b : ℕ} {ι : Type*}
    (A : ι → Matrix (Fin a) (Fin b) F) : ℕ
Defined in
arXiv:2611.31963 Section 2.1; Fortin-Reutenauer (2004) Theorem 1
Verified
26 Nov 2026
Axioms
none listed
Used by 1

Read back from the Lean

Given a field F, natural numbers a and b, an index type ι, and a family of matrices A : ι → Matrix (Fin a) (Fin b) F, noncommutative_rank F A is the infimum in ℕ of the set of all k : ℕ such that there exist an F-subspace U of Fin b → F and an F-subspace V of Fin a → F satisfying: 1. For every index i : ι, the image of U under the linear map (A i).mulVecLin (matrix-vector multiplication by A i) is contained in V (Submodule.map (A i).mulVecLin U ≤ V), and 2. k = (b - Module.finrank F U) + Module.finrank F V.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The noncommutative rank of a linear symbolic matrix via Fortin-Reutenauer duality. -/
noncomputable def noncommutative_rank (F : Type*) [Field F] {a b : ℕ} {ι : Type*}
    (A : ι → Matrix (Fin a) (Fin b) F) : ℕ := sInf { k : ℕ | ∃ (U : Subspace F (Fin b → F)) (V : Subspace F (Fin a → F)),
    (∀ i, Submodule.map (A i).mulVecLin U ≤ V) ∧
    k = (b - Module.finrank F U) + Module.finrank F V }
See it in the graphDiscuss this resultChallenge it