Documentation

Lean.Elab.Tactic.Config

Legacy tactic configuration elaboration #

This module exists for reverse compatibility — users should import Lean.Elab.ConfigEval directly. It has been deprecated since 2026-05-14 and will be removed.

The new declare_config_elab and declare_command_config_elab commands are generally drop-in replacements for the legacy ones.

Migration notes:

  • ref : Syntax
  • option : Ident
  • value : Term
  • bool : Bool

    Whether this was using +/-, to be able to give a better error message on type mismatch.

Instances For
    def Lean.Elab.Tactic.mkConfigItemViews (c : TSyntaxArray `Lean.Parser.Tactic.configItem) :

    Interprets the config as an array of option/value pairs.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Lean.Elab.Tactic.elabConfig (recover : Bool) (structName : Name) (items : Array ConfigItemView) :

      Elaborates a tactic configuration.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        declare_config_elab_legacy elabName TypeName declares a function elabName : Syntax → TacticM TypeName that elaborates a tactic configuration. The tactic configuration can be from Lean.Parser.Tactic.optConfig or Lean.Parser.Tactic.config, and these can also be wrapped in null nodes (for example, from (config)?).

        The elaborator responds to the current recovery state.

        For defining elaborators for commands, use declare_command_config_elab.

        This command has been deprecated since 2026-05-14. Use declare_config_elab instead.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          declare_command_config_elab_legacy elabName TypeName declares a function elabName : Syntax → CommandElabM TypeName that elaborates a command configuration. The configuration can be from Lean.Parser.Tactic.optConfig or Lean.Parser.Tactic.config, and these can also be wrapped in null nodes (for example, from (config)?).

          The elaborator has error recovery enabled.

          This command has been deprecated since 2026-05-14. Use declare_command_config_elab instead.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For