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.

Round trip, case by case: derivatives and quantities

Lean module Esm.Document.Math.Derivs, formal/Esm/Document/Math/Derivs.lean at ed59cfa2b070
Imports Esm.Document.Math.Templates

Generic steps

theorem headA_us proved source
theorem headA_us {c : Ctx} {a : Json} (ha : M c a) (L : Nat) :
    ∀ t r, (pr c a).at c.sf L = t :: r → t ≠ .kw .us

A printed expression never starts with _.

The time derivative

The spatial derivative partial

partial with trailing operands: \\partial_{x}(u, a, b)

The \nabla forms

theorem nabArg9_read proved source
theorem nabArg9_read {c : Ctx} {a : Json} (ha : M c a) (n : NabK) (rest : List Tok) (hr : Fol c.sf 9 rest)
    (g : Nat) (hg : need 9 (nabArg9 c.sf n ((pr c a).at c.sf 9)).length ≤ g) :
    pPost c g (nabArg9 c.sf n ((pr c a).at c.sf 9) ++ rest) = some (a, rest)

An operand of a \nabla form that is not itself one reads back at level 9.

Quantities

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