Skip to content

Instantly share code, notes, and snippets.

View sirlensalot's full-sized avatar

Stuart Popejoy sirlensalot

View GitHub Profile
Theorem andb_eq_orb :
forall (b c : bool),
(andb b c = orb b c) ->
b = c.
Proof.
intros b c.
destruct b eqn:Eb.
- destruct c eqn:Ec.
+ reflexivity.
@kencoba
kencoba / sf_1.v
Created April 21, 2011 08:15
Software Foundations exercises
Inductive day : Type :=
| monday : day
| tuesday : day
| wednesday : day
| thursday : day
| friday : day
| saturday : day
| sunday : day.
Definition next_weekday (d:day) : day :=