lean4-htt/tests/lean/run/331.lean
Daniel Selsam a9b01991c2 feat(frontends/lean/inductive_cmd): new frontend for the inductive cmd
Conflicts:
	src/frontends/lean/CMakeLists.txt
	src/frontends/lean/structure_cmd.h
2016-08-17 07:34:03 -07:00

21 lines
309 B
Text

namespace nat
inductive less (a : nat) : nat → Prop
| base : less (succ a)
| step : Π {b}, less b → less (succ b)
end nat
open nat
check less.rec_on
namespace foo1
protected definition foo2.bar : nat := 10
end foo1
example : foo1.foo2.bar = 10 :=
rfl
open foo1
example : foo2.bar = 10 :=
rfl