]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/unwind/unwind2_constructors.ma
8cdfb5bf958f55ed7f8822974b468d164478f912
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / unwind / unwind2_constructors.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 "delayed_updating/unwind/unwind2_prototerm_eq.ma".
16 include "delayed_updating/syntax/prototerm_constructors.ma".
17
18 (* UNWIND FOR PROTOTERM *****************************************************)
19
20 (* Constructions with constructors ******************************************)
21
22 lemma unwind2_term_iref_sn (f) (t) (n:pnat):
23       ā–¼[fāˆ˜š®āØnā©]t āŠ† ā–¼[f](š›•n.t).
24 #f #t #n #p * #q #Hq #H0 destruct
25 @(ex2_intro ā€¦ (š—±nā——š—ŗā——q))
26 /2 width=1 by in_comp_iref/
27 qed-.
28
29 lemma unwind2_term_iref_dx (f) (t) (n:pnat):
30       ā–¼[f](š›•n.t) āŠ† ā–¼[fāˆ˜š®āØnā©]t.
31 #f #t #n #p * #q #Hq #H0 destruct
32 elim (in_comp_inv_iref ā€¦ Hq) -Hq #p #Hp #Ht destruct
33 /2 width=1 by in_comp_unwind2_path_term/
34 qed-.
35
36 lemma unwind2_term_iref (f) (t) (n:pnat):
37       ā–¼[fāˆ˜š®āØnā©]t ā‡” ā–¼[f](š›•n.t).
38 /3 width=2 by conj, unwind2_term_iref_sn, unwind2_term_iref_dx/
39 qed.