lean4-htt/tests/lean/run/new_inductive2.lean
2018-09-06 18:09:32 -07:00

20 lines
343 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

universes u v
inductive arrow (α : Type u) (β : Type v)
| mk : (α → β) → arrow
inductive foo
| mk : arrow nat foo → foo
#print foo
#print foo.rec
set_option pp.all true
#print foo.below
mutual inductive foo2, arrow2
with foo2 : Type
| mk : arrow2 → foo2
with arrow2 : Type
| mk : (nat → foo2) → arrow2
#print foo2.brec_on