@@ -86,8 +86,10 @@ module _ (≈ : Rel A ℓ₁) (L : Rel A ℓ₂) (R : Rel A ℓ₃) where
8686
8787module _ {L : REL A B ℓ₁} {R : REL A B ℓ₂} where
8888
89- decidable : Decidable L → Decidable R → Decidable (L ∩ R)
90- decidable L? R? x y = L? x y ×? R? x y
89+ infixl 6 _∩?_
90+
91+ _∩?_ : Decidable L → Decidable R → Decidable (L ∩ R)
92+ _∩?_ L? R? x y = L? x y ×? R? x y
9193
9294------------------------------------------------------------------------
9395-- Structures
@@ -102,7 +104,7 @@ isEquivalence {L = L} {R = R} eqₗ eqᵣ = record
102104isDecEquivalence : IsDecEquivalence L → IsDecEquivalence R → IsDecEquivalence (L ∩ R)
103105isDecEquivalence eqₗ eqᵣ = record
104106 { isEquivalence = isEquivalence L.isEquivalence R.isEquivalence
105- ; _≟_ = decidable L._≟_ R._≟_
107+ ; _≟_ = L._≟_ ∩? R._≟_
106108 } where module L = IsDecEquivalence eqₗ; module R = IsDecEquivalence eqᵣ
107109
108110isPreorder : IsPreorder ≈ L → IsPreorder ≈ R → IsPreorder ≈ (L ∩ R)
@@ -144,3 +146,18 @@ isStrictPartialOrderʳ {L = L} {≈ = ≈} {R = R} transₗ respₗ Oᵣ = recor
144146 ; trans = transitive L R transₗ Oᵣ.trans
145147 ; <-resp-≈ = respects₂ ≈ L R respₗ Oᵣ.<-resp-≈
146148 } where module Oᵣ = IsStrictPartialOrder Oᵣ
149+
150+
151+ ------------------------------------------------------------------------
152+ -- DEPRECATED NAMES
153+ ------------------------------------------------------------------------
154+ -- Please use the new names as continuing support for the old names is
155+ -- not guaranteed.
156+
157+ -- version 2.4
158+
159+ decidable = _∩?_
160+ {-# WARNING_ON_USAGE decidable
161+ "Warning: decidable was deprecated in v2.4.
162+ Please use _∩?_ instead."
163+ #-}
0 commit comments