Module Qcert.Translation.NNRCtocNNRC


Section NNRCtocNNRC.
  Require Import String.
  Require Import List.
  Require Import CommonRuntime.
  Require Import NNRC.
  Require Import cNNRC.

  Context {fr:foreign_runtime}.

  Section Top.
    Context (h:brand_relation_t).

    Definition nnrc_to_nnrc_core_top (q:nnrc) : nnrc_core :=
      nnrc_to_nnrc_core q.

    Theorem nnrc_to_nnrc_core_top_correct :
      forall q:nnrc, forall global_env:bindings,
          nnrc_eval_top h q global_env =
          nnrc_core_eval_top h (nnrc_to_nnrc_core_top q) global_env.
Proof.
      intros.
      unfold nnrc_core_eval_top.
      unfold nnrc_eval_top.
      unfold nnrc_to_nnrc_core_top.
      unfold lift_nnrc_core.
      simpl.
      unfold nnrc_eval.
      reflexivity.
    Qed.
  End Top.
    
End NNRCtocNNRC.