Calc widget #
This file redefines the calc tactic so that it displays a widget panel allowing to create
new calc steps with holes specified by selected sub-expressions in the goal.
Code action to create a calc tactic from the current goal.
Instances For
Parameters for the calc widget.
- pos : Lean.Lsp.Position
- goals : Array Lean.Widget.InteractiveGoal
- selectedLocations : Array Lean.SubExpr.GoalsLocation
- replaceRange : Lean.Lsp.Range
- isFirst : Bool
Is this the first calc step?
- indent : â„•
indentation level of the calc block.
Instances For
@[implicit_reducible]
@[implicit_reducible]
def
suggestSteps
(pos : Array Lean.SubExpr.GoalsLocation)
(goalType : Lean.Expr)
(params : CalcParams)
:
Lean.MetaM (String × String × Option (String.Pos.Raw × String.Pos.Raw))
Return the link text and inserted text above and below of the calc widget.
Instances For
def
CalcPanel.rpc
(params : CalcParams)
:
Lean.Server.RequestM (Lean.Server.RequestTask ProofWidgets.Html)
Rpc function for the calc widget.