1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 set "baseuri" "cic:/matita/RELATIONAL/NLE/inv".
17 include "NPlus/inv.ma".
18 include "NLE/defs.ma".
20 theorem nle_inv_succ_1: \forall x,y. x < y \to
21 \exists z. y = succ z \land x <= z.
23 lapply linear nplus_inv_succ_2 to H1.
24 decompose. subst. auto depth = 4.
27 theorem nle_inv_succ_succ: \forall x,y. x < succ y \to x <= y.
29 lapply linear nle_inv_succ_1 to H. decompose.
30 destruct H1. clear H1. subst.
34 theorem nle_inv_succ_zero: \forall x. x < zero \to False.
36 lapply linear nle_inv_succ_1 to H. decompose.
40 theorem nle_inv_zero_2: \forall x. x <= zero \to x = zero.
41 intros 1. elim x; clear x; intros;
43 | lapply linear nle_inv_succ_zero to H1. decompose.
47 theorem nle_inv_succ_2: \forall y,x. x <= succ y \to
48 x = zero \lor \exists z. x = succ z \land z <= y.
49 intros 2; elim x; clear x; intros;
51 | lapply linear nle_inv_succ_succ to H1.