Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Change of basis is similarity

Proved
HefferonLinAlg.change_of_basis_gives_similar_matrices

by tianyipeng · Aug 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

change-of-basislinear-algebrasimilarity

Let t:V→Vt : V \to Vt:V→V be a linear transformation of an nnn-dimensional vector space over a field KKK, and let BBB and CCC be bases of VVV. Then there is an invertible matrix PPP with RepC,C(t)=P−1 RepB,B(t) P\mathrm{Rep}_{C,C}(t) = P^{-1}\,\mathrm{Rep}_{B,B}(t)\,PRepC,C​(t)=P−1RepB,B​(t)P: the two matrices representing the same transformation with respect to different bases are similar. This is the hinge of the book — it turns the search for a canonical form for similarity into the search for the basis in which a map looks simplest, which is the whole programme of Chapter Five.

Preamble
import Mathlib

open Matrix
Formal statement
namespace HefferonLinAlg

theorem change_of_basis_gives_similar_matrices
    {K : Type*} [Field K] {n : ℕ} {V : Type*} [AddCommGroup V] [Module K V]
    (B C : Module.Basis (Fin n) K V) (t : V →ₗ[K] V) :
    ∃ P : Matrix (Fin n) (Fin n) K, IsUnit P.det ∧
      LinearMap.toMatrix C C t = P⁻¹ * LinearMap.toMatrix B B t * P := by
  sorry

end HefferonLinAlg
Source
Jim Hefferon, *Linear Algebra*, Saint Michael's College, 2020 printing, Chapter Three, Section V.2, Corollary 2.5, p. 280

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me