Debian Codegraph @

test-suite/bugs/bug_4001.v

raw
1 (* Computing the type constraints to be satisfied when building the
2 return clause of a match with a match *)
3
4 Set Implicit Arguments.
5 Set Asymmetric Patterns.
6
7 Parameter A : Type.
8 Parameter typ : A -> Type.
9
10 Inductive t : list A -> Type :=
11 | snil : t nil
12 | scons : forall (x : A) (e : typ x) (lx : list A) (le : t lx), t (x::lx).
13
14 Definition car (x:A) (lx : list A) (s: t (x::lx)) : typ x :=
15 match s in t l' with
16 | snil => False
17 | scons _ e _ _ => e
18 end.