]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/relocation/gr_uni_eq.ma
update in ground
[helm.git] / matita / matita / contribs / lambdadelta / ground / relocation / gr_uni_eq.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/arith/nat_pred_succ.ma".
16 include "ground/relocation/gr_tl_eq.ma".
17 include "ground/relocation/gr_uni.ma".
18
19 (* UNIFORM ELEMENTS FOR GENERIC RELOCATION MAPS *****************************)
20
21 (* Inversions with gr_eq ****************************************************)
22
23 (*** uni_inv_push_dx *)
24 lemma gr_eq_inv_uni_push (n) (g):  š®āØnā© ā‰” ā«Æg ā†’ āˆ§āˆ§ šŸŽ = n & š¢ ā‰” g.
25 #n @(nat_ind_succ ā€¦ n) -n 
26 [ /3 width=5 by gr_eq_inv_push_bi, conj/
27 | #n #_ #f <gr_uni_succ #H elim (gr_eq_inv_next_push ā€¦ H) -H //
28 ]
29 qed-.
30
31 (*** uni_inv_push_sn *)
32 lemma gr_eq_inv_push_uni (n) (g): ā«Æg ā‰” š®āØnā© ā†’ āˆ§āˆ§ šŸŽ = n & š¢ ā‰” g.
33 /3 width=1 by gr_eq_inv_uni_push, gr_eq_sym/ qed-.
34
35 (*** uni_inv_next_dx *)
36 lemma gr_eq_inv_uni_next (n) (g): š®āØnā© ā‰” ā†‘g ā†’ āˆ§āˆ§ š®āØā†“nā© ā‰” g & ā†‘ā†“n = n.
37 #n @(nat_ind_succ ā€¦ n) -n
38 [ #g <gr_uni_zero <gr_id_unfold #H elim (gr_eq_inv_push_next ā€¦ H) -H //
39 | #n #_ #g <gr_uni_succ /3 width=5 by gr_eq_inv_next_bi, conj/
40 ]
41 qed-.
42
43 (*** uni_inv_next_sn *)
44 lemma gr_eq_inv_next_uni (n) (g): ā†‘g ā‰” š®āØnā© ā†’ āˆ§āˆ§ š®āØā†“nā© ā‰” g & ā†‘ā†“n = n.
45 /3 width=1 by gr_eq_inv_uni_next, gr_eq_sym/ qed-.
46
47 (* Inversions with gr_id and gr_eq ******************************************)
48
49 (*** uni_inv_id_dx *)
50 lemma gr_eq_inv_uni_id (n): š®āØnā© ā‰” š¢ ā†’ šŸŽ = n.
51 #n <gr_id_unfold #H elim (gr_eq_inv_uni_push ā€¦ H) -H //
52 qed-.
53
54 (*** uni_inv_id_sn *)
55 lemma gr_eq_inv_id_uni (n):  š¢ ā‰” š®āØnā© ā†’ šŸŽ = n.
56 /3 width=1 by gr_eq_inv_uni_id, gr_eq_sym/ qed-.