diff options
author | 2016-10-27 13:51:16 -0400 | |
---|---|---|
committer | 2016-10-27 13:51:16 -0400 | |
commit | ea91bc54915b96f492e3c81a567d70900e1ddec9 (patch) | |
tree | 51a79866a1f91856e459082a98128e650a57418a /src/Reflection | |
parent | 4f5f29f63de9453fe64b5271a29ebb32e76c2fca (diff) |
add wf, not only rel_wf, to MapInterpWf
Diffstat (limited to 'src/Reflection')
-rw-r--r-- | src/Reflection/MapInterpWf.v | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/Reflection/MapInterpWf.v b/src/Reflection/MapInterpWf.v index 2bd3f1f82..ac1048b1d 100644 --- a/src/Reflection/MapInterpWf.v +++ b/src/Reflection/MapInterpWf.v @@ -30,16 +30,30 @@ Section language. Lemma wff_mapf_interp {t e1 e2} G (Hwf : @wff base_type_code interp_base_type op var1 var2 G t e1 e2) + : wff G (mapf_interp f1 e1) (mapf_interp f1 e2). + Proof. induction Hwf; constructor; auto. Qed. + + Lemma rel_wff_mapf_interp {t e1 e2} G + (Hwf : @wff base_type_code interp_base_type op var1 var2 G t e1 e2) : rel_wff R G (mapf_interp f1 e1) (mapf_interp f2 e2). Proof. induction Hwf; constructor; auto using flat_rel_pointwise2_mapf. Qed. Lemma wf_map_interp {t e1 e2} G (Hwf : @wf base_type_code interp_base_type op var1 var2 G t e1 e2) - : rel_wf R G (map_interp f1 e1) (map_interp f2 e2). + : wf G (map_interp f1 e1) (map_interp f1 e2). Proof. induction Hwf; constructor; auto using wff_mapf_interp. Qed. + + Lemma rel_wf_map_interp {t e1 e2} G + (Hwf : @wf base_type_code interp_base_type op var1 var2 G t e1 e2) + : rel_wf R G (map_interp f1 e1) (map_interp f2 e2). + Proof. induction Hwf; constructor; auto using rel_wff_mapf_interp. Qed. End with_var. Lemma WfMapInterp {t e} (Hwf : @Wf base_type_code interp_base_type op t e) - : RelWf R (MapInterp f1 e) (MapInterp f2 e). + : Wf (MapInterp f1 e). Proof. repeat intro; apply wf_map_interp, Hwf. Qed. + + Lemma RelWfMapInterp {t e} (Hwf : @Wf base_type_code interp_base_type op t e) + : RelWf R (MapInterp f1 e) (MapInterp f2 e). + Proof. repeat intro; apply rel_wf_map_interp, Hwf. Qed. End language. |