lean2/tests/lean/run/n1.lean
Leonardo de Moura 813e033f54 test(lean): add simple example of notation implemented using Lua
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-17 22:37:22 -07:00

15 lines
286 B
Text

variable A : Type.{1}
variable a : A
variable g : A → A
variable f : A → A → A
(*
function foo()
return Const("g")(parse_expr())
end
*)
notation `tst` c1:(call foo) `with` c2:(call foo) := f c1 c2
notation `simple` c:(call foo) := c
variable b : A
check tst (simple b) with a