test-suite/coqchk/inductive_functor_params.v
raw| 1 | |
| 2 | Module Type T. |
| 3 | Parameter foo : nat -> nat. |
| 4 | End T. |
| 5 | |
| 6 | Module F (A:T). |
| 7 | Inductive ind (n:nat) : nat -> Prop := |
| 8 | | C : (forall x, x < n -> ind (A.foo n) x) -> ind n n. |
| 9 | End F. |
| 10 | |
| 11 | Module A. Definition foo (n:nat) := n. End A. |
| 12 | |
| 13 | Module M := F A. |
| 14 | (* Note: M.ind could be seen as having 1 recursively uniform |
| 15 | parameter, but module substitution does not recognize it, so it is |
| 16 | treated as a non-uniform parameter. *) |