X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fground%2Farith%2Fnat_minus_plus.ma;h=3e018b7759cfa8b16bb6ce6c0ac779941bdf3539;hp=bf5cf5fee5833a7cf22086fbb01a967eeb8c49a9;hb=21de0d35017656c5a55528390b54b0b2ae395b44;hpb=68e028d053806177e218ee1a5f8778d3011bef83 diff --git a/matita/matita/contribs/lambdadelta/ground/arith/nat_minus_plus.ma b/matita/matita/contribs/lambdadelta/ground/arith/nat_minus_plus.ma index bf5cf5fee..3e018b775 100644 --- a/matita/matita/contribs/lambdadelta/ground/arith/nat_minus_plus.ma +++ b/matita/matita/contribs/lambdadelta/ground/arith/nat_minus_plus.ma @@ -17,11 +17,11 @@ include "ground/arith/nat_minus.ma". (* SUBTRACTION FOR NON-NEGATIVE INTEGERS ************************************) -(* Rewrites with nplus ******************************************************) +(* Constructions with nplus *************************************************) (*** minus_plus_m_m *) lemma nminus_plus_sn_refl_sn (m) (n): m = m + n - n. -#m #n elim n -n // +#m #n @(nat_ind_succ … n) -n // #n #IH nplus_succ_shift #Ho - elim (IH … Ho) -IH -Ho * #_ #H - elim (eq_inv_nzero_succ … H) - ] +| #m #o #Ho + lapply (eq_inv_nplus_bi_sn … (𝟎) Ho) -Ho + /3 width=1 by or_intror, conj/ +| #m #n #IH #o + nplus_succ_shift #Ho + elim (IH … Ho) -IH -Ho * #_ #H + elim (eq_inv_nzero_succ … H) ] qed-.