9 min

Arithmetic operations in simply typed lambda calculus Iowa Type Theory Commute

    • Teknologi

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

Mest populära poddar inom Teknologi

Lex Fridman Podcast
Lex Fridman
AI Sweden Podcast
AI Sweden
SvD Tech brief
Svenska Dagbladet
The TED AI Show
TED
Fabriken
UR – Utbildningsradion
Acquired
Ben Gilbert and David Rosenthal