Zulip Chat Archive

Stream: lean4

Topic: Documentation for attributes


Ioannis Konstantoulas (Oct 09 2023 at 13:48):

Do we have a place where the various @[x] are documented? I don't know what things like specialize, private, implemented_by, etc. are. Also interested in the difference between inline, always_inline, macro_inline, etc.

Eric Wieser (Oct 09 2023 at 14:09):

If you hover over them in vscode, you should get docstrings

Ioannis Konstantoulas (Oct 09 2023 at 14:15):

Eric Wieser said:

If you hover over them in vscode, you should get docstrings

Huh, that is weird; I swear I had tried to do this before and didn't work. Thanks!

Alexandre Rademaker (Feb 09 2024 at 20:56):

It does not work for me. I am trying to understand the difference between @[inline] and partial def

Alexandre Rademaker (Feb 09 2024 at 20:59):

OK, it worked in the Main file, but not all files. Anyway, the docstring does not mention the inline attribute.

Jireh Loreaux (Feb 09 2024 at 21:06):

There's also #help attr inline, although admittedly the documentation is very sparse, and somewhat circular.

Alexandre Rademaker (Feb 09 2024 at 22:56):

Hum, #help is not working for me! I am using Lean (version 4.4.0, commit ca7d6dadb9e1, Release)

Kyle Miller (Feb 09 2024 at 23:26):

#help attr is a mathlib extension, defined in Mathlib.Tactic.HelpCmd


Last updated: May 02 2025 at 03:31 UTC