Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6866503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:11:31+00:00 2026-05-27T03:11:31+00:00

let a = b in c can be thought as a syntactic sugar for

  • 0

let a = b in c can be thought as a syntactic sugar for (\a -> c) b, but in a typed setting in general it’s not the case. For example, in the Milner calculus let a = \x -> x in (a True, a 1) is typable, but seemingly equivalent (\a -> (a True, a 1)) (\x -> x) is not.

However, the latter is typable in System F with a rank 2 type for the first lambda.

My questions are:

  • Is let polymorphism a rank 2 feature that sneaked secretly in the otherwise rank 1 world of Milner calculus?

  • The purpose of having of separate let construct seems to specify which types should be generalized by type checker, and which are not. Does it serve any other purposes? Are there any reasons to extend more powerful systems e.g. System F with separate let which is not sugar? Are there any papers on the rationale behind the design of the Milner calculus which no longer seems obvious to me?

  • Is there the most general type for \a -> (a True, a 1) in System F?

  • Are there type systems closed under beta expansion? I.e. if P is typable and M N = P then M is typable?

Some clarifications:

  • By equivalence I mean equivalence modulo type annotations. Is ‘System F a la Church’ the correct term for that?

  • I know that in general the principal typing property doesn’t hold in F, but a principal type could exist for my particular term.

  • By let I mean the non-recursive flavour of let. Extension of system F with recursive let is obviously useful as it allows for non-termination.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:11:32+00:00Added an answer on May 27, 2026 at 3:11 am

    W.r.t. to the four questions asked:

    • A key insight in this matter is that rather than just typing a
      lambda-abstraction with a potentially polymorphic argument type, we
      are typing a (sugared) abstraction that is (1) applied exactly once
      and, moreover, that is (2) applied to a statically known argument.
      That is, we can first subject the “argument” (i.e. the definiens of
      the local definition) to type reconstruction to find its
      (polymorphic) type; then assign the found type to the “parameter”
      (the definiendum); and then, finally, type the body in the extended
      type context.

      Note that that is considerably more easy than general rank-2 type
      inference.

    • Note that, strictly speaking, let .. = .. in .. is only syntactic sugar in System F if you demand that the definiendum carries a type annotation: let .. : .. = .. in .. .

    • Here are two solutions for T in (\a :: T -> (a True, a 1)) in System F: forall b. (forall a. a -> b) -> (b, b) and forall c d. (forall a b. a -> b) -> (c, d). Note that neither one of them is more general than the other. In general, System F does not admit principal types.

    • I suppose this holds for the simply typed lambda-calculus?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I thought I know how to use JOIN in JPQL but apparently not. Can
I thought jQuery's click() can let us add a handler or just click on
I'm having a blackout here. I thought I understood these principles, but I can't
I thought this would be simple, but for my life, I can't change the
I thought this would be simple but I can't seem to find a variable
Using the query expression style, the let clause can be easily written. My question
I have this string in vb.net. I would appreciate if you can let me
I use an iframe in my site , How i can let the search
How can I let a user access a WordPress protected page with a URL
Can anyone let me know how can access an element of a list that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.