Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto bound implicit args are not limited to single letters #100

Open
medovina opened this issue Feb 3, 2024 · 1 comment
Open

auto bound implicit args are not limited to single letters #100

medovina opened this issue Feb 3, 2024 · 1 comment
Assignees

Comments

@medovina
Copy link

medovina commented Feb 3, 2024

The section Auto Bound Implicit Arguments (in chapter 6 Interacting with Lean) says

When Lean processes the header of a declaration, any unbound identifier is automatically added as an implicit argument if it is a single lower case or greek letter.

However (at least in the current version 4.5.0) this feature does not seem to be limited to single letters. For example:

def foo (x : abc) := x

#check foo

produces

foo.{u_1} {abc : Sort u_1} (x : abc) : abc

So presumably this documentation needs to be updated (unless this is actually considered to be a bug in Lean).

@david-christiansen david-christiansen self-assigned this Feb 3, 2024
@david-christiansen
Copy link
Collaborator

You're right - this is a mistake in the document. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants