Library mcertikos.mm.ALHGenLink
Require Import LinkTemplate.
Require Import MALH.
Require Import ALHGen.
Require Import ALHGenLinkSource.
Require Import MALT.
Section WITHCOMPCERTIKOS.
Context `{compcertikos_prf: CompCertiKOS} `{real_params_prf: RealParams}.
Context `{multi_oracle_prop: MultiOracleProp}.
Context `{multi_oracle_link: !MultiOracleLink}.
Lemma init_correct:
init_correct_type MALH_module malt malh.
Proof.
init_correct.
- apply relateath.
- constructor; intros.
× repeat rewrite ZMap.gi; eauto.
× repeat rewrite ZMap.gi; eauto.
constructor.
- rewrite ZMap.gi. intros. inv H0.
Qed.
Lemma link_correct_aux:
link_correct_aux_type MALH_module malt malh.
Proof.
intros M HM.
eapply layer_link_new_glbl_both.
apply oplus_sim_monotonic.
apply passthrough_correct.
apply L64_auto_sim.
Qed.
Theorem cl_backward_simulation:
cl_backward_simulation_type MALH_module malt malh.
Proof.
cl_backward_simulation init_correct link_correct_aux.
Qed.
Theorem make_program_exists:
make_program_exist_type MALH_module malt malh.
Proof.
make_program_exists link_correct_aux.
Qed.
End WITHCOMPCERTIKOS.
Require Import MALH.
Require Import ALHGen.
Require Import ALHGenLinkSource.
Require Import MALT.
Section WITHCOMPCERTIKOS.
Context `{compcertikos_prf: CompCertiKOS} `{real_params_prf: RealParams}.
Context `{multi_oracle_prop: MultiOracleProp}.
Context `{multi_oracle_link: !MultiOracleLink}.
Lemma init_correct:
init_correct_type MALH_module malt malh.
Proof.
init_correct.
- apply relateath.
- constructor; intros.
× repeat rewrite ZMap.gi; eauto.
× repeat rewrite ZMap.gi; eauto.
constructor.
- rewrite ZMap.gi. intros. inv H0.
Qed.
Lemma link_correct_aux:
link_correct_aux_type MALH_module malt malh.
Proof.
intros M HM.
eapply layer_link_new_glbl_both.
apply oplus_sim_monotonic.
apply passthrough_correct.
apply L64_auto_sim.
Qed.
Theorem cl_backward_simulation:
cl_backward_simulation_type MALH_module malt malh.
Proof.
cl_backward_simulation init_correct link_correct_aux.
Qed.
Theorem make_program_exists:
make_program_exist_type MALH_module malt malh.
Proof.
make_program_exists link_correct_aux.
Qed.
End WITHCOMPCERTIKOS.