AFTD Auto-Formalizing Theoretical Domains

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.
Verified
09 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
Used by 1

Lean source view module on GitHub

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
See it in the graphDiscuss this resultChallenge it