Defines commands to compile and execute a command / term / tactic on the spot:
-
run_cmd doSeqcommand which executes code inCommandElabM Unit. This is almost the same as#eval show CommandElabM Unit from do doSeq, except that it doesn't print an empty diagnostic. -
run_tac doSeqtactic which executes code inTacticM Unit. -
by_elab doSeqterm which executes code inTermElabM Exprto produce an expression.
The run_cmd doSeq command executes code in CommandElabM Unit.
This is almost the same as #eval show CommandElabM Unit from do doSeq,
except that it doesn't print an empty diagnostic.
Equations
- Mathlib.RunCmd.runCmd = Lean.ParserDescr.node `Mathlib.RunCmd.runCmd 1022 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "run_cmd ") (Lean.ParserDescr.const `doSeq))
Instances For
The run_tac doSeq tactic executes code in TacticM Unit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
- The
by_elab doSeqexpression runs thedoSeqas aTermElabM Exprto synthesize the expression. by_elab fun expectedType? ↦ do doSeqreceives the expected type (anOption Expr) as well.
Equations
- Mathlib.RunCmd.byElab = Lean.ParserDescr.node `Mathlib.RunCmd.byElab 1022 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "by_elab ") (Lean.ParserDescr.const `doSeq))
Instances For
Elaborator for by_elab.
Equations
- One or more equations did not get rendered due to their size.