lean4-htt/tests/lean/protected_test.lean
Leonardo de Moura e9f8f9e5d7 refactor(library/nat): rename nat.le to nat.less_than
Motivation: avoid overload when we use `open nat`.

Unfortunately, we currently do not allow users to mark inductive datatype
declarations as protected.
2016-11-25 18:53:03 -08:00

11 lines
271 B
Text

namespace nat
check induction_on -- ERROR
check rec_on -- ERROR
check nat.induction_on
check less_than.rec_on -- OK
check nat.less_than.rec_on
namespace le
check rec_on -- ERROR
check less_than.rec_on
end le
end nat