Qcert.Translation.TCAMPtoNRAEnv
Section TCAMPtoNRAEnv.
Context {m:basic_model}.
Lemma nraenv_of_pat_type_preserve τc Γ pf p τin τout :
[τc&Γ] |= p ; τin ~> τout →
nraenv_of_pat p ▷ₓ τin >=> Coll τout ⊣ τc;(Rec Closed Γ pf).
Some corollaries of the main Lemma
Lemma nraenv_of_pat_nraenv_of_pat_top p τc τin τout :
nraenv_of_pat p ▷ₓ τin >=> Coll τout ⊣ τc;(Rec Closed nil eq_refl) →
nraenv_of_pat_top p ▷ₓ τin >=> Coll τout ⊣ τc;(Rec Closed nil eq_refl).
Theorem alg_of_pat_top_type_preserve p τc τin τout :
[τc&nil] |= p ; τin ~> τout →
nraenv_of_pat_top p ▷ₓ τin >=> Coll τout ⊣ τc;(Rec Closed nil eq_refl).
Theorem nraenv_of_rule_type_preserve τworld τout r :
@rule_type m τworld τout r →
nraenv_of_rule r ▷ₓ Unit >=> Coll τout ⊣ (mkTWorld τworld);(Rec Closed nil eq_refl).
End TCAMPtoNRAEnv.