Skip to content

Instantly share code, notes, and snippets.

Created March 6, 2012 23:38
Show Gist options
  • Save anonymous/1989801 to your computer and use it in GitHub Desktop.
Save anonymous/1989801 to your computer and use it in GitHub Desktop.

x :Y is shorthand for x [Y 'x].

Definition of functions:

A B :* 
->
function :*
(f :function x :A -> apply :B)
((x :A -> y :B) -> f :function)

Naturals and constructors.

nat :*
zero :nat
(x :nat -> succ :nat)

A successor function:

succF :function(nat,nat)
(x :nat -> ['apply(nat,nat,succF,x) = 'succ(x)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment