]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambda/redex_pointer_sequence.ma
e32c6d2baa9ee274dabaaea774d5e19f64f69a84
[helm.git] / matita / matita / contribs / lambda / redex_pointer_sequence.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 "redex_pointer.ma".
16
17 (* REDEX POINTER SEQUENCE ***************************************************)
18
19 (* Policy: pointer sequence metavariables: r, s *)
20
21 definition rpseq: Type[0] \def list rptr.
22
23 (* Note: a "spine" computation contracts just redexes in the spine *)
24 definition is_spine: predicate rpseq ≝ λs.
25                      All … in_spine s.
26
27 (* Note: to us, a "normal" computation contracts redexes in non-decreasing positions *)
28 definition is_le: predicate rpseq ≝ λs.
29                   Allr … rple s.