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 "static_2/static/reqg_fqup.ma".
16 include "static_2/static/reqx.ma".
17 include "basic_2/rt_transition/lpx.ma".
18 include "basic_2/rt_transition/rpx.ma".
20 (* EXAMPLES *****************************************************************)
22 (* Lemma "rpx_fwd_lpx_reqx" is not an inversion *****************************)
24 definition L1 (K) (s1) (s0): lenv ≝ K.ⓛ⋆s1.ⓛⓝ#0.⋆s0.
26 definition L (K) (s1) (s0): lenv ≝ K.ⓛ⋆s1.ⓛ⋆s0.
28 definition L2 (K) (i1) (s0): lenv ≝ K.ⓛ#i1.ⓛ⋆s0.
30 definition T: term ≝ #0.
32 (* Basic properties *********************************************************)
34 lemma ex_rpx_fwd_1 (G) (K) (s1) (s0):
35 ❨G,L1 K s1 s0❩ ⊢ ⬈ L K s1 s0.
36 /3 width=1 by lpx_pair, lpx_bind_refl_dx, cpx_eps/ qed.
38 lemma ex_rpx_fwd_2 (K) (s1) (s0) (i1) (i0):
39 L K s1 s0 ≅[T] L2 K i1 i0.
40 /4 width=1 by reqg_refl, reqg_pair, reqg_sort, teqg_sort/ qed.
42 lemma ex_rpx_fwd_3 (G) (K) (s1) (s0) (i1) (i0):
43 ❨G,L1 K s1 s0❩ ⊢ ⬈[T] L2 K i1 i0 → ⊥.
44 #G #K #s1 #s0 #i1 #i0 #H
45 elim (rpx_inv_zero_pair_sn … H) -H #Y2 #X2 #H #_ normalize #H0 destruct
46 elim (rpx_inv_flat … H) -H #H #_
47 elim (rpx_inv_zero_pair_sn … H) -H #Y2 #X2 #_ #H #H0 destruct
48 elim (cpx_inv_sort1 … H) #s2 #H destruct
51 (* Main properties **********************************************************)
53 theorem ex_rpx_fwd (G) (K) (s1) (s0) (i1) (i0):
54 (❨G,L1 K s1 s0❩ ⊢ ⬈ L K s1 s0 → L K s1 s0 ≅[T] L2 K i1 i0 → ❨G,L1 K s1 s0❩ ⊢ ⬈[T] L2 K i1 i0) → ⊥.
55 /3 width=7 by ex_rpx_fwd_3, ex_rpx_fwd_2, ex_rpx_fwd_1/ qed-.