]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/tests/paratest.ma
Active goals are now demodulated after selecting a positive clause.
[helm.git] / helm / software / matita / tests / paratest.ma
index 68fe4cdde555e7ce9db3a560a47b8708e6abcee6..93970a1d495e4ce2a96d66652356eb67e32449b2 100644 (file)
 
 include "nat/plus.ma".
 
-ntheorem boo: 
-   ((λx.x = x) ?) → 0 = 0. 
-##[ #H; nwhd in H ⊢ %; nauto by H.
+(*ntheorem boo:
+   (∀x. x = x) → 0 = 0. 
+##[ #H; nwhd in H ⊢ %; nauto by H.*)
+
+ntheorem bboo:
+  (∀x. x + 0 = x) ->
+  (∀x, y. x + S y = S (x + y)) →
+  (∀x, y. x + y = y + x) →
+  3 + 2 = 5.
+#H; #H1; #H2; nauto by H, H1. H2.
   
 ntheorem foo:  
    ((λx.x + 0 = x) ?) → 
    ((λx,y.x + S y = S (x + y)) ? ?) →
-   ((λx,y.y + x = x + y) ? ?) →
-   ∀x. ((λz. x + x = z + z) ?). 
+   ((λx,y.x y = x y) ? ?) →
+   ∀x. ((λz. x + x = z + z) ?). 
 ##[ #H; #H1; #H2; #x; nwhd in H H1 H2 ⊢ %; nauto by H, H1, H2.
\ No newline at end of file