X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcontribs%2FRELATIONAL%2FNPlus%2Finv.ma;h=b6ac60873ae2788f95fa9569a754f9949319b913;hb=cf5540f056d6d4fa1612e08d41253d1d009f5d44;hp=ea196cd6d9fbb2a9bcf288b4a8af17eb6b9f339e;hpb=72a05c70f5ab9dabb704f1dc334920b10a8f4bb9;p=helm.git diff --git a/matita/contribs/RELATIONAL/NPlus/inv.ma b/matita/contribs/RELATIONAL/NPlus/inv.ma index ea196cd6d..b6ac60873 100644 --- a/matita/contribs/RELATIONAL/NPlus/inv.ma +++ b/matita/contribs/RELATIONAL/NPlus/inv.ma @@ -26,29 +26,29 @@ theorem nplus_inv_succ_1: \forall p,q,r. ((succ p) + q == r) \to \exists s. r = (succ s) \land p + q == s. intros. elim H; clear H q r; intros; [ autobatch depth = 4 - | clear H1. decompose. subst. autobatch depth = 4 + | clear H1. decompose. destruct. autobatch depth = 4 ] qed. theorem nplus_inv_zero_2: \forall p,r. (p + zero == r) \to p = r. - intros. inversion H; clear H; intros; subst. autobatch. + intros. inversion H; clear H; intros; destruct. autobatch. qed. theorem nplus_inv_succ_2: \forall p,q,r. (p + (succ q) == r) \to \exists s. r = (succ s) \land p + q == s. - intros. inversion H; clear H; intros; subst. + intros. inversion H; clear H; intros; destruct. autobatch depth = 4. qed. theorem nplus_inv_zero_3: \forall p,q. (p + q == zero) \to p = zero \land q = zero. - intros. inversion H; clear H; intros; subst. autobatch. + intros. inversion H; clear H; intros; destruct. autobatch. qed. theorem nplus_inv_succ_3: \forall p,q,r. (p + q == (succ r)) \to \exists s. p = succ s \land (s + q == r) \lor q = succ s \land p + s == r. - intros. inversion H; clear H; intros; subst; + intros. inversion H; clear H; intros; destruct; autobatch depth = 4. qed. @@ -57,13 +57,13 @@ qed. theorem nplus_inv_succ_2_3: \forall p,q,r. (p + (succ q) == (succ r)) \to p + q == r. intros. - lapply linear nplus_inv_succ_2 to H. decompose. subst. autobatch. + lapply linear nplus_inv_succ_2 to H. decompose. destruct. autobatch. qed. theorem nplus_inv_succ_1_3: \forall p,q,r. ((succ p) + q == (succ r)) \to p + q == r. intros. - lapply linear nplus_inv_succ_1 to H. decompose. subst. autobatch. + lapply linear nplus_inv_succ_1 to H. decompose. destruct. autobatch. qed. theorem nplus_inv_eq_2_3: \forall p,q. (p + q == q) \to p = zero.