17 subscribers
Gå offline med appen Player FM !
Podcasts der er værd at lytte til
SPONSORERET


1 Dave Ramsey: 5 Stages to Build and Scale a Business That Lasts | Entrepreneurship | E344 1:03:38
The curious case of exponentiation in simply typed lambda calculus
Manage episode 416402103 series 2823367
Like addition and multiplication on Church-encoded numbers, exponentiation can be assigned a type in simply typed lambda calculus (STLC). But surprisingly, the type is non-uniform. If we abbreviate (A -> A) -> A -> A as Nat_A, then exponentiation, which is defined as \ x . \ y . y x, can be assigned type Nat_A -> Nat_(A -> A) -> Nat_A. The second argument needs to have type at strictly higher order than the first argument. This has the fascinating consequence that we cannot define self-exponentiation, \ x . exp x x. That term would reduce to \ x . x x, which is provably not typable in STLC.
173 episoder
Manage episode 416402103 series 2823367
Like addition and multiplication on Church-encoded numbers, exponentiation can be assigned a type in simply typed lambda calculus (STLC). But surprisingly, the type is non-uniform. If we abbreviate (A -> A) -> A -> A as Nat_A, then exponentiation, which is defined as \ x . \ y . y x, can be assigned type Nat_A -> Nat_(A -> A) -> Nat_A. The second argument needs to have type at strictly higher order than the first argument. This has the fascinating consequence that we cannot define self-exponentiation, \ x . exp x x. That term would reduce to \ x . x x, which is provably not typable in STLC.
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.