17 subscribers
Gå offline med appen Player FM !
Arithmetic operations in simply typed lambda calculus
Manage episode 416402104 series 2823367
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.
173 episoder
Manage episode 416402104 series 2823367
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.
173 episoder
Alle episoder
×
1 A Measure-Based Proof of Finite Developments 23:24

1 Introduction to the Finite Developments Theorem 15:54

1 Introduction to Formalizing Programming Languages Theory 12:20

1 Turing's proof of normalization for STLC 17:39

1 Arithmetic operations in simply typed lambda calculus 9:56

1 The curious case of exponentiation in simply typed lambda calculus 7:29

1 DCS compared to termination checkers for type theories 19:45
Velkommen til Player FM!
Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.