Debian Codegraph @

test-suite/bugs/bug_3584.v

raw
1 Set Primitive Projections.
2 Set Implicit Arguments.
3 Record sigT {A} (P : A -> Type) := existT { projT1 : A ; projT2 : P projT1 }.
4 Definition eta_sigma {A} {P : A -> Type} (u : sigT P)
5 : existT _ (projT1 u) (projT2 u) = u
6 := match u with existT _ x y => eq_refl end. (* Toplevel input, characters 0-139:
7 Error: Pattern-matching expression on an object of inductive type sigT
8 has invalid information. *)
9 Definition sum_of_sigT A B (x : sigT (fun b : bool => if b then A else B))
10 : A + B
11 := match x with
12 | existT _ true a => inl a
13 | existT _ false b => inr b
14 end. (* Toplevel input, characters 0-182:
15 Error: Pattern-matching expression on an object of inductive type sigT
16 has invalid information. *)