view paper/src/product.agda @ 92:0354d3693324 default tip

Added tag paper_final for changeset 6a12eb22be8c
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Sun, 01 Mar 2015 13:08:51 +0900
parents 1181b4facaf9
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