1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "delayed_updating/reduction/ibfr_constructors.ma".
16 include "delayed_updating/substitution/lift_prototerm_constructors.ma".
17 include "ground/arith/pnat_two.ma".
19 (* DELAYED BALANCED FOCUSED REDUCTION ***************************************)
21 (* Prerequisites ************************************************************)
23 lemma list_rcons_prop_1 (A) (a1) (a2):
24 ⓔ ⨭ a1 ⨭{A} a2 = a1 ⨮ (ⓔ ⨭ a2).
27 (* Example of unprotected balanced β-reduction ******************************)
29 definition l3_t0: prototerm ≝
30 (𝛌.@(⧣𝟏).@(𝛌.@(⧣𝟐).⧣𝟏).𝛌.⧣𝟏).
32 definition l3_t1: prototerm ≝
33 (𝛌.@(⧣𝟏).@(𝛌.@(⧣𝟐).⧣𝟏).𝛌.(𝛌.@(⧣↑𝟐).⧣𝟏)).
35 definition l3_t2: prototerm ≝
36 (𝛌.@(⧣𝟏).@(𝛌.@(⧣𝟐).⧣𝟏).𝛌.(𝛌.@(⧣↑𝟐).⧣↑𝟐)).
39 l3_t0 ➡𝐢𝐛𝐟[𝗟◗𝗔◗𝗔◗𝗟◗𝐞] l3_t1.
42 @ibfr_eq_trans [| @ibfr_beta_0 // ]
45 @(subset_eq_canc_sn … (fsubst_empty_rc …))
46 @(subset_eq_canc_sn … (lift_term_abst …))
48 @(subset_eq_canc_sn … (lift_term_appl … ))
50 @(subset_eq_canc_sn … (lift_term_oref_pap … )) //
54 l3_t1 ➡𝐢𝐛𝐟[𝗟◗𝗔◗𝗔◗𝗟◗𝗟◗𝗔◗𝐞] l3_t2.
57 [| @(ibfr_beta_1 … (𝟎)) [| <list_rcons_prop_1 ]
58 /2 width=3 by pcc_A_sn, in_comp_appl_hd/
64 @(subset_eq_canc_sn … (fsubst_appl_hd …))
66 @(subset_eq_canc_sn … (fsubst_empty_rc …))
67 @(subset_eq_canc_sn … (lift_term_oref_pap … )) //