view paper/src/AgdaProduct.agda.replaced @ 4:bf1f62556b81

add while_test_init_imple
author soto
date Thu, 11 Feb 2021 17:03:31 +0900
parents 959f4b34d6f4
children
line wrap: on
line source

data _@$\times$@_ (A B : Set) : Set where
  <_,_> : A @$\rightarrow$@ B @$\rightarrow$@ A @$\times$@ B

fst : {A B : Set} @$\rightarrow$@ A @$\times$@ B @$\rightarrow$@ A
fst < a , _ > = a

snd : {A B : Set} @$\rightarrow$@ A @$\times$@ B @$\rightarrow$@ B
snd < _ , b > = b