Skip to content

Instantly share code, notes, and snippets.

@igstan
Created September 21, 2014 09:35
Show Gist options
  • Save igstan/b6acea8fe7a746e389be to your computer and use it in GitHub Desktop.
Save igstan/b6acea8fe7a746e389be to your computer and use it in GitHub Desktop.
Module VersionA.
Inductive bool : Type :=
| true : bool
| false : bool.
Definition neg (b : bool) : bool :=
if b then false else true.
Eval compute in (neg true). (* false *)
End VersionA.
Module VersionB.
Inductive bool : Type :=
| false : bool
| true : bool.
Definition neg (b : bool) : bool :=
if b then false else true.
Eval compute in (neg true). (* true *)
End VersionB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment