λ littlelean

a little Lean 4, interpreted right here in the page. #eval runs your terms; theorems are checked by evaluating the statement — decided exactly when closed, tested on samples when they have free variables.

post to bluesky ready

source (.lean)

messages

nothing yet
what's in the box: def (recursion, | pattern => … alternatives), inductive, namespace/open, match, fun/(· + 1), if/let, Nat/Int/Bool/String/Char/List/Option/tuples, ∀ x ∈ xs, ∀ n < k, #eval, #check, theorem/example.
what isn't: dependent types, a kernel, real tactics, structure, do. Any tactic block is read as "evaluate the statement" — sorry is flagged, not checked. Subtraction truncates at 0 unless the file mentions Int. For the real thing, paste into live.lean-lang.org.