view Paper/src/AgdaProduct.agda.replaced @ 5:339fb67b4375

INIT rbt.agda
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Sun, 07 Nov 2021 00:51:16 +0900
parents c59202657321
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