]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/apps_2/models/tm_props.ma
update in static_2 and app_2
[helm.git] / matita / matita / contribs / lambdadelta / apps_2 / models / tm_props.ma
diff --git a/matita/matita/contribs/lambdadelta/apps_2/models/tm_props.ma b/matita/matita/contribs/lambdadelta/apps_2/models/tm_props.ma
new file mode 100644 (file)
index 0000000..260d241
--- /dev/null
@@ -0,0 +1,54 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||M||                                                             *)
+(*      ||A||       A project by Andrea Asperti                           *)
+(*      ||T||                                                             *)
+(*      ||I||       Developers:                                           *)
+(*      ||T||         The HELM team.                                      *)
+(*      ||A||         http://helm.cs.unibo.it                             *)
+(*      \   /                                                             *)
+(*       \ /        This file is distributed under the terms of the       *)
+(*        v         GNU General Public License Version 2                  *)
+(*                                                                        *)
+(**************************************************************************)
+
+include "basic_2/rt_equivalence/cpcs_cpcs.ma".
+include "apps_2/models/model_props.ma".
+include "apps_2/models/tm.ma".
+
+(* TERM MODEL ***************************************************************)
+
+lemma tm_md (h): ∀T,V,gv,lv. ⟦+ⓓV.T⟧[gv,lv] ≗{TM h} ⟦T⟧[gv,⫯[O←⟦V⟧[gv,lv]]lv].
+#h #T elim T *
+[ /4 width=3 by cpc_cpcs, cpm_zeta, or_introl/
+| #i #V #gv #lv
+  elim (eq_or_gt i) #Hi destruct
+  [ elim (lifts_total (⟦V⟧[gv,lv]) (𝐔❴1❵)) #W #HVW
+    >tm_ti_lref >vpush_eq
+    >tm_ti_bind >tm_ti_lref >tm_vpush_eq
+    /5 width=3 by cpc_cpcs, cpm_zeta, cpm_delta, or_introl/
+  | >tm_ti_lref >vpush_gt //
+    >tm_ti_bind >tm_ti_lref >tm_vpush_gt //
+    /4 width=3 by cpc_cpcs, cpm_zeta, or_introl/
+  ]
+| #l #V #gv #lv
+  >tm_ti_bind >tm_ti_gref >tm_ti_gref
+  /4 width=3 by cpc_cpcs, cpm_zeta, or_introl/
+| #p #I #W #T #IHW #IHT #V #gv #lv
+  >tm_ti_bind in ⊢ (???%);
+(*
+  
+  >tm_ti_bind >tm_ti_bind
+  @cpc_cpcs @or_introl
+  @cpm_bind 
+  
+  /4 width=3 by cpc_cpcs, cpm_zeta, or_introl/
+
+definition is_tm (h): is_model (TM h) ≝ mk_is_model …. //
+[ 
+|
+| #gv #lv #p #V #T
+  @cpcs_cprs_dx
+  @cprs_step_sn
+  [2: @cpm_bind // | skip ]  
+*)