aboutsummaryrefslogtreecommitdiff
path: root/Cospan/Decorated.agda
blob: 60be0a41d78678c150defb713e03312383f5d097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{-# OPTIONS --without-K --safe #-}

open import Category.Cocomplete.Finitely.Bundle using (FinitelyCocompleteCategory)
open import Categories.Functor.Monoidal.Symmetric using (module Strong)
open import Categories.Category.Monoidal.Bundle using (SymmetricMonoidalCategory)

open FinitelyCocompleteCategory using () renaming (symmetricMonoidalCategory to smc)
open Strong using (SymmetricMonoidalFunctor)

module Cospan.Decorated
    {o  e}
    (C : FinitelyCocompleteCategory o  e)
    {D : SymmetricMonoidalCategory o  e}
    (F : SymmetricMonoidalFunctor (smc C) D)
  where

module C = FinitelyCocompleteCategory C
module D = SymmetricMonoidalCategory D

open import Category.Instance.Cospans C using (Cospan)
open import Level using (_⊔_)


record DecoratedCospan (A B : C.Obj) : Set (o  ) where

  open SymmetricMonoidalFunctor F using (F₀)

  field
    cospan : Cospan A B

  open Cospan cospan public

  field
    decoration : D.unit D.⇒ F₀ N