Add category
This commit is contained in:
parent
4f392d19b7
commit
c040ccadcd
|
@ -0,0 +1,25 @@
|
||||||
|
{-# OPTIONS --safe --without-K #-}
|
||||||
|
|
||||||
|
module Categories.Category.Instance.Thinnings where
|
||||||
|
|
||||||
|
open import Categories.Category.Core
|
||||||
|
open import Categories.Category.Helper
|
||||||
|
open import Data.List.Base using (List)
|
||||||
|
open import Relation.Binary.PropositionalEquality
|
||||||
|
|
||||||
|
open import Thinning
|
||||||
|
open import Thinning.Properties
|
||||||
|
|
||||||
|
Thinnings : ∀ {a} (A : Set a) → Category a a a
|
||||||
|
Thinnings A = categoryHelper record
|
||||||
|
{ Obj = List A
|
||||||
|
; _⇒_ = Thinning A
|
||||||
|
; _≈_ = _≡_
|
||||||
|
; id = id
|
||||||
|
; _∘_ = _∘_
|
||||||
|
; assoc = assoc _ _ _
|
||||||
|
; identityˡ = identityˡ _
|
||||||
|
; identityʳ = identityʳ _
|
||||||
|
; equiv = isEquivalence
|
||||||
|
; ∘-resp-≈ = cong₂ _∘_
|
||||||
|
}
|
Loading…
Reference in New Issue