The Typst math round trip, at the string level
def printTypst (S : Sym) (e : Json) : String
The Typst math spelling of an expression under the symbol table S.
def parseTypst (S : Sym) (s : String) : Option Json
Read Typst math under the symbol table S.
theorem parseTypst_printTypst (S : Sym) (e : Json) (he : isE e = true) :
parseTypst S (printTypst S e) = some e
The Typst round trip: every well-formed expression reads back from its Typst spelling, under every symbol table (collisions included: the printer switches the names involved to the explicit form).