Morphisms of coalgebras of the maybe monad
Content created by Fredrik Bakke.
Created on 2025-01-04.
Last modified on 2025-01-04.
module foundation.morphisms-coalgebras-maybe where
Imports
open import foundation.coalgebras-maybe open import foundation.commuting-squares-of-maps open import foundation.dependent-pair-types open import foundation.maybe open import foundation.universe-levels open import trees.polynomial-endofunctors
Idea
Given two coalgebras of the
maybe monad η : X → Maybe X
, η' : Y → Maybe Y
, then a
map f : X → Y
is a
morphism of coalgebras¶
if the square
f
X ----------> Y
| |
| |
∨ ∨
Maybe X ----> Maybe Y
Maybe f
Definitions
coherence-hom-coalgebra-Maybe : {l1 l2 : Level} (X : coalgebra-Maybe l1) (Y : coalgebra-Maybe l2) → (type-coalgebra-Maybe X → type-coalgebra-Maybe Y) → UU (l1 ⊔ l2) coherence-hom-coalgebra-Maybe X Y f = coherence-square-maps ( f) ( map-coalgebra-Maybe X) ( map-coalgebra-Maybe Y) ( map-Maybe f) hom-coalgebra-Maybe : {l1 l2 : Level} (X : coalgebra-Maybe l1) (Y : coalgebra-Maybe l2) → UU (l1 ⊔ l2) hom-coalgebra-Maybe X Y = Σ ( type-coalgebra-Maybe X → type-coalgebra-Maybe Y) ( coherence-hom-coalgebra-Maybe X Y) module _ {l1 l2 : Level} (X : coalgebra-Maybe l1) (Y : coalgebra-Maybe l2) (f : hom-coalgebra-Maybe X Y) where map-hom-coalgebra-Maybe : type-coalgebra-Maybe X → type-coalgebra-Maybe Y map-hom-coalgebra-Maybe = pr1 f coh-hom-coalgebra-Maybe : coherence-hom-coalgebra-Maybe X Y map-hom-coalgebra-Maybe coh-hom-coalgebra-Maybe = pr2 f
Recent changes
- 2025-01-04. Fredrik Bakke. Coinductive definition of the conatural numbers (#1232).