Version: v0.13.0

The token-level round trip

Lean module Esm.Document.Math.Main, formal/Esm/Document/Math/Main.lean at 5af01ca9d41a
Imports Esm.Document.Math.Atoms

def addAcc (e : Json) : List Json

The pending + operands a level-4 parse of e leaves in the loop.

def PA (c : Ctx) (e : Json) : Prop

The level-4 parse of e stops in the + loop, with fuel to spare.

def PCr (c : Ctx) (e : Json) : Prop

e as the last rows of a cases block reads back.

def M source
def M (c : Ctx) (e : Json) : Prop

Everything the induction carries.

Generic steps

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