X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Fmatch_inference.ma;h=1e43ce145ebaa0b181f3e9dab78297279761b239;hb=349a0e23813a7f33853e1f8fe48230276ac22934;hp=a84b3c373853fd6138d5dd525e3a1e3be9824ba3;hpb=ec6b4df6d02ff30a7a1cd784831017b05b1d46dd;p=helm.git diff --git a/helm/matita/tests/match_inference.ma b/helm/matita/tests/match_inference.ma index a84b3c373..1e43ce145 100644 --- a/helm/matita/tests/match_inference.ma +++ b/helm/matita/tests/match_inference.ma @@ -6,12 +6,24 @@ inductive nat:Set \def | O : nat | S : nat \to nat. -inductive empty : Set \def . - definition pos2nat : pos \to nat \def \lambda x:pos . match x with [ one \Rightarrow O | (next z) \Rightarrow O]. -definition empty2nat : empty \to nat \def - \lambda x : empty . S (match x in empty with []). \ No newline at end of file +inductive empty (x:nat) : nat \to Set \def . + +definition empty2nat : (empty O O) \to nat \def + \lambda x : (empty O O). S (match x in empty with []). + +inductive le (n:nat) : nat \to Prop \def + | le_n : le n n + | le_S : \forall m:nat. le n m \to le n (S m). + +inductive True : Prop \def + I : True. + +definition r : True \def + match (le_n O) with + [ le_n \Rightarrow I + | (le_S y p') \Rightarrow I ].