Skip to content

Instantly share code, notes, and snippets.

@murven
Created May 17, 2017 04:13
Show Gist options
  • Save murven/b6122e7f5913bdd561f29649e66cc64c to your computer and use it in GitHub Desktop.
Save murven/b6122e7f5913bdd561f29649e66cc64c to your computer and use it in GitHub Desktop.
boolean in lambda calculus
let identidad x = x
let verdadero x y = identidad x
let falso x y = identidad y
let negacion x = x falso verdadero
let contrario booleano x y = booleano y
let si booleano x y = booleano x y
let a = si (verdadero) 5 6
let b = si (falso) 5 6
let c = si (negacion falso) 5 6
let Y a b = a b falso
let O a b = a verdadero b
let d = si (Y falso falso) 5 6
let e = si (O falso verdadero) 5 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment