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 include "ground/relocation/pr_isi_eq.ma".
16 include "ground/relocation/pr_sor_eq.ma".
17 include "ground/relocation/pr_sor_sor.ma".
19 (* RELATIONAL UNION FOR PARTIAL RELOCATION MAPS *****************************)
21 (* Constructions with pr_isi ************************************************)
24 corec lemma pr_sor_isi_sn:
25 โf1. ๐โจf1โฉ โ โf2. f1 โ f2 โ f2.
27 #f1 #g1 #Hf1 #H1 #f2 cases (pr_map_split_tl f2)
28 /3 width=7 by pr_sor_push_bi, pr_sor_push_next/
32 corec lemma pr_sor_isi_dx:
33 โf2. ๐โจf2โฉ โ โf1. f1 โ f2 โ f1.
35 #f2 #g2 #Hf2 #H2 #f1 cases (pr_map_split_tl f1)
36 /3 width=7 by pr_sor_push_bi, pr_sor_next_push/
40 lemma pr_sor_isi_bi_isi:
41 โf1,f2,f. ๐โจf1โฉ โ ๐โจf2โฉ โ ๐โจfโฉ โ f1 โ f2 โ f.
42 /4 width=3 by pr_sor_eq_repl_back_dx, pr_sor_eq_repl_back_sn, pr_isi_inv_eq_repl/ qed.
45 (* Destructions with pr_isi *************************************************)
48 corec lemma pr_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 pr_isi_inv_push, pr_isi_push/ ]
53 cases (pr_isi_inv_next โฆ Hg โฆ H)
57 corec lemma pr_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 pr_isi_inv_push, pr_isi_push/ ]
62 cases (pr_isi_inv_next โฆ Hg โฆ H)
65 (* Inversions with pr_isi ***************************************************)
67 (*** sor_isid_inv_sn *)
68 lemma pr_sor_inv_isi_sn:
69 โf1,f2,f. f1 โ f2 โ f โ ๐โจf1โฉ โ f2 โก f.
70 /3 width=4 by pr_sor_isi_sn, pr_sor_mono/
73 (*** sor_isid_inv_dx *)
74 lemma pr_sor_inv_isi_dx:
75 โf1,f2,f. f1 โ f2 โ f โ ๐โจf2โฉ โ f1 โก f.
76 /3 width=4 by pr_sor_isi_dx, pr_sor_mono/
81 โf1,f2,f. f1 โ f2 โ f โ ๐โจfโฉ โ
82 โงโง ๐โจf1โฉ & ๐โจf2โฉ.
83 /3 width=4 by pr_sor_des_isi_dx, pr_sor_des_isi_sn, conj/ qed-.