Skip to content

Commit 7ef3206

Browse files
committed
add: injection : Injection From To to IsRightInverse
1 parent 8ffbebf commit 7ef3206

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Function/Bundles.agda

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,23 @@ module _ (From : Setoid a ℓ₁) (To : Setoid b ℓ₂) where
273273
}
274274

275275
open IsRightInverse isRightInverse public
276-
using (module Eq₁; module Eq₂; strictlyInverseʳ)
276+
using (module Eq₁; module Eq₂; strictlyInverseʳ; isInjection)
277+
278+
open IsInjection isInjection public using (injective)
277279

278280
equivalence : Equivalence
279281
equivalence = record
280282
{ to-cong = to-cong
281283
; from-cong = from-cong
282284
}
283285

286+
injection : Injection From To
287+
injection = record
288+
{ to = to
289+
; cong = to-cong
290+
; injective = injective
291+
}
292+
284293

285294
record Inverse : Set (a ⊔ b ⊔ ℓ₁ ⊔ ℓ₂) where
286295
field

0 commit comments

Comments
 (0)