Zulip Chat Archive
Stream: new members
Topic: listing config options of a tactic
Lawrence Wu (llllvvuu) (Aug 06 2025 at 19:54):
is there a general way to list the config options of a tactic? the only way i'm aware is to go to the mathlib docs and search for <TacticName>.Config, e.g. docs#Lean.Try.Config, docs#Lean.Grind.Config, docs#Lean.Meta.Simp.Config
Like an equivalent of --help or something? Hover doesn't work, and go-to-def goes to something like
@[builtin_tactic Lean.Parser.Tactic.simp] def evalSimp : Tactic := fun stx => withMainContext do withSimpDiagnostics do
let { ctx, simprocs, dischargeWrapper } ← mkSimpContext stx (eraseLocal := false)
let stats ← dischargeWrapper.with fun discharge? =>
simpLocation ctx simprocs discharge? (expandOptLocation stx[5])
if tactic.simp.trace.get (← getOptions) then
traceSimpCall stx stats.usedTheorems
return stats.diag
and now I'm lost
Robin Arnez (Aug 06 2025 at 19:59):
You can use simp (config := { <cursor> }) and then trigger autocompletion
Last updated: Dec 20 2025 at 21:32 UTC