@@ -63,12 +63,11 @@ lemma oreEqv_eq_r : (OreLocalization.oreEqv S M).r = r S M := by
6363 · rintro ⟨u, v, h₁, h₂⟩
6464 use u
6565 simp only [Submonoid.smul_def, smul_smul, h₂]
66- rw [mul_comm, mul_smul, ← h₁, mul_comm, mul_smul]
67- rfl
66+ rw [mul_comm, mul_smul, ← h₁, mul_comm, mul_smul, Submonoid.smul_def]
6867 · rintro ⟨u, hu⟩
6968 use u * a.2 , u * b.2
7069 rw [mul_smul, ← hu, mul_smul, Submonoid.coe_mul, mul_assoc, mul_assoc, mul_comm (a.2 : R)]
71- exact ⟨rfl, rfl⟩
70+ simp [Submonoid.smul_def]
7271
7372theorem r.isEquiv : IsEquiv _ (r S M) :=
7473 { refl := fun ⟨m, s⟩ => ⟨1 , by rw [one_smul]⟩
@@ -371,8 +370,7 @@ theorem mk_cancel_common_right (s s' : S) (m : M) : mk (s' • m) (s * s') = mk
371370
372371theorem smul'_mk (r : R) (s : S) (m : M) : r • mk m s = mk (r • m) s := by
373372 refine (OreLocalization.smul_oreDiv _ _ _).trans ?_
374- change (r • 1 : R) • m /ₒ s = _
375- rw [smul_assoc, one_smul]
373+ simp
376374
377375lemma smul_eq_iff_of_mem
378376 (r : R) (hr : r ∈ S) (x y : LocalizedModule S M) :
@@ -448,11 +446,13 @@ noncomputable instance (priority := 900) algebra' {A : Type*} [Semiring A] [Alge
448446 algebraMap := numeratorRingHom.comp (algebraMap R A)
449447 commutes' r x := by
450448 induction x using induction_on with | _ a s => _
451- change mk _ _ * mk _ _ = mk _ _ * mk _ _
449+ simp only [RingHom.coe_comp, RingHom.coe_mk, MonoidHom.coe_mk, OneHom.coe_mk,
450+ Function.comp_apply]
452451 rw [mk_mul_mk, mk_mul_mk, mul_comm, Algebra.commutes]
453452 smul_def' r x := by
454453 induction x using induction_on with | _ a s => _
455- change _ • mk _ _ = mk _ _ * mk _ _
454+ simp only [RingHom.coe_comp, RingHom.coe_mk, MonoidHom.coe_mk, OneHom.coe_mk,
455+ Function.comp_apply]
456456 rw [mk_mul_mk, smul'_mk, Algebra.smul_def, one_mul]
457457
458458private lemma example_oreLocalizationInstAlgebra_eq_localizedModuleAlgebra' :
0 commit comments