Skip to content

Commit c29699f

Browse files
committed
chore(Algebra/Module/LinearMap): remove use of erw (#32489)
1 parent 50d7b2c commit c29699f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Mathlib/Algebra/Module/LinearMap/Basic.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ instance [NoZeroSMulDivisors S M'] : NoZeroSMulDivisors S (M →ₛₗ[σ₁₂]
110110
instance [SMulCommClass R S M] : Module Sᵈᵐᵃ (M →ₛₗ[σ₁₂] M') where
111111
add_smul _ _ _ := ext fun _ ↦ by
112112
simp_rw [add_apply, DomMulAct.smul_linearMap_apply, ← map_add, ← add_smul]; rfl
113-
zero_smul _ := ext fun _ ↦ by erw [DomMulAct.smul_linearMap_apply, zero_smul, map_zero]; rfl
113+
zero_smul _ := ext fun _ ↦ by
114+
simp [DomMulAct.smul_linearMap_apply, DomMulAct.mk, MulOpposite.opEquiv]
114115

115116
end Module
116117

0 commit comments

Comments
 (0)