Version: dev

This is the documentation for the development version. For the latest release, see v0.12.1.

An equation as math

Lean module Esm.Document.Source.Equation, formal/Esm/Document/Source/Equation.lean at 184aa13d35e5
Imports Esm.Document.Source.Facts, Mathlib.Data.String.Basic

An equation lhs = rhs is printed as the math of the expression ==(lhs, rhs): the = is the comparison’s sign at the loosest comparison level. So the Phase 2 round trip (parseLatex_printLatex, parseTypst_printTypst) reads it back, and a side that is itself a comparison, and or or is parenthesized by the precedence rules where needed: on the right always, on the left when it is an and or an or (a comparison on the left, a < b = c, reads back as the same equation because comparisons associate to the left).

def eqExpr (e : Eqn) : Json

The expression an equation is printed as.

def eqSides : Json → Option (Json × Json)

The equation sides of a parsed expression, when it is an == node.

This module also proves 2 lemmas without doc comments; they are in the source.