view paper/src/AgdaProduct.agda.replaced @ 19:046b2b20d6c7 default tip

fix
author ryokka
date Mon, 09 Mar 2020 11:25:49 +0900
parents c7acb9211784
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