/-
Copyright (c) 2024 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
module
public import Mathlib.LinearAlgebra.Charpoly.ToMatrix
public import Mathlib.RingTheory.TensorProduct.Finite
/-! # The characteristic polynomial of base change -/
public section
variable {R M} [CommRing R] [AddCommGroup M] [Module R M]
[Module.Free R M] [Module.Finite R M] (f : M →ₗ[R] M)
(A) [CommRing A] [Algebra R A]
@[simp]
lemma LinearMap.charpoly_baseChange :
(f.baseChange A).charpoly = f.charpoly.map (algebraMap R A) := by
nontriviality A
have := (algebraMap R A).domain_nontrivial
let I := Module.Free.ChooseBasisIndex R M
let b : Module.Basis I R M := Module.Free.chooseBasis R M
rw [← f.charpoly_toMatrix b, ← (f.baseChange A).charpoly_toMatrix (b.baseChange A),
← Matrix.charpoly_map]
congr 1
ext i j
simp [LinearMap.toMatrix_apply, ← Algebra.algebraMap_eq_smul_one]
lemma LinearMap.det_eq_sign_charpoly_coeff :
LinearMap.det f = (-1) ^ Module.finrank R M * f.charpoly.coeff 0 := by
nontriviality R
rw [← LinearMap.det_toMatrix (Module.Free.chooseBasis R M), Matrix.det_eq_sign_charpoly_coeff,
← Module.finrank_eq_card_chooseBasisIndex, charpoly_def]
variable {A} in
lemma LinearMap.det_baseChange :
LinearMap.det (f.baseChange A) = algebraMap R A (LinearMap.det f) := by
nontriviality A
have := (algebraMap R A).domain_nontrivial
rw [LinearMap.det_eq_sign_charpoly_coeff, LinearMap.det_eq_sign_charpoly_coeff]
simp
lemma LinearEquiv.det_baseChange (f : M ≃ₗ[R] M) :
LinearEquiv.det (f.baseChange R A _ _) = (LinearEquiv.det f).map (algebraMap R A) := by
ext
simp [LinearMap.det_baseChange]
/-! Also see `LinearMap.trace_baseChange` in `Mathlib/LinearAlgebra/Trace` -/
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland