]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground_2/relocation/rtmap_isuni.ma
update in ground_2, static_2, basic_2, apps_2, alpha_1
[helm.git] / matita / matita / contribs / lambdadelta / ground_2 / relocation / rtmap_isuni.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 include "ground_2/notation/relations/isuniform_1.ma".
16 include "ground_2/relocation/rtmap_isfin.ma".
17
18 (* RELOCATION MAP ***********************************************************)
19
20 inductive isuni: predicate rtmap ā‰
21 | isuni_isid: āˆ€f. šˆāŖfā« ā†’ isuni f
22 | isuni_next: āˆ€f. isuni f ā†’ āˆ€g. ā†‘f = g ā†’ isuni g
23 .
24
25 interpretation "test for uniformity (rtmap)"
26    'IsUniform f = (isuni f).
27
28 (* Basic inversion lemmas ***************************************************)
29
30 lemma isuni_inv_push: āˆ€g. š”āŖgā« ā†’ āˆ€f. ā«Æf = g ā†’ šˆāŖfā«.
31 #g * -g /2 width=3 by isid_inv_push/
32 #f #_ #g #H #x #Hx destruct elim (discr_push_next ā€¦ Hx)
33 qed-.
34
35 lemma isuni_inv_next: āˆ€g. š”āŖgā« ā†’ āˆ€f. ā†‘f = g ā†’ š”āŖfā«.
36 #g * -g #f #Hf
37 [ #x #Hx elim (isid_inv_next ā€¦ Hf ā€¦ Hx)
38 | #g #H #x #Hx destruct /2 width=1 by injective_push/
39 ]
40 qed-.
41
42 lemma isuni_split: āˆ€g. š”āŖgā« ā†’ (āˆƒāˆƒf. šˆāŖfā« & ā«Æf = g) āˆØ (āˆƒāˆƒf.š”āŖfā« & ā†‘f = g).
43 #g #H elim (pn_split g) * #f #Hf
44 /4 width=3 by isuni_inv_next, isuni_inv_push, or_introl, or_intror, ex2_intro/
45 qed-.
46
47 (* basic forward lemmas *****************************************************)
48
49 lemma isuni_fwd_push: āˆ€g. š”āŖgā« ā†’ āˆ€f. ā«Æf = g ā†’ š”āŖfā«.
50 /3 width=3 by isuni_inv_push, isuni_isid/ qed-.
51
52 (* Forward lemmas with test for finite colength *****************************)
53
54 lemma isuni_fwd_isfin: āˆ€f. š”āŖfā« ā†’ š…āŖfā«.
55 #f #H elim H -f /3 width=1 by isfin_next, isfin_isid/
56 qed-.