]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/etc/unwind3/unwind_constructors.etc
4849ecf6db1ae62216704ecf52449674a513d3e2
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / etc / unwind3 / unwind_constructors.etc
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 "delayed_updating/unwind3/unwind_prototerm_eq.ma".
16 include "delayed_updating/syntax/prototerm_constructors.ma".
17 include "delayed_updating/relocation/sbr_push_uni.ma".
18
19 (* UNWIND FOR PROTOTERM *****************************************************)
20
21 (* Constructions with constructors for prototerm ****************************)
22
23 lemma unwind_iref_sn (f) (t:prototerm) (n:pnat):
24       ▼[f❘@❨n❩⫯❘f]t ⊆ ▼[f](𝛗n.t).
25 #f #t #n #p * #q #Hq #H0 destruct
26 @(ex2_intro … (𝗱n◗𝗺◗q))
27 /2 width=1 by in_comp_iref/
28 qed-.
29
30 lemma unwind_iref_dx (f) (t) (n:pnat):
31       ▼[f](𝛗n.t) ⊆ ▼[f❘@❨n❩⫯❘f]t.
32 #f #t #n #p * #q #Hq #H0 destruct
33 elim (in_comp_inv_iref … Hq) -Hq #p #Hp #Ht destruct
34 /2 width=1 by in_comp_unwind_bi/
35 qed-.
36
37 lemma unwind_iref (f) (t) (n:pnat):
38       ▼[f❘@❨n❩⫯❘f]t ⇔ ▼[f](𝛗n.t).
39 /3 width=1 by conj, unwind_iref_sn, unwind_iref_dx/
40 qed.
41
42 lemma unwind_iref_id (t) (n:pnat):
43       ▼[𝐮❨n❩]t ⇔ ▼[𝐢](𝛗n.t).
44 // qed.