Commuting with forces the block form
ProvedPassivityUn.commJ_iff_blocksLet be a natural number, let be real matrices, and let . Then
So a real matrix commutes with exactly when its top-left and bottom-right blocks agree and its top-right block is the negative of its bottom-left block, i.e. it is the real form of a complex matrix.
import Mathlib import Definitions.Def_PassivityUn_stdJ
namespace PassivityUn
theorem commJ_iff_blocks (n : ℕ) (A B C D : Matrix (Fin n) (Fin n) ℝ) :
Matrix.fromBlocks A B C D * stdJ n = stdJ n * Matrix.fromBlocks A B C D
↔ D = A ∧ B = -C := by sorry
end PassivityUnRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Theorem commJ_iff_blocks. Fix a natural number (any ) and four real matrices , whose rows and columns are indexed by . No other hypotheses are assumed.
Auxiliary definitions, expanded. Let be the disjoint union of two copies of : a "first" copy and a "second" copy, so it has elements. Matrices indexed by are real matrices written in block form. The first copy indexes the top/left blocks and the second copy indexes the bottom/right blocks. The matrix (stdJ n) is defined as the real block matrix
where is the zero matrix and is the identity matrix. The top-left block is , the top-right block is , the bottom-left block is and the bottom-right block is . Write for the real block matrix built from the four given matrices, indexed the same way:
Here is the top-left block, the top-right, the bottom-left and the bottom-right.
Assertion. For every and every choice of , the following biconditional holds:
The products are ordinary real matrix products, and the equality on the left is entrywise equality of matrices. The equalities on the right are entrywise equalities of matrices. So commutes with exactly when its bottom-right block equals its top-left block and its top-right block is the negative of its bottom-left block. Both directions of the equivalence are asserted.
Degenerate case. When , all of , and are empty matrices. Both sides of the biconditional then hold automatically.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.