]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/relocation/gr_sor_isi.ma
update in ground
[helm.git] / matita / matita / contribs / lambdadelta / ground / relocation / gr_sor_isi.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_eq.ma".
16 include "ground/relocation/gr_sor_eq.ma".
17 include "ground/relocation/gr_sor_sor.ma".
18
19 (* RELATIONAL UNION FOR GENERIC RELOCATION MAPS *****************************)
20
21 (* Constructions with gr_isi ************************************************)
22
23 (*** sor_isid_sn *)
24 corec lemma gr_sor_isi_sn:
25             โˆ€f1. ๐ˆโชf1โซ โ†’ โˆ€f2. f1 โ‹“ f2 โ‰˜ f2.
26 #f1 * -f1
27 #f1 #g1 #Hf1 #H1 #f2 cases (gr_map_split_tl f2)
28 /3 width=7 by gr_sor_push_bi, gr_sor_push_next/
29 qed.
30
31 (*** sor_isid_dx *)
32 corec lemma gr_sor_isi_dx:
33             โˆ€f2. ๐ˆโชf2โซ โ†’ โˆ€f1. f1 โ‹“ f2 โ‰˜ f1.
34 #f2 * -f2
35 #f2 #g2 #Hf2 #H2 #f1 cases (gr_map_split_tl f1)
36 /3 width=7 by gr_sor_push_bi, gr_sor_next_push/
37 qed.
38
39 (*** sor_isid *)
40 lemma gr_sor_isi_bi_isi:
41       โˆ€f1,f2,f. ๐ˆโชf1โซ โ†’ ๐ˆโชf2โซ โ†’ ๐ˆโชfโซ โ†’ f1 โ‹“ f2 โ‰˜ f.
42 /4 width=3 by gr_sor_eq_repl_back_dx, gr_sor_eq_repl_back_sn, gr_isi_inv_eq_repl/ qed.
43
44
45 (* Destructions with gr_isi *************************************************)
46
47 (*** sor_fwd_isid1 *)
48 corec lemma gr_sor_des_isi_sn:
49             โˆ€f1,f2,f. f1 โ‹“ f2 โ‰˜ f โ†’ ๐ˆโชfโซ โ†’ ๐ˆโชf1โซ.
50 #f1 #f2 #f * -f1 -f2 -f
51 #f1 #f2 #f #g1 #g2 #g #Hf #H1 #H2 #H #Hg
52 [ /4 width=6 by gr_isi_inv_push, gr_isi_push/ ]
53 cases (gr_isi_inv_next โ€ฆ Hg โ€ฆ H)
54 qed-.
55
56 (*** sor_fwd_isid2 *)
57 corec lemma gr_sor_des_isi_dx:
58             โˆ€f1,f2,f. f1 โ‹“ f2 โ‰˜ f โ†’ ๐ˆโชfโซ โ†’ ๐ˆโชf2โซ.
59 #f1 #f2 #f * -f1 -f2 -f
60 #f1 #f2 #f #g1 #g2 #g #Hf #H1 #H2 #H #Hg
61 [ /4 width=6 by gr_isi_inv_push, gr_isi_push/ ]
62 cases (gr_isi_inv_next โ€ฆ Hg โ€ฆ H)
63 qed-.
64
65 (* Inversions with gr_isi ***************************************************)
66
67 (*** sor_isid_inv_sn *)
68 lemma gr_sor_inv_isi_sn:
69       โˆ€f1,f2,f. f1 โ‹“ f2 โ‰˜ f โ†’ ๐ˆโชf1โซ โ†’ f2 โ‰ก f.
70 /3 width=4 by gr_sor_isi_sn, gr_sor_mono/
71 qed-.
72
73 (*** sor_isid_inv_dx *)
74 lemma gr_sor_inv_isi_dx:
75       โˆ€f1,f2,f. f1 โ‹“ f2 โ‰˜ f โ†’ ๐ˆโชf2โซ โ†’ f1 โ‰ก f.
76 /3 width=4 by gr_sor_isi_dx, gr_sor_mono/
77 qed-.
78
79 (*** sor_inv_isid3 *)
80 lemma gr_sor_inv_isi:
81       โˆ€f1,f2,f. f1 โ‹“ f2 โ‰˜ f โ†’ ๐ˆโชfโซ โ†’
82       โˆงโˆง ๐ˆโชf1โซ & ๐ˆโชf2โซ.
83 /3 width=4 by gr_sor_des_isi_dx, gr_sor_des_isi_sn, conj/ qed-.