Matrix.diag_pow_entry_eq_pow_diag_entry
theoremverifiedformalizationimported Lean
For an upper–triangular matrix A, the (i,i) entry of the power A ^ n is simply the n-th power of the original diagonal entry.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Matrix in open scoped BigOperators Topology in variable {𝕂 m n : Type*} in variable [RCLike 𝕂] in attribute [local instance] Matrix.linftyOpNormedAlgebra in attribute [local instance] Matrix.linftyOpNormedRing in attribute [local instance] Matrix.instCompleteSpace in variable [Fintype m] [LinearOrder m] in lemma Matrix.diag_pow_entry_eq_pow_diag_entry {A : Matrix m m 𝕂} (hA : BlockTriangular A id) (n : ℕ) (i : m) : (A ^ n) i i = (A i i) ^ n
- Formalizes
- Physlib, `Matrix.diag_pow_entry_eq_pow_diag_entry`
- Lean proof
- By Matteo Cipollina, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2025 Matteo Cipollina. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.Matrix.diag_pow_entry_eq_pow_diag_entry← Matrix.diag_pow_entry_eq_pow_diag_entry (Physlib/Mathematics/ForMathlib/DataStructures/Matrix/LieTrace.lean:121): verbatim
- Verified
- 09 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- Matrix.diag_pow_of_blockTriangular_idFor an upper-triangular matrix, the diagonal of a power is the power of the diagonal.
- TotalPreorderA total preorder: a preorder where
≤is total (complete). This is weaker thanLinearOrder— it does NOT require antisymmetry or… - LinearOrder.toTotalPreorderEvery
LinearOrderis aTotalPreorder.
- Used by 1
- Matrix.exp_series_diag_term_eqEach term in the matrix exponential series equals the corresponding scalar term on the diagonal
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option autoImplicit true inset_option relaxedAutoImplicit true inopen Matrix inopen scoped BigOperators Topology invariable {𝕂 m n : Type*} invariable [RCLike 𝕂] inattribute [local instance] Matrix.linftyOpNormedAlgebra inattribute [local instance] Matrix.linftyOpNormedRing inattribute [local instance] Matrix.instCompleteSpace invariable [Fintype m] [LinearOrder m] in/-- For an upper–triangular matrix `A`, the `(i,i)` entry of the power `A ^ n` is simply the `n`-th power of the original diagonal entry. -/lemma Matrix.diag_pow_entry_eq_pow_diag_entry {A : Matrix m m 𝕂} (hA : BlockTriangular A id) (n : ℕ) (i : m) : (A ^ n) i i = (A i i) ^ n := by have h := diag_pow_of_blockTriangular_id hA n simpa [diag_apply, Pi.pow_apply] using congr_arg (fun d => d i) h