Skip to content

Commit f156c64

Browse files
committed
chore(Algebra): improve IsTorsionFree.to_faithfulSMul (leanprover-community#34463)
... after leanprover-community#34203
1 parent 98d411a commit f156c64

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Mathlib/Algebra/Algebra/Basic.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,13 @@ instance (priority := 100) FaithfulSMul.to_isTorsionFree [Nontrivial R] [IsCance
440440
end FaithfulSMul
441441

442442
namespace Module
443-
variable {R A : Type*} [CommRing R] [IsDomain R] [Ring A] [Algebra R A]
443+
variable {R A : Type*} [CommRing R] [Ring A] [Algebra R A]
444444

445-
instance IsTorsionFree.to_faithfulSMul [IsCancelMulZero R] [Nontrivial A]
445+
instance (priority := 101) IsTorsionFree.to_faithfulSMul [IsCancelMulZero R] [Nontrivial A]
446446
[IsTorsionFree R A] : FaithfulSMul R A where
447447
eq_of_smul_eq_smul h := smul_left_injective _ one_ne_zero <| h 1
448448

449-
variable [IsDomain A]
449+
variable [IsDomain R] [IsDomain A]
450450

451451
lemma isTorsionFree_iff_faithfulSMul : IsTorsionFree R A ↔ FaithfulSMul R A :=
452452
fun _ ↦ inferInstance, fun _ ↦ inferInstance⟩

0 commit comments

Comments
 (0)