Executing actions using the infotree #
This file contains helper functions for running CoreM, MetaM and tactic actions
in the context of an infotree node.
Embeds a CoreM action in CommandElabM by supplying the information stored in info.
Copy of ContextInfo.runCoreM that makes use of the CommandElabM context for:
- logging messages produced by the
CoreMaction, - metavariable generation,
- auxiliary declaration generation.
Equations
Instances For
Embeds a MetaM action in CommandElabM by supplying the information stored in info.
Copy of ContextInfo.runMetaM that makes use of the CommandElabM context for:
- message logging (messages produced by the
CoreMaction are migrated back), - metavariable generation,
- auxiliary declaration generation,
- local instances.
Equations
Instances For
Run a tactic computation in the context of an infotree node.
Equations
Instances For
Run tactic code, given by a piece of syntax, in the context of an infotree node.
The optional MetaM argument m performs postprocessing on the goals produced.
Equations
Instances For
Embeds a CoreM action in CommandElabM, returning both the result and the InfoTrees produced.
Similar to runCoreMWithMessages but also captures InfoTrees for extracting "Try this:" suggestions.
Equations
Instances For
Embeds a MetaM action in CommandElabM, returning both the result and InfoTrees produced.
Equations
Instances For
Run a tactic computation in the context of an infotree node, capturing InfoTrees produced.
Equations
Instances For
Run tactic code in the context of an infotree node, capturing InfoTrees for suggestion extraction.
Returns both the resulting goals and the InfoTrees produced during tactic execution.
Use collectTryThisSuggestions from Mathlib.Lean.Elab.InfoTree to extract suggestions.