Version: dev

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

The token-level round trip, by induction over the expression

Lean module Esm.Document.Math.Induct, formal/Esm/Document/Math/Induct.lean at 184aa13d35e5
Imports Esm.Document.Math.Faq

theorem M_all proved source
theorem M_all (c : Ctx) : โˆ€ n e, sizeOf e < n โ†’ isE e = true โ†’ M c e

Every well-formed expression carries the round-trip facts.

def parseToks (sf : Sf) (S : Sym) (ts : List Tok) : Option Json

Read a whole token list as one expression.

theorem parseToks_print proved source
theorem parseToks_print (sf : Sf) (S : Sym) (e : Json) (he : isE e = true) :
    parseToks sf S (print sf S e) = some e

The token-level round trip: every well-formed expression reads back from its printed tokens, on both surfaces and under every symbol table.

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