Zulip Chat Archive
Stream: general
Topic: how is field notation implemented?
Asei Inoue (Jun 02 2024 at 07:21):
How is field notation implemented in Lean? Are they macros as well as pipeline notation?
Kyle Miller (Jun 02 2024 at 17:02):
It's part of the app elaborator itself. Take a look at the match
in docs#Lean.Elab.Term.elabAppFn
Asei Inoue (Jun 03 2024 at 06:39):
@Kyle Miller Thank you but the link is 404!
Utensil Song (Jun 03 2024 at 09:08):
You can find elabAppFn
here: https://github.com/leanprover/lean4/blob/873ef2d894af80d8fc672e35f7e28bae314a1f6f/src/Lean/Elab/App.lean#L1344
It's a private def, so it's not shown in the docs.
Last updated: May 02 2025 at 03:31 UTC