Add category

This commit is contained in:
Nathan van Doorn 2024-06-20 09:11:44 +02:00
parent 4f392d19b7
commit c040ccadcd
1 changed files with 25 additions and 0 deletions

View File

@ -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₂ _∘_
}