Just as in mathematics an incredible number of fields — calculus, complex analysis, and so on — rest on a handful of axioms taken on faith, in the λ-calculus just three constructs form the foundation. The entire language is built from the variable, the abstraction, and the application; everything else — numbers, logic, data structures, and recursion — appears on top of them.
where is a variable; is an abstraction: an anonymous function with parameter and body ; is an application: the function applied to the argument . Here may be any term: a variable , another application , or a whole abstraction . For example: , , .
A few important remarks: application is left-associative: ; the body of an abstraction extends as far to the right as possible: ; a chain of abstractions is abbreviated: .
A term is a tree: the leaves are variables, the inner nodes are abstractions and applications. It is worth training yourself to see a term as a tree rather than as a string.