X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fcontribs%2FRELATIONAL%2FNPlus%2Ffun.ma;h=4fcdab720b304f73e04e243f1c74b3a186f3e355;hb=d9824956d9132109ed5f23380a0a1f9c5181d18a;hp=66847cf934fcc7c603c709bd074a2a481bf8068d;hpb=ee31ecd9be54fb4a3d815f11d77e88c3c49ff363;p=helm.git diff --git a/helm/software/matita/contribs/RELATIONAL/NPlus/fun.ma b/helm/software/matita/contribs/RELATIONAL/NPlus/fun.ma index 66847cf93..4fcdab720 100644 --- a/helm/software/matita/contribs/RELATIONAL/NPlus/fun.ma +++ b/helm/software/matita/contribs/RELATIONAL/NPlus/fun.ma @@ -12,28 +12,28 @@ (* *) (**************************************************************************) -set "baseuri" "cic:/matita/RELATIONAL/NPlus/fun". + include "NPlus/inv.ma". (* Functional properties ****************************************************) -theorem nplus_total: \forall p,q. \exists r. p + q == r. - intros 2. elim q; clear q; - [ autobatch | decompose. autobatch ]. +theorem nplus_total: ∀p,q. ∃r. p ⊕ q ≍ r. + intros; elim q; clear q; + [ 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; +theorem nplus_mono: ∀p,q,r1. p ⊕ q ≍ r1 → + ∀r2. p ⊕ q ≍ r2 → r1 = r2. + intros 4; elim H; clear H q r1; [ lapply linear nplus_inv_zero_2 to H1 | lapply linear nplus_inv_succ_2 to H3. decompose - ]; subst; autobatch. + ]; 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; +theorem nplus_inj_1: ∀p1, q, r. p1 ⊕ q ≍ r → + ∀p2. p2 ⊕ q ≍ r → p2 = p1. + intros 4; elim H; clear H q r; [ lapply linear nplus_inv_zero_2 to H1 | lapply linear nplus_inv_succ_2_3 to H3 ]; autobatch.