Skip to content

Instantly share code, notes, and snippets.

@solson
Forked from JadenGeller/LEM.idr
Last active March 29, 2018 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solson/4f631c68d14eb1b4b63f165c460a2a67 to your computer and use it in GitHub Desktop.
Save solson/4f631c68d14eb1b4b63f165c460a2a67 to your computer and use it in GitHub Desktop.
Derivation of Law of the Excluded Middle from call/cc
%default total
postulate callCC : ((a -> Void) -> a) -> a
excludedMIddle : Dec a
excludedMiddle = callCC (\assumption => No (\contradiction => void (assumption (Yes y))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment