@@ -40,20 +40,20 @@ module _ (_≈ᴬ_ : Rel {a} A ℓa) (S : Setoid c ℓ) where
4040 private
4141 _*ᵣ_ = flip _*ₗ_
4242
43- *ₗ-assoc+ comm⇒*ᵣ-assoc :
43+ *ₗ-assoc∧ comm⇒*ᵣ-assoc :
4444 L.RightCongruent _≈ᴬ_ _*ₗ_ →
4545 L.Associative _*_ _*ₗ_ → Commutative _*_ → R.Associative _*_ _*ᵣ_
46- *ₗ-assoc+ comm⇒*ᵣ-assoc *ₗ-congʳ *ₗ-assoc *-comm m x y = begin
46+ *ₗ-assoc∧ comm⇒*ᵣ-assoc *ₗ-congʳ *ₗ-assoc *-comm m x y = begin
4747 (m *ᵣ x) *ᵣ y ≈⟨ refl ⟩
4848 y *ₗ (x *ₗ m) ≈⟨ *ₗ-assoc _ _ _ ⟨
4949 (y * x) *ₗ m ≈⟨ *ₗ-congʳ (*-comm y x) ⟩
5050 (x * y) *ₗ m ≈⟨ refl ⟩
5151 m *ᵣ (x * y) ∎
5252
53- *ₗ-assoc+ comm⇒*ₗ-*ᵣ-assoc :
53+ *ₗ-assoc∧ comm⇒*ₗ-*ᵣ-assoc :
5454 L.RightCongruent _≈ᴬ_ _*ₗ_ →
5555 L.Associative _*_ _*ₗ_ → Commutative _*_ → B.Associative _*ₗ_ _*ᵣ_
56- *ₗ-assoc+ comm⇒*ₗ-*ᵣ-assoc *ₗ-congʳ *ₗ-assoc *-comm x m y = begin
56+ *ₗ-assoc∧ comm⇒*ₗ-*ᵣ-assoc *ₗ-congʳ *ₗ-assoc *-comm x m y = begin
5757 ((x *ₗ m) *ᵣ y) ≈⟨ refl ⟩
5858 (y *ₗ (x *ₗ m)) ≈⟨ *ₗ-assoc _ _ _ ⟨
5959 ((y * x) *ₗ m) ≈⟨ *ₗ-congʳ (*-comm y x) ⟩
@@ -66,23 +66,56 @@ module _ (_≈ᴬ_ : Rel {a} A ℓa) (S : Setoid c ℓ) where
6666 private
6767 _*ₗ_ = flip _*ᵣ_
6868
69- *ᵣ-assoc+ comm⇒*ₗ-assoc :
69+ *ᵣ-assoc∧ comm⇒*ₗ-assoc :
7070 R.LeftCongruent _≈ᴬ_ _*ᵣ_ →
7171 R.Associative _*_ _*ᵣ_ → Commutative _*_ → L.Associative _*_ _*ₗ_
72- *ᵣ-assoc+ comm⇒*ₗ-assoc *ᵣ-congˡ *ᵣ-assoc *-comm x y m = begin
72+ *ᵣ-assoc∧ comm⇒*ₗ-assoc *ᵣ-congˡ *ᵣ-assoc *-comm x y m = begin
7373 ((x * y) *ₗ m) ≈⟨ refl ⟩
7474 (m *ᵣ (x * y)) ≈⟨ *ᵣ-congˡ (*-comm x y) ⟩
7575 (m *ᵣ (y * x)) ≈⟨ *ᵣ-assoc _ _ _ ⟨
7676 ((m *ᵣ y) *ᵣ x) ≈⟨ refl ⟩
7777 (x *ₗ (y *ₗ m)) ∎
7878
79- *ᵣ-assoc+ comm⇒*ₗ-*ᵣ-assoc :
79+ *ᵣ-assoc∧ comm⇒*ₗ-*ᵣ-assoc :
8080 R.LeftCongruent _≈ᴬ_ _*ᵣ_ →
8181 R.Associative _*_ _*ᵣ_ → Commutative _*_ → B.Associative _*ₗ_ _*ᵣ_
82- *ᵣ-assoc+ comm⇒*ₗ-*ᵣ-assoc *ᵣ-congˡ *ᵣ-assoc *-comm x m y = begin
82+ *ᵣ-assoc∧ comm⇒*ₗ-*ᵣ-assoc *ᵣ-congˡ *ᵣ-assoc *-comm x m y = begin
8383 ((x *ₗ m) *ᵣ y) ≈⟨ refl ⟩
8484 ((m *ᵣ x) *ᵣ y) ≈⟨ *ᵣ-assoc _ _ _ ⟩
8585 (m *ᵣ (x * y)) ≈⟨ *ᵣ-congˡ (*-comm x y) ⟩
8686 (m *ᵣ (y * x)) ≈⟨ *ᵣ-assoc _ _ _ ⟨
8787 ((m *ᵣ y) *ᵣ x) ≈⟨ refl ⟩
8888 (x *ₗ (m *ᵣ y)) ∎
89+
90+
91+ ------------------------------------------------------------------------
92+ -- DEPRECATED NAMES
93+ ------------------------------------------------------------------------
94+ -- Please use the new names as continuing support for the old names is
95+ -- not guaranteed.
96+
97+ -- Version 2.3
98+
99+ *ₗ-assoc+comm⇒*ᵣ-assoc = *ₗ-assoc∧comm⇒*ᵣ-assoc
100+ {-# WARNING_ON_USAGE *ₗ-assoc+comm⇒*ᵣ-assoc
101+ "Warning: *ₗ-assoc+comm⇒*ᵣ-assoc was deprecated in v2.3.
102+ Please use *ₗ-assoc∧comm⇒*ᵣ-assoc instead."
103+ #-}
104+
105+ *ₗ-assoc+comm⇒*ₗ-*ᵣ-assoc = *ₗ-assoc∧comm⇒*ₗ-*ᵣ-assoc
106+ {-# WARNING_ON_USAGE *ₗ-assoc+comm⇒*ₗ-*ᵣ-assoc
107+ "Warning: *ₗ-assoc+comm⇒*ₗ-*ᵣ-assoc was deprecated in v2.3.
108+ Please use *ₗ-assoc∧comm⇒*ₗ-*ᵣ-assoc instead."
109+ #-}
110+
111+ *ᵣ-assoc+comm⇒*ₗ-assoc = *ᵣ-assoc∧comm⇒*ₗ-assoc
112+ {-# WARNING_ON_USAGE *ᵣ-assoc+comm⇒*ₗ-assoc
113+ "Warning: *ᵣ-assoc+comm⇒*ₗ-assoc was deprecated in v2.3.
114+ Please use *ᵣ-assoc∧comm⇒*ₗ-assoc instead."
115+ #-}
116+
117+ *ᵣ-assoc+comm⇒*ₗ-*ᵣ-assoc = *ᵣ-assoc∧comm⇒*ₗ-*ᵣ-assoc
118+ {-# WARNING_ON_USAGE *ᵣ-assoc+comm⇒*ₗ-*ᵣ-assoc
119+ "Warning: *ᵣ-assoc+comm⇒*ₗ-*ᵣ-assoc was deprecated in v2.3.
120+ Please use *ᵣ-assoc∧comm⇒*ₗ-*ᵣ-assoc instead."
121+ #-}
0 commit comments