9 min

Arithmetic operations in simply typed lambda calculus Iowa Type Theory Commute

    • Technology

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 -> A) -> A -> 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 -> Nat_A -> Nat_A. Interestingly, things change with exponentiation, which we will consider in the next 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 -> A) -> A -> 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 -> Nat_A -> Nat_A. Interestingly, things change with exponentiation, which we will consider in the next episode.

9 min

Top Podcasts In Technology

Lex Fridman Podcast
Lex Fridman
Herrasmieshakkerit
Mikko Hyppönen & Tomi Tuominen
Acquired
Ben Gilbert and David Rosenthal
Vikasietotila
Olli Sulopuisto, Kari Haakana, Panu Räty
Search Engine
PJ Vogt, Audacy, Jigsaw
Kyberrosvot
Tivi & DNA