Section EXPR.
Variable e: Clight.env.
Variable le: temp_env.
Variable m: mem.
Variable tm: mem. (*Lenb: NEW*)
Variable te: Csharpminor.env.
Variable tle: Csharpminor.temp_env. (*Lenb: NEW*)
Variable j: meminj. (*Lenb: NEW*)
Hypothesis MENV: match_env j e te.
Hypothesis LENV: match_tempenv j le tle. (*Lenb: NEW*)
Hypothesis MINJ: Mem.inject j m tm. (*Lenb: NEW*)
Hypothesis PG: meminj_preserves_globals ge j. (*Lenb: NEW*)
(* Lemma transl_expr_lvalue_correct: (forall a v, Clight.eval_expr ge e le m a v -> forall ta (TR: transl_expr a = OK ta) tv (TV: val_inject j v tv), Csharpminor.eval_expr tge te tle tm ta tv) /\(forall a b ofs, Clight.eval_lvalue ge e le m a b ofs -> forall ta (TR: transl_lvalue a = OK ta) tv (TV: val_inject j (Vptr b ofs) tv), Csharpminor.eval_expr tge te le m ta tv). *)
Proof (proj1 transl_expr_lvalue_correct).
(* Lemma transl_expr_correct: forall a v, Clight.eval_expr ge e le m a v -> forall ta, transl_expr a = OK ta -> Csharpminor.eval_expr tge te le m ta v. Proof (proj1 transl_expr_lvalue_correct). *)
Proof (proj2 transl_expr_lvalue_correct).
(* Lemma transl_arglist_correct: forall al tyl vl, Clight.eval_exprlist ge e le m al tyl vl -> forall tal, transl_arglist al tyl = OK tal -> Csharpminor.eval_exprlist tge te le m tal vl. *)
End EXPR.
(** ** Semantic preservation for statements *)
(** The simulation diagram for the translation of statements and functions is a "plus" diagram of the form << I S1 ------- R1 |          | t |        + | t v          v S2 ------- R2 I                         I >>  The invariant [I] is the [match_states] predicate that we now define. *)
Inductive match_transl: stmt -> cont -> stmt -> cont -> Prop :=
| match_transl_0: forall ts tk,
match_transl ts tk ts tk
| match_transl_1: forall ts tk,
match_transl (Sblock ts) tk ts (Kblock tk).
(* Lemma match_transl_step: forall ts tk ts' tk' f te le m, match_transl (Sblock ts) tk ts' tk' -> star (clight_corestep tge (CL_core f ts' tk' te le) m E0 (State f ts (Kblock tk) te le m). *)

Lemma match_transl_corestep:
forall ts tk ts' tk' f te le m,
match_transl (Sblock ts) tk ts' tk' ->
corestep_star csharpmin_eff_sem  tge
(CSharpMin_State f ts' tk' te le) m
(CSharpMin_State f ts (Kblock tk) te le) m.