Arithmetic operations in simply typed lambda calculus

Iowa Type Theory Commute

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.

Logga in för att lyssna på vuxet innehåll.

Följ programmet

Logga in eller registrera dig för att följa program, spara avsnitt och få de senaste uppdateringarna.

Välj land eller region

Afrika, Mellanöstern och Indien

Stillahavsområdet

Europa

Latinamerika och Karibien

USA och Kanada