]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/lib/lambda/levels/iterated_abstraction.ma
c2ad35be78390cf94b2626a4c3e638149691a69c
[helm.git] / matita / matita / lib / lambda / levels / iterated_abstraction.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 "lambda/levels/term.ma".
16
17 (* ITERATED ABSTRACTION *****************************************************)
18
19 definition labst: nat → lterm → lterm ≝ λh,M. match M with
20 [ LVRef i e   ⇒ {i+h}§e
21 | LAppl i C A ⇒ {i+h}@C.A
22 ].
23
24 interpretation "iterated abstraction (term by level)"
25    'AnnotatedAbstraction h M = (labst h M).
26
27 interpretation "abstraction (term by level)"
28    'Abstraction M = (labst (S O) M).
29
30 lemma labst_O: ∀M. 𝛌0.M = M.
31 * normalize //
32 qed.