Created
January 16, 2015 18:32
-
-
Save jldodds/972091d6c2ad9597e83d to your computer and use it in GitHub Desktop.
Simplifying sem_add_default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Require Import floyd.proofauto | |
Goal forall a b, is_int I32 Signed a -> is_int I32 Signed b -> | |
exists i i1, sem_add_default tint tint a b = Some (Vint (Int.add i i1)). | |
intros. destruct a; try solve [inversion H]. | |
destruct b; try solve [inversion H0]. | |
unfold sem_add_default. simpl. unfold both_int. simpl. | |
eauto. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment