X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fcontribs%2FRELATIONAL%2FNPlus%2Ffun.ma;h=271a7c6e475949614872175a546473b7fefbcebd;hb=aba1baf85bb8e6b3ea3e66a8c2d07601066d26bc;hp=d2d686c513831698e8859c5d64df006f3249f772;hpb=2b95f946837707c6ad30d1b8317d73c55cda3dc8;p=helm.git diff --git a/helm/software/matita/contribs/RELATIONAL/NPlus/fun.ma b/helm/software/matita/contribs/RELATIONAL/NPlus/fun.ma index d2d686c51..271a7c6e4 100644 --- a/helm/software/matita/contribs/RELATIONAL/NPlus/fun.ma +++ b/helm/software/matita/contribs/RELATIONAL/NPlus/fun.ma @@ -12,7 +12,7 @@ (* *) (**************************************************************************) -set "baseuri" "cic:/matita/RELATIONAL/NPlus/fun". + include "NPlus/inv.ma". @@ -20,21 +20,21 @@ include "NPlus/inv.ma". theorem nplus_total: \forall p,q. \exists r. p + q == r. intros 2. elim q; clear q; - [ auto | decompose. auto ]. + [ autobatch | decompose. autobatch ]. qed. theorem nplus_mono: \forall p,q,r1. (p + q == r1) \to \forall r2. (p + q == r2) \to r1 = r2. intros 4. elim H; clear H q r1; - [ lapply linear nplus_gen_zero_2 to H1 - | lapply linear nplus_gen_succ_2 to H3. decompose - ]; subst; auto. + [ lapply linear nplus_inv_zero_2 to H1 + | lapply linear nplus_inv_succ_2 to H3. decompose + ]; destruct; autobatch. qed. theorem nplus_inj_1: \forall p1, q, r. (p1 + q == r) \to \forall p2. (p2 + q == r) \to p2 = p1. intros 4. elim H; clear H q r; - [ lapply linear nplus_gen_zero_2 to H1 - | lapply linear nplus_gen_succ_2_3 to H3 - ]; auto. + [ lapply linear nplus_inv_zero_2 to H1 + | lapply linear nplus_inv_succ_2_3 to H3 + ]; autobatch. qed.