Mercurial > hg > Members > atton > delta_monad
diff agda/delta.agda @ 96:dfe8c67390bd
Unify Levels in delta
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 20 Jan 2015 16:25:53 +0900 |
parents | bcd4fe52a504 |
children | ebd0d6e2772c |
line wrap: on
line diff
--- a/agda/delta.agda Mon Jan 19 17:47:55 2015 +0900 +++ b/agda/delta.agda Tue Jan 20 16:25:53 2015 +0900 @@ -32,7 +32,7 @@ -- Functor -delta-fmap : {l ll : Level} {A : Set l} {B : Set ll} -> (A -> B) -> (Delta A) -> (Delta B) +delta-fmap : {l : Level} {A B : Set l} -> (A -> B) -> (Delta A) -> (Delta B) delta-fmap f (mono x) = mono (f x) delta-fmap f (delta x d) = delta (f x) (delta-fmap f d) @@ -100,12 +100,12 @@ tailDelta (mono x) ≡⟨ refl ⟩ mono x ∎ -head-delta-natural-transformation : {l ll : Level} {A : Set l} {B : Set ll} +head-delta-natural-transformation : {l : Level} {A B : Set l} -> (f : A -> B) -> (d : Delta A) -> headDelta (delta-fmap f d) ≡ f (headDelta d) head-delta-natural-transformation f (mono x) = refl head-delta-natural-transformation f (delta x d) = refl -n-tail-natural-transformation : {l ll : Level} {A : Set l} {B : Set ll} +n-tail-natural-transformation : {l : Level} {A B : Set l} -> (n : Nat) -> (f : A -> B) -> (d : Delta A) -> n-tail n (delta-fmap f d) ≡ delta-fmap f (n-tail n d) n-tail-natural-transformation O f d = refl n-tail-natural-transformation (S n) f (mono x) = begin