feat: disable "experimental" warning for mvcgen (#10638)

This PR disables the "experimental" warning for `mvcgen` by changing its
default.
This commit is contained in:
Sebastian Graf 2025-10-01 16:10:40 +02:00 committed by GitHub
parent d9058225a9
commit 689b3aa8d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -464,7 +464,7 @@ where
@[builtin_tactic Lean.Parser.Tactic.mvcgen]
def elabMVCGen : Tactic := fun stx => withMainContext do
if mvcgen.warning.get (← getOptions) then
logWarningAt stx "The `mvcgen` tactic is experimental and still under development. Avoid using it in production projects."
logWarningAt stx "The `mvcgen` tactic is new and its behavior may change in the future. This project has used `set_option mvcgen.warning true` to discourage its use."
let ctx ← mkSpecContext stx[1] stx[2]
let fuel := match ctx.config.stepLimit with
| some n => .limited n

View file

@ -18,9 +18,9 @@ open Lean Parser Elab Tactic Meta Do SpecAttr
builtin_initialize registerTraceClass `Elab.Tactic.Do.vcgen
register_builtin_option mvcgen.warning : Bool := {
defValue := true
defValue := false
group := "debug"
descr := "disable `mvcgen` usage warning"
descr := "enable `mvcgen` usage warning"
}
inductive Fuel where