@@ -11,9 +11,9 @@ module Function.Properties.Surjection where
11
11
open import Function.Base using (_∘_; _$_)
12
12
open import Function.Definitions using (Surjective; Injective; Congruent)
13
13
open import Function.Bundles
14
- using (Func; Surjection; _↠_; _⟶_; _↪_; mk↪; _⇔_; mk⇔)
15
- open import Function.Consequences using (module Section )
14
+ using (Func; Surjection; Bijection; _↠_; _⟶_; _↪_; mk↪; _⇔_; mk⇔)
16
15
import Function.Construct.Identity as Identity
16
+ import Function.Construct.Symmetry as Symmetry
17
17
import Function.Construct.Composition as Compose
18
18
open import Level using (Level)
19
19
open import Data.Product.Base using (_,_; proj₁; proj₂)
@@ -79,9 +79,13 @@ module _ (surjection : Surjection S T) where
79
79
80
80
injective⇒to⁻-cong : Injective Eq₁._≈_ Eq₂._≈_ to →
81
81
Congruent Eq₂._≈_ Eq₁._≈_ section
82
- injective⇒to⁻-cong injective =
83
- Section.cong Eq₂._≈_ surjective injective Eq₁.refl Eq₂.sym Eq₂.trans
82
+ injective⇒to⁻-cong injective = section-cong
83
+ where
84
+ SB : Bijection S T
85
+ SB = record { cong = cong ; bijective = injective , surjective }
86
+ open Bijection (Symmetry.bijectionWithoutCongruence SB)
87
+ using () renaming (cong to section-cong)
84
88
{-# WARNING_ON_USAGE injective⇒to⁻-cong
85
89
"Warning: injective⇒to⁻-cong was deprecated in v2.3.
86
- Please use Symmetry.section-cong instead. "
90
+ Please use Function.Construct. Symmetry.bijectionWithoutCongruence instead. "
87
91
#-}
0 commit comments