@kha I have disabled this check. It was implemented 2 years ago by Daniel, and I don't want to fix it. It seems you have already fixed a bug there. AFAICT, this check is just for improving error messages. I believe we may not even need it since the kernel now supports nested inductive types. AFAIR, Daniel implemented this check here because the inductive compiler was introducing a lot of auxiliary declarations that were making the kernel error messages unreadable.
6 lines
83 B
Text
6 lines
83 B
Text
structure D (α : Type) :=
|
||
(a : α)
|
||
|
||
inductive S
|
||
| mk₁ (v : S)
|
||
| mk₂ (v : D S)
|