X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcontribs%2FRELATIONAL%2FNLE%2Fprops.ma;h=db1476309eeca1e40e17833d0705519e1e49c6b8;hb=a2f9236b189b39bb5e7d864991cae29c9f9cb67f;hp=066e056e0435f74c01f0dc43970bbce5a2575994;hpb=648f1521fa36f3c19cca3b3a29bbf3e8146eca4e;p=helm.git diff --git a/matita/contribs/RELATIONAL/NLE/props.ma b/matita/contribs/RELATIONAL/NLE/props.ma index 066e056e0..db1476309 100644 --- a/matita/contribs/RELATIONAL/NLE/props.ma +++ b/matita/contribs/RELATIONAL/NLE/props.ma @@ -14,23 +14,18 @@ set "baseuri" "cic:/matita/RELATIONAL/NLE/props". -include "NLE/fwd.ma". - -theorem nle_refl: \forall x. x <= x. - intros 1; elim x; clear x; intros; auto new. -qed. +include "NLE/order.ma". theorem nle_trans_succ: \forall x,y. x <= y \to x <= succ y. - intros. elim H; clear H x y; intros; auto new. + intros. elim H; clear H x y; auto. qed. -theorem nle_lt_or_eq: \forall y,x. x <= y \to x < y \lor x = y. - intros 1. elim y; clear y; intros; - [ lapply linear nle_gen_zero_2 to H. auto new - | lapply linear nle_gen_succ_2 to H1. decompose; - [ subst. auto new - | lapply linear H to H3 as H0. decompose; - subst; auto new - ] +theorem nle_gt_or_le: \forall x, y. y > x \lor y <= x. + intros 2; elim y; clear y; + [ auto + | decompose; + [ lapply linear nle_inv_succ_1 to H1 + | lapply linear nle_lt_or_eq to H1 + ]; decompose; subst; auto depth = 4 ]. qed.