]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/relocation/gr_coafter_ist_isf.ma
update in ground
[helm.git] / matita / matita / contribs / lambdadelta / ground / relocation / gr_coafter_ist_isf.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_pat_tls.ma".
16 include "ground/relocation/gr_isf_tls.ma".
17 include "ground/relocation/gr_ist_tls.ma".
18 include "ground/relocation/gr_coafter_nat_tls.ma".
19 include "ground/relocation/gr_coafter_isi.ma".
20
21 (* RELATIONAL CO-COMPOSITION FOR GENERIC RELOCATION MAPS ********************)
22
23 (*** H_coafter_isfin2_fwd *)
24 definition H_gr_coafter_des_ist_isf: predicate gr_map â‰
25            Îťf1. âˆ€f2. đ…❪f2❫ â†’ đ“❪f1❫ â†’ âˆ€f. f1 ~⊚ f2 â‰˜ f â†’  đ…❪f❫.
26
27 (* Destructions with gr_ist and gr_isf **************************************)
28
29 (*** coafter_isfin2_fwd_O_aux *)
30 fact gr_coafter_des_ist_isf_unit_aux:
31      âˆ€f1. @❪𝟏, f1❫ â‰˜ đŸ â†’ H_gr_coafter_des_ist_isf f1.
32 #f1 #Hf1 #f2 #H
33 generalize in match Hf1; generalize in match f1; -f1
34 @(gr_isf_ind â€Ś H) -f2
35 [ /3 width=4 by gr_coafter_isi_inv_dx, gr_isf_isi/ ]
36 #f2 #_ #IH #f1 #H #Hf1 #f #Hf
37 elim (gr_pat_inv_unit_bi â€Ś H) -H [ |*: // ] #g1 #H1
38 lapply (gr_ist_inv_push â€Ś Hf1 â€Ś H1) -Hf1 #Hg1
39 elim (Hg1 (𝟏)) #n #Hn
40 [ elim (gr_coafter_inv_push_bi â€Ś Hf) | elim (gr_coafter_inv_push_next â€Ś Hf)
41 ] -Hf [1,6: |*: // ] #g #Hg #H0 destruct
42 /5 width=6 by gr_isf_next, gr_isf_push, gr_isf_inv_tls, gr_ist_tls, gr_pat_unit_succ_tls, gr_coafter_tls_sn_tls/
43 qed-.
44
45 (*** coafter_isfin2_fwd_aux *)
46 fact gr_coafter_des_ist_isf_aux:
47      (∀f1. @❪𝟏, f1❫ â‰˜ đŸ â†’ H_gr_coafter_des_ist_isf f1) â†’
48      âˆ€i2,f1. @❪𝟏, f1❫ â‰˜ i2 â†’ H_gr_coafter_des_ist_isf f1.
49 #H0 #i2 elim i2 -i2 /2 width=1 by/ -H0
50 #i2 #IH #f1 #H1f1 #f2 #Hf2 #H2f1 #f #Hf
51 elim (gr_pat_inv_unit_succ â€Ś H1f1) -H1f1 [ |*: // ] #g1 #Hg1 #H1
52 elim (gr_coafter_inv_next_sn â€Ś Hf â€Ś H1) -Hf #g #Hg #H0
53 lapply (IH â€Ś Hg1 â€Ś Hg) -i2 -Hg
54 /2 width=4 by gr_ist_inv_next, gr_isf_push/ (* * full auto fails *)
55 qed-.
56
57 (*** coafter_isfin2_fwd *)
58 lemma gr_coafter_des_ist_isf: âˆ€f1. H_gr_coafter_des_ist_isf f1.
59 #f1 #f2 #Hf2 #Hf1 cases (Hf1 (𝟏))
60 /3 width=7 by gr_coafter_des_ist_isf_aux, gr_coafter_des_ist_isf_unit_aux/
61 qed-.