1
(* Check or-patterns *)
4
match x with ((((1 as x),_) | (_,x)), (_,(2 as y))|(y,_)) => (x,y) end.
6
Check (refl_equal _ : g ((1,2),(3,4)) = (1,3)).
8
Check (refl_equal _ : g ((1,4),(3,2)) = (1,2)).
10
Fixpoint max (n m:nat) {struct m} : nat :=
12
| S n', S m' => S (max n' m')
20
| B : nat -> nat -> I.
22
Definition foo (x:I) : nat :=
24
| A a b | B b a => S b