]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/delayed_updating/reduction/dfr_lift.ma
28b21e5e0e4a10c90e2ab904f85cdded8bc089df
[helm.git] / matita / matita / contribs / lambdadelta / delayed_updating / reduction / dfr_lift.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/substitution/fsubst_lift.ma".
16 include "delayed_updating/substitution/fsubst_eq.ma".
17 include "delayed_updating/substitution/lift_constructors.ma".
18 include "delayed_updating/substitution/lift_path_closed.ma".
19 include "delayed_updating/substitution/lift_rmap_closed.ma".
20
21 (**) (* reverse include *)
22 include "delayed_updating/reduction/dfr.ma".
23
24 (* DELAYED FOCUSED REDUCTION ************************************************)
25
26 (* Constructions with lift **************************************************)
27
28 theorem dfr_lift_bi (f) (t1) (t2) (r):
29         t1 โžก๐๐Ÿ[r] t2 โ†’ โ†‘[f]t1 โžก๐๐Ÿ[โ†‘[f]r] โ†‘[f]t2.
30 #f #t1 #t2 #r
31 * #p #q #n #Hr #Hn #Ht1 #Ht2 destruct
32 @(ex4_3_intro โ€ฆ (โ†‘[f]p) (โ†‘[โ†‘[pโ—–๐—”โ—–๐—Ÿ]f]q) ((โ†‘[pโ—๐—”โ——๐—Ÿโ——q]f)๏ผ ยงโจnโฉ))
33 [ -Hn -Ht1 -Ht2 //
34 | -Ht1 -Ht2
35   /2 width=1 by lift_path_rmap_closed_L/
36 | lapply (in_comp_lift_path_term f โ€ฆ Ht1) -Ht2 -Ht1 -Hn
37   <lift_path_d_dx #Ht1 //
38 | lapply (lift_term_eq_repl_dx f โ€ฆ Ht2) -Ht2 #Ht2 -Ht1
39   @(subset_eq_trans โ€ฆ Ht2) -t2
40   @(subset_eq_trans โ€ฆ (lift_term_fsubst โ€ฆ))
41   @fsubst_eq_repl [ // | // ]
42   @(subset_eq_trans โ€ฆ (lift_term_iref_nap โ€ฆ))
43   @iref_eq_repl
44   @(subset_eq_canc_sn โ€ฆ (lift_term_grafted_S โ€ฆ))
45   @lift_term_eq_repl_sn
46 (* Note: crux of the proof begins *)
47   /2 width=2 by tls_succ_lift_rmap_append_L_closed_dx/
48 (* Note: crux of the proof ends *)
49 ]
50 qed.