lean2/tests/lean/run/ind4.lean
Leonardo de Moura 364bba2129 feat(frontends/lean/inductive_cmd): prefix introduction rules with the name of the inductive datatype
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-04 17:26:36 -07:00

23 lines
372 B
Text

section
parameter A : Type
inductive list : Type :=
nil : list,
cons : A → list → list
end
check list.{1}
check list.cons.{1}
section
parameter A : Type
inductive tree : Type :=
node : A → forest → tree
with forest : Type :=
fnil : forest,
fcons : tree → forest → forest
check tree
check forest
end
check tree.{1}
check forest.{1}