Skip to content

Instantly share code, notes, and snippets.

@zant
Created October 16, 2020 17:04
Show Gist options
  • Save zant/6f676cc3778a448470b376504d6a343d to your computer and use it in GitHub Desktop.
Save zant/6f676cc3778a448470b376504d6a343d to your computer and use it in GitHub Desktop.
Definition negb (b: bool) : bool :=
match b with
| true => false
| false => true
end.
Definition orb (b1: bool) (b2: bool) : bool :=
match b1 with
| false => b2
| true => true
end.
Theorem lem : forall b : bool,
(orb b (negb b)) = true.
Proof.
intros. destruct b eqn: E.
- simpl. reflexivity.
- simpl. reflexivity.
End.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment