Skip to content

Commit bee80c5

Browse files
committed
re-use variables
1 parent e6ebdcf commit bee80c5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Mathlib/RingTheory/IsTensorProduct.lean

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,8 @@ lemma IsBaseChange.of_equiv_right (eM : M ≃ₗ[R] M') (eN : N ≃ₗ[S] N')
446446
obtain ⟨y, rfl⟩ := eM.surjective y
447447
exact eN.injective (by simpa using congr($comm y).symm)
448448

449-
lemma IsBaseChange.comp_equiv {M1 M2 N : Type*} [AddCommGroup M1] [AddCommGroup M2] [AddCommGroup N]
450-
[Module R M1] [Module R M2] [Module R N] [Module S N] [IsScalarTower R S N] (e : M1 ≃ₗ[R] M2)
451-
(f : M2 →ₗ[R] N) (isb : IsBaseChange S f) : IsBaseChange S (f.comp e.toLinearMap) :=
449+
lemma IsBaseChange.comp_equiv (e : M ≃ₗ[R] M') (f : M' →ₗ[R] N) (isb : IsBaseChange S f) :
450+
IsBaseChange S (f.comp e.toLinearMap) :=
452451
IsBaseChange.of_equiv_right e (LinearEquiv.refl S N) (LinearMap.ext fun y ↦ by simp) isb
453452

454453
section

0 commit comments

Comments
 (0)