Debian Codegraph @

test-suite/bugs/bug_2193.v

raw
1 (* Computation of dependencies in the "match" return predicate was incomplete *)
2 (* Submitted by R. O'Connor, Nov 2009 *)
3
4 Inductive Symbol : Set :=
5 | VAR : Symbol.
6
7 Inductive SExpression :=
8 | atomic : Symbol -> SExpression.
9
10 Inductive ProperExpr : SExpression -> SExpression -> Type :=
11 | pe_3 : forall (x : Symbol) (alpha : SExpression),
12 ProperExpr alpha (atomic VAR) ->
13 ProperExpr (atomic x) alpha.
14
15 Definition A (P : forall s : SExpression, Type)
16 (x alpha alpha1 : SExpression)
17 (t : ProperExpr (x) alpha1) : option (x = atomic VAR) :=
18 match t as pe in ProperExpr a b return option (a = atomic VAR) with
19 | pe_3 x0 alpha3 tye' =>
20 (fun (x:Symbol) (alpha : SExpression) => @None (atomic x = atomic VAR))
21 x0 alpha3
22 end.
23
24 Definition B (P : forall s : SExpression, Type)
25 (x alpha alpha1 : SExpression)
26 (t : ProperExpr (x) alpha1) : option (x = atomic VAR) :=
27 match t as pe in ProperExpr a b return option (a = atomic VAR) with
28 | pe_3 x0 alpha3 tye' =>
29 (fun (x:Symbol) (alpha : SExpression) (t:ProperExpr alpha (atomic VAR)) => @None (atomic x = atomic VAR))
30 x0 alpha3 tye'
31 end.