test-suite/bugs/bug_2353.v
raw| 1 | (* Are recursively non-uniform params correctly treated? *) |
| 2 | Inductive list (A:nat -> Type) n := cons : A n -> list A (S n) -> list A n. |
| 3 | Inductive term n := app (l : list term n). |
| 4 | Definition term_list := |
| 5 | fix term_size n (t : term n) (acc : nat) {struct t} : nat := |
| 6 | match t with |
| 7 | | app _ l => |
| 8 | (fix term_list_size n (l : list term n) (acc : nat) {struct l} : nat := |
| 9 | match l with |
| 10 | | cons _ _ t q => term_list_size (S n) q (term_size n t acc) |
| 11 | end) n l (S acc) |
| 12 | end. |