Qcert.Translation.TOQLtoNRAEnv


Section TOQLtoNRAEnv.




  Context {m:basic_model}.

    Lemma nraenv_of_oql_expr_type_preserve_f τconstant τdefls pfd τenv pfe e τout:
      oql_expr_type (rec_concat_sort τconstant τdefls) τenv e τout
      nraenv_type τconstant (nraenv_of_oql_expr (domain τdefls) e) (Rec Closed τdefls pfd) (Rec Closed τenv pfe) τout.

    Lemma nraenv_of_oql_query_program_type_preserve_f τconstant τdefls pfd τenv pfe oq τout:
      oql_query_program_type τconstant τdefls τenv oq τout
      nraenv_type τconstant (nraenv_of_oql_query_program (domain τdefls) oq) (Rec Closed τdefls pfd) (Rec Closed τenv pfe) τout.

    Theorem nraenv_of_oql_type_preserve_f τconstant oq τout :
      oql_type τconstant oq τout
       τenv τdata,
      nraenv_type τconstant (nraenv_of_oql oq) τenv τdata τout.


End TOQLtoNRAEnv.