lean2/tests/lean/run/t3.lean
Leonardo de Moura 653141135d chore(tests/lean): add missing tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-04 15:04:57 -07:00

22 lines
351 B
Text

variable int : Type.{1}
variable nat : Type.{1}
namespace int
variable plus : int → int → int
end int
namespace nat
variable plus : nat → nat → nat
end nat
open int nat
variables a b : int
check plus a b
variable f : int → int → int
variable g : nat → nat → int
notation A `+`:65 B:65 := f A (g B B)
variable n : nat
check a + n