lean4-htt/tests/lean/num4.lean
Sebastian Ullrich c4edad0372 feat(frontends/lean, library): remove attribute and metaclass scoping
All data is now part of either a global, permanent scope or a local,
temporary one
2016-07-29 23:44:21 -04:00

20 lines
279 B
Text

import data.num
set_option pp.notation false
set_option pp.implicit true
namespace foo
constant N : Type.{1}
constant z : N
constant o : N
constant a : N
notation 0 := z
notation 1 := o
check a = 0
end foo
check (2:nat) = 1
check foo.a = 1
open foo
check a = 1