diff options
author | Yann Herklotz <git@yannherklotz.com> | 2023-05-19 18:11:53 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2023-05-19 18:11:53 +0100 |
commit | c79d1a9dcd5a1ac6bc10492380a77fafa780e7d6 (patch) | |
tree | 44a91ab0a55e6deffd98e7cd387a16a57759d73b /src/hls/GiblePargenproofCommon.v | |
parent | 3be880b441a4d2926c6b14b7bb25a04209fbbca6 (diff) | |
download | vericert-c79d1a9dcd5a1ac6bc10492380a77fafa780e7d6.tar.gz vericert-c79d1a9dcd5a1ac6bc10492380a77fafa780e7d6.zip |
Prepare work on evaluability of instructions
Diffstat (limited to 'src/hls/GiblePargenproofCommon.v')
-rw-r--r-- | src/hls/GiblePargenproofCommon.v | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/hls/GiblePargenproofCommon.v b/src/hls/GiblePargenproofCommon.v index 8d8e0a2..22b5978 100644 --- a/src/hls/GiblePargenproofCommon.v +++ b/src/hls/GiblePargenproofCommon.v @@ -221,44 +221,8 @@ Proof. unfold predicated_not_inP; intros. eapply H. econstructor. right; eauto. Qed. -Lemma match_states_list : - forall A (rs: Regmap.t A) rs', - (forall r, rs !! r = rs' !! r) -> - forall l, rs ## l = rs' ## l. -Proof. induction l; crush. Qed. - -Lemma PTree_matches : - forall A (v: A) res rs rs', - (forall r, rs !! r = rs' !! r) -> - forall x, (Regmap.set res v rs) !! x = (Regmap.set res v rs') !! x. -Proof. - intros; destruct (Pos.eq_dec x res); subst; - [ repeat rewrite Regmap.gss by auto - | repeat rewrite Regmap.gso by auto ]; auto. -Qed. - Lemma truthy_dec: forall ps a, truthy ps a \/ falsy ps a. Proof. destruct a; try case_eq (eval_predf ps p); intuition (constructor; auto). Qed. - -Lemma truthy_match_state : - forall ps ps' p, - (forall x, ps !! x = ps' !! x) -> - truthy ps p -> - truthy ps' p. -Proof. - intros; destruct p; inv H0; constructor; auto. - erewrite eval_predf_pr_equiv; eauto. -Qed. - -Lemma falsy_match_state : - forall ps ps' p, - (forall x, ps !! x = ps' !! x) -> - falsy ps p -> - falsy ps' p. -Proof. - intros; destruct p; inv H0; constructor; auto. - erewrite eval_predf_pr_equiv; eauto. -Qed. |