Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Any term t : α
with a HtmlEval α
instance
can be evaluated in a #html t
command.
This is analogous to how Lean.MetaEval
supports #eval
.
- eval : α → Lean.Elab.Command.CommandElabM ProofWidgets.Html
Instances
Equations
- ProofWidgets.instHtmlEvalHtml = { eval := fun (ht : ProofWidgets.Html) => pure ht }
instance
ProofWidgets.instHtmlEvalHtmlOfMonadLiftTCommandElabM
{m : Type → Type u_1}
[MonadLiftT m Lean.Elab.Command.CommandElabM]
:
Equations
- ProofWidgets.instHtmlEvalHtmlOfMonadLiftTCommandElabM = { eval := monadLift }
Equations
- ProofWidgets.instHtmlEvalCoreMHtml = { eval := Lean.Elab.Command.liftCoreM }
Equations
- ProofWidgets.instHtmlEvalMetaMHtml = { eval := fun (x : Lean.MetaM ProofWidgets.Html) => Lean.Elab.Command.liftTermElabM (liftM x) }
Equations
- ProofWidgets.instHtmlEvalTermElabMHtml = { eval := Lean.Elab.Command.liftTermElabM }
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[implemented_by ProofWidgets.HtmlCommand.evalCommandMHtmlUnsafe]
Display a value of type Html
in the infoview.
The input can be a pure value
or a computation in any Lean metaprogramming monad
(e.g. CommandElabM Html
).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Construct a structured message from ProofWidgets HTML.
For the meaning of alt
, see MessageData.ofWidget
.
Equations
- Lean.MessageData.ofHtml h alt = Lean.MessageData.ofComponent ProofWidgets.HtmlDisplay { html := h } alt