11
11
-- `Bijection`. The alternative definitions found in this file will
12
12
-- eventually be deprecated.
13
13
14
+ -- check if modules are actually using Function.Equality and port them
14
15
module Function.Equality where
15
16
16
17
import Function.Base as Fun
@@ -24,6 +25,7 @@ import Relation.Binary.Indexed.Heterogeneous.Construct.Trivial
24
25
------------------------------------------------------------------------
25
26
-- Functions which preserve equality
26
27
28
+ -- indexed
27
29
record Π {f₁ f₂ t₁ t₂}
28
30
(From : Setoid f₁ f₂)
29
31
(To : IndexedSetoid (Setoid.Carrier From) t₁ t₂) :
@@ -37,6 +39,7 @@ open Π public
37
39
38
40
infixr 0 _⟶_
39
41
42
+ -- not indexed
40
43
_⟶_ : ∀ {f₁ f₂ t₁ t₂} → Setoid f₁ f₂ → Setoid t₁ t₂ → Set _
41
44
From ⟶ To = Π From (Trivial.indexedSetoid To)
42
45
@@ -72,6 +75,7 @@ const {B = B} b = record
72
75
73
76
-- Dependent.
74
77
78
+ -- indexed
75
79
setoid : ∀ {f₁ f₂ t₁ t₂}
76
80
(From : Setoid f₁ f₂) →
77
81
IndexedSetoid (Setoid.Carrier From) t₁ t₂ →
@@ -91,6 +95,7 @@ setoid From To = record
91
95
92
96
-- Non-dependent.
93
97
98
+ -- no indexed
94
99
infixr 0 _⇨_
95
100
96
101
_⇨_ : ∀ {f₁ f₂ t₁ t₂} → Setoid f₁ f₂ → Setoid t₁ t₂ → Setoid _ _
@@ -99,6 +104,7 @@ From ⇨ To = setoid From (Trivial.indexedSetoid To)
99
104
-- A variant of setoid which uses the propositional equality setoid
100
105
-- for the domain, and a more convenient definition of _≈_.
101
106
107
+ -- indexed
102
108
≡-setoid : ∀ {f t₁ t₂} (From : Set f) → IndexedSetoid From t₁ t₂ → Setoid _ _
103
109
≡-setoid From To = record
104
110
{ Carrier = (x : From) → Carrier x
0 commit comments