include "basic_2/rt_computation/cpmuwe_cpmuwe.ma".
include "basic_2/rt_equivalence/cpes_cpes.ma".
-include "basic_2/dynamic/cnv_cpmuwe.ma".
+include "basic_2/dynamic/cnv_cpmuwe.ma". (**) (* should be included by the next *)
+include "basic_2/dynamic/cnv_cpmuwe_cpmre.ma".
include "basic_2/dynamic/cnv_cpes.ma".
include "basic_2/dynamic/cnv_preserve_cpes.ma".
(* main properties with evaluations for rt-transition on terms **************)
-theorem cnv_dec (a) (h) (G) (L) (T): ac_props a →
- Decidable (⦃G,L⦄ ⊢ T ![a,h]).
-#a #h #G #L #T #Ha
+theorem cnv_dec (h) (a) (G) (L) (T): ac_props a →
+ Decidable (⦃G,L⦄ ⊢ T ![h,a]).
+#h #a #G #L #T #Ha
@(fqup_wf_ind_eq (Ⓣ) … G L T) -G -L -T #G0 #L0 #T0 #IH #G #L * * [|||| * ]
[ #s #HG #HL #HT destruct -Ha -IH
/2 width=1 by cnv_sort, or_introl/
elim (dec_min (R_cpmuwe h G L T) … Hn) -Hn
[| /2 width=2 by cnv_R_cpmuwe_dec/ ] #n0 #_ -n
elim (ac_dec … Ha n0) -Ha
- [ * #n #Hn #Ha * #X0 #HX0 #_
+ [ * #n #Ha #Hn * #X0 #HX0 #_
elim (abst_dec X0)
[ * #p #W #U0 #H destruct
elim (cnv_cpes_dec … 1 0 … HV W) [ #HVW | #HnVW ]