]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/relocation/gr_isu_uni.ma
update in ground
[helm.git] / matita / matita / contribs / lambdadelta / ground / relocation / gr_isu_uni.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/relocation/gr_isi_uni.ma".
16 include "ground/relocation/gr_isu.ma".
17
18 (* UNIFORMITY CONDITION FOR GENERIC RELOCATION MAPS *************************)
19
20 (* Constructions with gr_uni ************************************************)
21
22 (*** isuni_uni *)
23 lemma gr_isu_uni (n): 𝐔❪𝐮❨n❩❫.
24 #n @(nat_ind_succ … n) -n
25 /3 width=3 by gr_isu_isi, gr_isu_next/
26 qed.
27
28 (*** uni_inv_isuni *)
29 lemma gr_isu_eq_repl_back:
30       gr_eq_repl_back … gr_isu.
31 #f1 #H elim H -f1
32 [ /3 width=3 by gr_isu_isi, gr_isi_eq_repl_back/
33 | #f1 #_ #g1 * #IH #f2 #H -g1
34   elim (gr_eq_inv_next_sn … H) -H
35   /3 width=3 by gr_isu_next/
36 ]
37 qed-.
38
39 lemma gr_isu_eq_repl_fwd:
40       gr_eq_repl_fwd … gr_isu.
41 /3 width=3 by gr_isu_eq_repl_back, gr_eq_repl_sym/ qed-.
42
43 (* Inversions with gr_uni ***************************************************)
44
45 (*** uni_isuni *)
46 lemma gr_isu_inv_uni (f): 𝐔❪f❫ → ∃n. 𝐮❨n❩ ≡ f.
47 #f #H elim H -f
48 [ /3 width=2 by gr_isi_inv_uni, ex_intro/
49 | #f #_ #g #H * /3 width=6 by gr_eq_next, ex_intro/
50 ]
51 qed-.