view paper/src/AgdaProduct.agda @ 85:9d154c48a1f6

Update curry-howard isomorphism
author atton <atton@cr.ie.u-ryukyu.ac.jp>
date Thu, 09 Feb 2017 15:36:52 +0900
parents
children
line wrap: on
line source

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

fst : {A B : Set} -> A × B -> A
fst < a , _ > = a

snd : {A B : Set} -> A × B -> B
snd < _ , b > = b