Created
May 17, 2017 04:13
-
-
Save murven/b6122e7f5913bdd561f29649e66cc64c to your computer and use it in GitHub Desktop.
boolean in lambda calculus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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