Lambda Calculus
-equivalent/conversion - rename var
- rename var
-equivalent -reduction - substitute
with abbreviated to - Beta normal form is when you cannot beta reduce (apply lambdas to arguments) the terms any further.
Syntax
- Variables: x, y...
-Abstractions: - where
- where
- Applications:
Computation
That's it. We can do anything a computer can do. Without loops, booleans, data structures...
- Church-Turing Thesis
Which we must call a new concept, Higher-order - Functions can be passed as inputs to functions
- Functions can return functions as output
- like
and a new concept flows out, Currying
How can we represent booleans or conditionals?
- True =
- False =
- if then =.
Types need to be limited.