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 "basic_2/rt_equivalence/cpcs_cpcs.ma".
16 include "apps_2/models/model_props.ma".
17 include "apps_2/models/tm.ma".
19 (* TERM MODEL ***************************************************************)
21 lemma tm_md (h): ∀T,V,gv,lv. ⟦+ⓓV.T⟧[gv,lv] ≗{TM h} ⟦T⟧[gv,⫯[O←⟦V⟧[gv,lv]]lv].
23 [ /4 width=3 by cpc_cpcs, cpm_zeta, or_introl/
25 elim (eq_or_gt i) #Hi destruct
26 [ elim (lifts_total (⟦V⟧[gv,lv]) (𝐔❴1❵)) #W #HVW
28 >tm_ti_bind >tm_ti_lref >tm_vpush_eq
29 /5 width=3 by cpc_cpcs, cpm_zeta, cpm_delta, or_introl/
30 | >tm_ti_lref >vpush_gt //
31 >tm_ti_bind >tm_ti_lref >tm_vpush_gt //
32 /4 width=3 by cpc_cpcs, cpm_zeta, or_introl/
35 >tm_ti_bind >tm_ti_gref >tm_ti_gref
36 /4 width=3 by cpc_cpcs, cpm_zeta, or_introl/
37 | #p #I #W #T #IHW #IHT #V #gv #lv
38 >tm_ti_bind in ⊢ (???%);
41 >tm_ti_bind >tm_ti_bind
45 /4 width=3 by cpc_cpcs, cpm_zeta, or_introl/
47 definition is_tm (h): is_model (TM h) ≝ mk_is_model …. //
53 [2: @cpm_bind // | skip ]