Project

EarthSciAST

The EarthSciML Abstract Syntax Tree format: schema, operators, coupling, and five language bindings.

Contents

This is the documentation for the older version v0.16.0. For the latest release, see v0.17.0.

The token-level round trip

Lean module Esm.Document.Math.Main, formal/Esm/Document/Math/Main.lean at ed59cfa2b070
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.