view src/product.agda @ 42:4cc65012412f

Add proofs of functor-laws on delta
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Fri, 13 Feb 2015 17:13:23 +0900
parents de3397af1f8d
children
line wrap: on
line source

module product where

data _×_ (A B : Set) : Set where
  <_,_> : A -> B -> A × B

constructProduct : {A B : Set} -> A -> B -> A × B
constructProduct a b = < a , b >

patternMatchProduct : {A B : Set} -> A × B -> B
patternMatchProduct (< a , b >) = b