Calc
FreshVar()
FreshVars()
Inductive()
Lemma()
NewType()
PTheorem()
Proof
QExists()
QForAll()
QImplies()
Struct()
Theorem()
axiom()
cond()
define()
prove()
search()
simp()
Env
binder()
binders()
expr()
inductive()
inductive_of_tree()
lean()
parse()
quant()
sort()
start()
theorem()
Parse a theorem.
>>> tree = lark.Lark(grammar, start="theorem", parser="lalr").parse("theorem add1_nonneg : forall x : Int, x >= x - 1 := grind") >>> theorem(tree, Env(locals={}, globals={})) |= ForAll(x, x >= x - 1)
tree (Tree)
env (Env)