view src/product.agda @ 41:8fc2ac1f901f

Add delta definition in agda
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Fri, 13 Feb 2015 11:48:40 +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