]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambda_delta/basic_2/reducibility/lcpr.ma
- predefined_virtuals: an addition
[helm.git] / matita / matita / contribs / lambda_delta / basic_2 / reducibility / lcpr.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 "basic_2/unfold/ltpss.ma".
16 include "basic_2/reducibility/ltpr.ma".
17
18 (* CONTEXT-SENSITIVE PARALLEL REDUCTION ON LOCAL ENVIRONMENTS *************)
19
20 definition lcpr: relation lenv ≝
21    λL1,L2. ∃∃L. L1 ➡ L & L ▶* [0, |L|] L2
22 .
23
24 interpretation
25   "context-sensitive parallel reduction (environment)"
26   'CPRed L1 L2 = (lcpr L1 L2).
27
28 (* Basic properties *********************************************************)
29
30 lemma lcpr_refl: ∀L. L ⊢ ➡ L.
31 /2 width=3/ qed.
32
33 (* Basic inversion lemmas ***************************************************)
34
35 lemma lcpr_inv_atom1: ∀L2. ⋆ ⊢ ➡ L2 → L2 = ⋆.
36 #L2 * #L #HL >(ltpr_inv_atom1 … HL) -HL #HL2 >(ltpss_inv_atom1 … HL2) -HL2 //
37 qed-.