]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/basic_2/dynamic/nta_eval.ma
update in static_2 and basic_2
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / dynamic / nta_eval.ma
index 1b58977b0b72f3dca8880e305b93d79bee148c22..3a8971fd8076212c14d812ce81e871ba310ae310 100644 (file)
@@ -19,17 +19,17 @@ include "basic_2/dynamic/nta_preserve.ma".
 
 (* Properties with evaluations for rt-transition on terms *******************)
 
-lemma nta_typecheck_dec (a) (h) (G) (L): ac_props a →
-      ∀T,U. Decidable … (⦃G,L⦄ ⊢ T :[a,h] U).
+lemma nta_typecheck_dec (h) (a) (G) (L): ac_props a →
+      ∀T,U. Decidable … (⦃G,L⦄ ⊢ T :[h,a] U).
 /2 width=1 by cnv_dec/ qed-.
 
 (* Basic_1: uses: ty3_inference *)
-lemma nta_inference_dec (a) (h) (G) (L) (T): ac_props a →
-      ∨∨ ∃U. ⦃G,L⦄ ⊢ T :[a,h] U
-       | ∀U. (⦃G,L⦄ ⊢ T :[a,h] U → ⊥).
-#a #h #G #L #T #Ha
-elim (cnv_dec … h G L T Ha) -Ha
+lemma nta_inference_dec (h) (a) (G) (L) (T): ac_props a →
+      Decidable (∃U. ⦃G,L⦄ ⊢ T :[h,a] U).
+#h #a #G #L #T #Ha
+elim (cnv_dec h … G L T Ha) -Ha #HT
 [ /3 width=1 by cnv_nta_sn, or_introl/
-| /4 width=2 by nta_fwd_cnv_sn, or_intror/
+| @or_intror * #U #HTU
+  /3 width=2 by nta_fwd_cnv_sn/
 ]
 qed-.