Mercurial > hg > Papers > 2018 > nozomi-master
annotate 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 |
rev | line source |
---|---|
85
9d154c48a1f6
Update curry-howard isomorphism
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 data _×_ (A B : Set) : Set where |
9d154c48a1f6
Update curry-howard isomorphism
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 <_,_> : A -> B -> A × B |
9d154c48a1f6
Update curry-howard isomorphism
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 |
9d154c48a1f6
Update curry-howard isomorphism
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 fst : {A B : Set} -> A × B -> A |
9d154c48a1f6
Update curry-howard isomorphism
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 fst < a , _ > = a |
9d154c48a1f6
Update curry-howard isomorphism
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 |
9d154c48a1f6
Update curry-howard isomorphism
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 snd : {A B : Set} -> A × B -> B |
9d154c48a1f6
Update curry-howard isomorphism
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 snd < _ , b > = b |