Skip to content

Commit 218e764

Browse files
committed
chore(LinearAlgebra): golf entire isUnit_det (leanprover-community#28438)
1 parent afaa0ee commit 218e764

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Mathlib/LinearAlgebra/Determinant.lean

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,7 @@ theorem det_conj {N : Type*} [AddCommGroup N] [Module A N] (f : M →ₗ[A] M) (
299299

300300
/-- If a linear map is invertible, so is its determinant. -/
301301
theorem isUnit_det {A : Type*} [CommRing A] [Module A M] (f : M →ₗ[A] M) (hf : IsUnit f) :
302-
IsUnit (LinearMap.det f) := by
303-
obtain ⟨g, hg⟩ : ∃ g, f.comp g = 1 := hf.exists_right_inv
304-
have : LinearMap.det f * LinearMap.det g = 1 := by
305-
simp only [← LinearMap.det_comp, hg, MonoidHom.map_one]
306-
exact isUnit_of_mul_eq_one _ _ this
302+
IsUnit (LinearMap.det f) := IsUnit.map LinearMap.det hf
307303

308304
/-- If a linear map has determinant different from `1`, then the space is finite-dimensional. -/
309305
theorem finiteDimensional_of_det_ne_one {𝕜 : Type*} [Field 𝕜] [Module 𝕜 M] (f : M →ₗ[𝕜] M)

0 commit comments

Comments
 (0)