# Arithmetic operations in simply typed lambda calculus

> Episode of [Iowa Type Theory Commute](https://podistic.com/podcast/iowa-type-theory-commute.md) · Published May 4, 2024 · Duration 9:56 · Episode 3, season 5

- **Listen on Podistic:** https://podistic.com/episode/arithmetic-operations-in-simply-typed-lambda-calculus
- **Audio:** https://www.buzzsprout.com/728558/episodes/15007246-arithmetic-operations-in-simply-typed-lambda-calculus.mp3 (audio/mpeg)

## About this episode

It is maybe not so well known that arithmetic operations -- at least some of them -- can be implemented in simply typed lambda calculus (STLC).  Church-encoded numbers can be given the simple type (A -&gt; A) -&gt; A -&gt; A, for any simple type A.  If we abbreviate that type as Nat_A, then addition and multiplication can both be typed in STLC, at type Nat_A -&gt; Nat_A -&gt; Nat_A.  Interestingly, things change with exponentiation, which we will consider in the next episode.
