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 "delayed_updating/substitution/fsubst.ma".
16 include "delayed_updating/syntax/prototerm_constructors.ma".
17 include "ground/lib/subset_equivalence.ma".
19 (* FOCALIZED SUBSTITUTION ***************************************************)
21 (* Constructions with constructors for prototerm ****************************)
23 lemma fsubst_abst_hd (t) (u) (p):
24 š.(t[āpāu]) ā (š.t)[āšāpāu].
27 elim (in_comp_inv_abst ā¦ Hr) -Hr #s #H0 * *
29 /3 width=3 by ex2_intro, or_introl/
32 [ /2 width=1 by in_comp_abst_hd/ ]
33 #s0 <list_append_rcons_dx #Hs0
34 elim (eq_inv_list_rcons_bi ????? Hs0) -Hs0 #H1 #H2 destruct
39 /4 width=3 by in_comp_abst_hd, ex2_intro, or_introl/
41 elim (in_comp_inv_abst ā¦ H1r) -H1r #s #H0 #Hs destruct
42 /5 width=2 by in_comp_abst_hd, conj, or_intror/
47 lemma fsubst_appl_sd (v) (t) (u) (p):
48 ļ¼ v[āpāu].t ā (ļ¼ v.t)[āš¦āpāu].
51 elim (in_comp_inv_appl ā¦ Hr) -Hr * #s #H0
54 /3 width=3 by ex2_intro, or_introl/
57 [ /2 width=1 by in_comp_appl_sd/ ]
58 #s0 <list_append_rcons_dx #Hs0
59 elim (eq_inv_list_rcons_bi ????? Hs0) -Hs0 #H1 #H2 destruct
63 @or_intror @conj [ /2 width=1 by in_comp_appl_hd/ ]
64 #r <list_append_rcons_dx #H0
65 elim (eq_inv_list_rcons_bi ????? H0) -H0 #H1 #H2 destruct
69 /4 width=3 by in_comp_appl_sd, ex2_intro, or_introl/
71 elim (in_comp_inv_appl ā¦ H1r) -H1r * #s #H0 #Hs destruct
72 /5 width=2 by in_comp_appl_hd, in_comp_appl_sd, or_intror, conj/
77 lemma fsubst_appl_hd (v) (t) (u) (p):
78 ļ¼ v.(t[āpāu]) ā (ļ¼ v.t)[āšāpāu].
81 elim (in_comp_inv_appl ā¦ Hr) -Hr * #s #H0
83 @or_intror @conj [ /2 width=1 by in_comp_appl_sd/ ]
84 #r <list_append_rcons_dx #H0
85 elim (eq_inv_list_rcons_bi ????? H0) -H0 #H1 #H2 destruct
88 /3 width=3 by ex2_intro, or_introl/
91 [ /2 width=1 by in_comp_appl_hd/ ]
92 #s0 <list_append_rcons_dx #Hs0
93 elim (eq_inv_list_rcons_bi ????? Hs0) -Hs0 #H1 #H2 destruct
99 /4 width=3 by in_comp_appl_hd, ex2_intro, or_introl/
101 elim (in_comp_inv_appl ā¦ H1r) -H1r * #s #H0 #Hs destruct
102 /5 width=2 by in_comp_appl_hd, in_comp_appl_sd, or_intror, conj/