Skip to content

Commit 703121c

Browse files
committed
refactor: use Relation.Binary.Morphism.Construct.On
1 parent 172bdc8 commit 703121c

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/Algebra/Construct/Centre/Center.agda

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ module Algebra.Construct.Centre.Center
1616
open import Algebra.Definitions _∼_ using (Central)
1717
open import Function.Base using (id; _on_)
1818
open import Level using (_⊔_)
19-
open import Relation.Binary.Morphism.Structures
20-
using (IsRelHomomorphism; IsRelMonomorphism)
19+
import Relation.Binary.Morphism.Construct.On as On
2120

2221

2322
------------------------------------------------------------------------
@@ -36,14 +35,5 @@ open Center public
3635

3736
-- Center as subtype of Carrier
3837

39-
_≈_ : Rel Center _
40-
_≈_ = _∼_ on ι
41-
42-
isRelHomomorphism : IsRelHomomorphism _≈_ _∼_ ι
43-
isRelHomomorphism = record { cong = id }
44-
45-
isRelMonomorphism : IsRelMonomorphism _≈_ _∼_ ι
46-
isRelMonomorphism = record
47-
{ isHomomorphism = isRelHomomorphism
48-
; injective = id
49-
}
38+
open On _∼_ ι public
39+
using (_≈_; isRelHomomorphism; isRelMonomorphism)

0 commit comments

Comments
 (0)