lean4-htt/tests/lean/run/nestedInductiveIssue.lean
Leonardo de Moura 8f028a41ae fix: eta-expanded term at levelMVarToParam
This issue produced a nested inductive datatype that could not be
handled by the kernel. See new test.

Without the fix, the inductive declaration contained the term
```
 ((fun α {n : Nat} (t : Vec α n) => ...) Expr n x)
```
The nested occurrence `Vec Expr n` only becomes explicit after
beta-reduction.
2021-01-22 14:17:19 -08:00

8 lines
248 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.

inductive Vec (α : Type u) : Nat → Type u
| nil : Vec α Nat.zero
| cons : α → {n : Nat} → Vec α n → Vec α (n+1)
inductive Expr
| val (v : Nat)
| app2 (f : String) (args : Vec Expr 2)
| app3 (f : String) (args : Vec Expr 3)