Symmetric matrices commuting with (admissible coupling class)
DefinitionPassivityUn_admissibleLet be the standard complex structure on real block matrices. Three real linear subspaces of this -dimensional space are defined:
- , the matrices commuting with ;
- , the symmetric matrices;
- the admissible coupling class
is the object whose dimension the mission's goal computes.
Formalization Note Each condition is the kernel of a linear map ( and ), so each set is a subspace by construction.
import Mathlib
import Definitions.Def_PassivityUn_stdJ
open Matrix
namespace PassivityUn
/-- Commuting with J, as the kernel of W ↦ W J - J W. -/
def commJ (n : ℕ) : Submodule ℝ (Matrix (Blk n) (Blk n) ℝ) :=
LinearMap.ker (LinearMap.mulRight ℝ (stdJ n) - LinearMap.mulLeft ℝ (stdJ n))
/-- Symmetric, as the kernel of W ↦ Wᵀ - W. -/
def symm (n : ℕ) : Submodule ℝ (Matrix (Blk n) (Blk n) ℝ) :=
LinearMap.ker ((Matrix.transposeLinearEquiv (Blk n) (Blk n) ℝ ℝ).toLinearMap
- LinearMap.id)
/-- The passivity-admissible coupling class. -/
def admissible (n : ℕ) : Submodule ℝ (Matrix (Blk n) (Blk n) ℝ) :=
symm n ⊓ commJ n
end PassivityUn
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Shared setting. Throughout, is any natural number, including . The index set is the disjoint union of two copies of , so it has elements. The first copy indexes the "upper/left" block and the second copy the "lower/right" block. All matrices below are real matrices indexed by . The space of such matrices is treated as a real vector space. The fixed matrix (stdJ n) is the block matrix
where is the identity and is the zero matrix. The top-right block is and the bottom-left block is . When the index set is empty. In that case is the zero vector space, is the empty matrix, and each of the three subspaces below is the whole (zero) space.
commJ n. This is a real linear subspace of . It is defined as the kernel of the linear map . Right multiplication by comes first and left multiplication is subtracted. Explicitly,
that is, the set of all real matrices that commute with . No symmetry, invertibility or other condition is imposed. Write with blocks. The condition is then equivalent to and , so the members are exactly the matrices of the form with arbitrary real matrices.
symm n. This is a real linear subspace of . It is defined as the kernel of the linear map , where is the ordinary matrix transpose. Explicitly,
the set of all real symmetric matrices. It involves neither nor any positivity or definiteness condition.
admissible n. This is the real linear subspace of obtained as the intersection of the two subspaces above:
with as above. Using the block description, the members are exactly the matrices
with and , where and are real matrices. No positivity, semidefiniteness, trace, invertibility or normalization condition is imposed. The zero matrix is always a member, and so is every real multiple of the identity . For the subspace is the trivial zero space.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.