Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Lemma optimizer_a_plus_sound : forall a b, aeval (optimizer_a (APlus a b)) = aeval (APlus (optimizer_a a) (optimizer_a b)).
- Proof.
- intro.
- induction a.
- intros.
- destruct n.
- simpl.
- reflexivity.
- destruct b.
- destruct n0.
- simpl.
- rewrite plus_0_r.
- reflexivity.
- reflexivity.
- reflexivity.
- reflexivity.
- reflexivity.
- intros.
- destruct b.
- destruct n.
- unfold optimizer_a at 3.
- unfold aeval.
- fold aeval.
- rewrite plus_0_r.
- reflexivity.
- reflexivity.
- reflexivity.
- reflexivity.
- reflexivity.
- intros.
- destruct b.
- destruct n.
- unfold optimizer_a at 3.
- unfold aeval.
- fold aeval.
- rewrite plus_0_r.
- reflexivity.
- reflexivity.
- reflexivity.
- reflexivity.
- reflexivity.
- destruct b.
- destruct n.
- unfold optimizer_a at 3.
- unfold aeval.
- fold aeval.
- rewrite plus_0_r.
- reflexivity.
- reflexivity.
- reflexivity.
- reflexivity.
- reflexivity.
- Qed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement