view src/delta_covariant.agda @ 50:37a832dff044

Add DeltaM example
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Sun, 15 Feb 2015 17:56:51 +0900
parents 4cc65012412f
children
line wrap: on
line source

delta-covariant : {l : Level} {n : Nat} {A B C : Set l} ->
            (f : B -> C) -> (g : A -> B) -> (d : Delta A (S n)) ->
            (delta-fmap (f ∙ g)) d ≡ ((delta-fmap f) ∙ (delta-fmap g)) d
delta-covariant f g (mono x)    = refl
delta-covariant f g (delta x d) = cong (delta (f (g x)))
                                       (delta-covariant f g d)