lean4-htt/tests/lean/run/new_inductive2.lean
Leonardo de Moura 208b932583 feat(library/constructions/brec_on): add brec_on and binduction_on for new inductive datatype module
We don't support these constructions for nested inductive types, but we
do for mutual inductives.
2018-09-05 14:46:03 -07:00

21 lines
373 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.

set_option new_inductive true
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