]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_disambiguation/tests/match.txt
ocaml 3.09 transition
[helm.git] / helm / ocaml / cic_disambiguation / tests / match.txt
index 8acbb1350214f6787aa17ae8575a1caa7c1b0846..87bb0159b72b93536b75569335780e84ecb43c4b 100644 (file)
@@ -10,6 +10,11 @@ match (le_n O): le with
 [ le_n \Rightarrow (refl_equal nat O)
 | (le_S x y) \Rightarrow (refl_equal nat O) ]
 
+[\lambda z:nat. \lambda h:(le (plus (plus O O) (plus O O)) z). (eq nat (plus (plus O O) (plus O O)) (plus (plus O O) (plus O O)))]
+match (le_n (plus (plus O O) (plus O O))): le with
+[ le_n \Rightarrow (refl_equal nat (plus (plus O O) (plus O O)))
+| (le_S x y) \Rightarrow (refl_equal nat (plus (plus O O) (plus O O))) ]
+
 (*
 [\lambda z:nat. \lambda h:(le 1 z). (le 0 z)]
 match (le_S 2 (le_n 1)): le with
@@ -22,6 +27,7 @@ match (le_S 0 0 (le_n 0)): le with
 [ le_n \Rightarrow (le_S 0 0 (le_n 0))
 | (le_S x y) \Rightarrow (le_S 0 (S x) (le_S 0 x y)) ]
 
+
 [\lambda x:bool. nat]
 match true:bool with
 [ true \Rightarrow O