Documentation

Lean.Data.Json.Elab

JSON-like syntax for Lean. #

Now you can write

open Lean.Json

#eval json% {
  hello : "world",
  cheese : ["edam", "cheddar", {kind : "spicy", rank : 100.2}],
  lemonCount : 100e30,
  isCool : true,
  isBug : null,
  lookACalc: $(23 + 54 * 2)
}
Equations
  • One or more equations did not get rendered due to their size.

Json null value syntax.

Equations

Json true value syntax.

Equations

Json false value syntax.

Equations

Json string syntax.

Equations

Json number negation syntax for ordinary numbers.

Equations
  • One or more equations did not get rendered due to their size.

Json number negation syntax for scientific numbers.

Equations
  • One or more equations did not get rendered due to their size.

Json array syntax.

Equations
  • One or more equations did not get rendered due to their size.

Json key/value syntax.

Equations
  • One or more equations did not get rendered due to their size.

Json object syntax.

Equations
  • One or more equations did not get rendered due to their size.

Allows to use Json syntax in a Lean file.

Equations