Zulip Chat Archive

Stream: new members

Topic: newbee question about fn application


csmoe (Jun 10 2023 at 11:50):

I cannot find a channel for lean4 newbee, really sorry for disturbing here.

while reading functional programming in lean to learn lean4, these sentences confused me a lot:
image.png

Because the remaining arguments are not explicitly named, no further substitution occurs as more arguments are provided

where does the substitution stop as no further substitution?

Notification Bot (Jun 10 2023 at 11:52):

This topic was moved here from #general > newbee question about fn application by Eric Wieser.

Scott Morrison (Jun 10 2023 at 11:55):

(The new members stream, where Eric has moved your question, @csmoe, is perfect for new user questions, whether for Lean 3 or Lean 4.)

Scott Morrison (Jun 10 2023 at 11:56):

That's not how I would have worded that sentence, and I agree it doesn't make much sense as written.

Scott Morrison (Jun 10 2023 at 11:57):

I think it is meant to mean "since the remaining arguments are no longer dependent on each other, no further substitutions will occur as more arguments are provided".

Scott Morrison (Jun 10 2023 at 11:59):

I guess it does make sense as written: #check is only going to show an argument as having a name, if later arguments have types depending on that argument.

Scott Morrison (Jun 10 2023 at 12:00):

The confusing part is that he's talking about "having an explicit name", which is really just about how #check prints things, rather than the fundamental property of whether it is a dependent function or not.

csmoe (Jun 10 2023 at 12:04):

thanks :smile:


Last updated: Dec 20 2023 at 11:08 UTC