1 set "baseuri" "cic:/matita/tests/".
3 inductive nat : Set \def
7 inductive le (n:nat) : nat \to Prop \def
9 | leS : \forall m. le n m \to le n (S m).
11 alias symbol "eq" (instance 0) = "leibnitz's equality".
13 theorem test_inversion: \forall n. le n O \to n=O.
19 generalize Hcut. (* non attaccata. Dovrebbe dare 0=0 -> n=0 *)
20 apply (le_ind ? (\lambda x. O=x \to n=x) ? ? ? H).
26 (* Piu' semplice e non lascia l'ipotesi inutile Hcut *)
27 alias id "refl_equal" = "cic:/Coq/Init/Logic/eq.ind#xpointer(1/1/1)".
28 theorem test_inversion2: \forall n. le n O \to n=O.
30 generalize (refl_equal nat O).
31 apply (le_ind ? (\lambda x. O=x \to n=x) ? ? ? H).