test-suite/bugs/bug_20312.v
raw| 1 | #[projections(primitive=yes)] |
| 2 | Inductive AccS [A : Type] (R : A -> A -> Prop) (x : A) : SProp := |
| 3 | AccS_intro |
| 4 | { AccS_inv : forall y : A, R y x -> AccS R y }. |
| 5 | |
| 6 | Fail Fixpoint test [A : Type] (R : A -> A -> Prop) (x : A) (H : forall x, R x x) a {struct a} : nat := |
| 7 | test R x H (AccS_inv R x a x (H x)). |
| 8 | |
| 9 | #[projections(primitive=no)] |
| 10 | Inductive AccS' [A : Type] (R : A -> A -> Prop) (x : A) : SProp := |
| 11 | AccS_intro' |
| 12 | { AccS_inv' : forall y : A, R y x -> AccS' R y }. |