Structured presentation data for a mathematical companion. Formulas and dependency links are derived from the interpreted expression trees. The JSON and HTML renderers remain part of the documented presentation boundary.
def
LeanMirror.Vocabulary.withDefinitionLinks
{Symbol : Ty → Type}
(v : Vocabulary Symbol)
:
Vocabulary Symbol
Links annotate notation; they never alter the expression being interpreted.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
LeanMirror.Expr.theoremJson
{Symbol : Ty → Type}
(v : Vocabulary Symbol)
(statement : Expr Symbol [] Ty.prop)
:
Preserve the familiar introductory sentence for a restricted universal claim.
Equations
- One or more equations did not get rendered due to their size.
- LeanMirror.Expr.theoremJson v statement = Lean.Json.mkObj [("kind", Lean.Json.str "formula"), ("formula", Lean.Json.str (LeanMirror.Expr.latex v.withDefinitionLinks statement))]
Instances For
Equations
- One or more equations did not get rendered due to their size.