aboutsummaryrefslogtreecommitdiff
path: root/Cospan
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-09-19 12:34:28 -0500
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-09-19 12:34:28 -0500
commit8a832a39547c21a0cde9cd3671f0368cd35c26c0 (patch)
tree82710a665db81d84c5e592c586211304a3fa6d2c /Cospan
parentdc3b799d6f9cdd4fb0b2b32f323b7128ccc14a80 (diff)
Add decorated cospans
Diffstat (limited to 'Cospan')
-rw-r--r--Cospan/Decorated.agda37
1 files changed, 37 insertions, 0 deletions
diff --git a/Cospan/Decorated.agda b/Cospan/Decorated.agda
new file mode 100644
index 0000000..5178435
--- /dev/null
+++ b/Cospan/Decorated.agda
@@ -0,0 +1,37 @@
+{-# OPTIONS --without-K --safe #-}
+
+open import Categories.Category.Cocomplete.Finitely using (FinitelyCocomplete)
+open import Category.Cocomplete.Finitely.Bundle using (FinitelyCocompleteCategory)
+open import Categories.Functor.Monoidal.Symmetric using (module Strong)
+open Strong using (SymmetricMonoidalFunctor)
+open import Categories.Category.Monoidal.Bundle using (SymmetricMonoidalCategory)
+open import Category.Instance.Setoids.SymmetricMonoidal using (Setoids-×)
+
+open FinitelyCocompleteCategory using () renaming (symmetricMonoidalCategory to smc)
+
+module Cospan.Decorated
+ {o ℓ e}
+ (C : FinitelyCocompleteCategory o ℓ e)
+ (F : SymmetricMonoidalFunctor (smc C) (Setoids-× {ℓ}))
+ where
+
+open FinitelyCocompleteCategory C
+
+open import Category.Instance.Cospans C using (Cospan)
+open import Level using (_⊔_)
+open import Relation.Binary.Bundles using (Setoid)
+
+open Setoid using () renaming (Carrier to ∣_∣)
+
+
+record DecoratedCospan (A B : Obj) : Set (o ⊔ ℓ) where
+
+ open SymmetricMonoidalFunctor F using (F₀)
+
+ field
+ cospan : Cospan A B
+
+ open Cospan cospan public
+
+ field
+ decoration : ∣ F₀ N ∣