Zulip Chat Archive
Stream: new members
Topic: set-option option docs?
Ada Weird (Aug 06 2025 at 13:36):
Hello, I was wondering if there was one centralized place I could go to look at any of the options I can use with set_option. Also some way to push the current set of options on the stack, set the options I need, do whatever, and then pop back to the options before I meddled with them would be much appreciated.
Michael Rothgang (Aug 06 2025 at 13:42):
A set_option only takes effect for the current section or namespace --- so you should be able to put your code with different options in a section.
Michael Rothgang (Aug 06 2025 at 13:44):
For your first question, there's #help option: this will tell you about the options you can use that this point.
Ada Weird (Aug 06 2025 at 13:44):
Ah okay. Yeah that works for me.
Ada Weird (Aug 06 2025 at 13:45):
Thank you!
Michael Rothgang (Aug 06 2025 at 13:45):
(Lean code can define new option, so "one place to list all options there are" cannot quite exist.)
Ada Weird (Aug 06 2025 at 13:45):
Ah I see. I'm just learning so I didn't know about that.
Michael Rothgang (Aug 06 2025 at 13:46):
No worries! I just learned about #help option myself :-)
Michael Rothgang (Aug 06 2025 at 13:47):
#help also has a few other variants, which are occasionally helpful.
Michael Rothgang (Aug 06 2025 at 13:48):
To get a list of all mathlib tactics that is nicer to read and curated, I prefer this over #help tactic, though.
Last updated: Dec 20 2025 at 21:32 UTC