Debian Codegraph @

test-suite/bugs/bug_16482.v

raw
1 Set Definitional UIP.
2 Set Universe Polymorphism.
3 Set Polymorphic Inductive Cumulativity.
4
5 Inductive eqn {A : Type} (x : A) : A -> SProp := refl : @eqn A x x.
6
7 Definition Rw {A B : Type} (e : eqn A B) (x : A) : B := match e with | refl _ => x end.
8
9 Definition F (A : Type) (P : A -> Type) (Q1 : forall x, P x): SProp.
10 Proof.
11 refine (eqn Q1 _).
12 intro a.
13 refine (Rw _ (Q1 a)).
14 reflexivity.
15 Defined.
16
17 Record BTy : Type := {
18 typL : Type;
19 typP : typL -> Type;
20 typQ : forall x, typP x;
21 eps : @F typL typP typQ;
22 }.
23 (* Anomaly "Uncaught exception Invalid_argument("index out of bounds")." *)