Skip to content

Commit 520b838

Browse files
committed
refactor: deprecate injective⇒to⁻-cong
1 parent eeb49e6 commit 520b838

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

src/Function/Properties/Surjection.agda

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,31 @@ trans = Compose.surjection
6666
------------------------------------------------------------------------
6767
-- Other
6868

69-
injective⇒to⁻-cong : (surj : Surjection S T)
69+
injective⇒section-cong : (surj : Surjection S T)
7070
(open Surjection surj)
7171
Injective Eq₁._≈_ Eq₂._≈_ to
7272
Congruent Eq₂._≈_ Eq₁._≈_ section
73-
injective⇒to⁻-cong {T = T} surj injective {x} {y} x≈y = injective $ begin
74-
to (section x) ≈⟨ to∘to⁻ x ⟩
73+
injective⇒section-cong {T = T} surj injective {x} {y} x≈y = injective $ begin
74+
to (section x) ≈⟨ section-strictInverseˡ x ⟩
7575
x ≈⟨ x≈y ⟩
76-
y ≈⟨ to∘to⁻ y ⟨
76+
y ≈⟨ section-strictInverseˡ y ⟨
7777
to (section y) ∎
7878
where
7979
open ≈-Reasoning T
8080
open Surjection surj
8181

82+
83+
------------------------------------------------------------------------
84+
-- DEPRECATED NAMES
85+
------------------------------------------------------------------------
86+
-- Please use the new names as continuing support for the old names is
87+
-- not guaranteed.
88+
89+
-- Version 2.3
90+
91+
injective⇒to⁻-cong = injective⇒section-cong
92+
{-# WARNING_ON_USAGE injective⇒to⁻-cong
93+
"Warning: injective⇒to⁻-cong was deprecated in v2.3.
94+
Please use injective⇒section-cong instead. "
95+
#-}
96+

0 commit comments

Comments
 (0)