Mathematical logic and foundations Definition
Simply typed lambda calculus
Builds on Lambda calculusType systemBeta reduction
Definition
Fix a set of base types and a countable set of variables. The simple types are given by the grammar with . The terms are given by the grammar , where is a variable and is a simple type. A context is a finite list of distinct variables with types. The typing relation is the least relation closed under these three rules.
- Variable: if occurs in , then .
- Abstraction: if , then .
- Application: if and , then .
The simply typed lambda calculus is this typing system together with beta reduction on typed terms.
Remarks
Example: for a base type , the term has type . The check: in the context , rule 1 gives and . Rule 3 gives , then by rule 3 again, and two uses of rule 2 give the arrow type.
Non-example: no annotation makes typable. Rule 3 would need for some , and no finite type equals a longer type that contains it.
The arrow associates to the right, so means . The form above, with types written on bound variables, is the Church style. In the Curry style, terms are untyped and the rules assign types to them. It is one instance of a type system.
Reading path
To understand this page from the ground up, read these 4 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Beta reduction concept
- Lambda calculus concept
- Type system concept
- Simply typed lambda calculus definition
Further reading
About this page
| Tag | ZTQWFHH1ZA |
|---|---|
| URI | m2://ZTQWFHH1ZA |
| Kind | definition |
| Writing | W0 stub |
| MSC | 03B40, 68N18, 03B38 |
| Defines | Simply typed lambda calculus |
| Uses | Lambda calculus, Type system, Beta reduction |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.