Debian Codegraph @

test-suite/bugs/bug_11553.v

raw
1 Definition var := nat.
2 Module Import A.
3 Class Rename (term : Type) := rename : (var -> var) -> term -> term.
4 End A.
5
6 Inductive tm : Type :=
7 (* | tv : vl_ -> tm *)
8 with vl_ : Type :=
9 | var_vl : var -> vl_.
10
11 Definition vl := vl_.
12
13 Fixpoint tm_rename (sb : var -> var) (t : tm) : tm :=
14 let b := vl_rename : Rename vl in
15 match t with
16 end
17 with
18 vl_rename (sb : var -> var) v : vl :=
19 let a := tm_rename : Rename tm in
20 let b := vl_rename : Rename vl in
21 match v with
22 | var_vl x => var_vl (sb x)
23 end.
24
25 #[export] Instance rename_vl : Rename vl := vl_rename.
26
27 Lemma foo ξ x: rename_vl ξ (var_vl x) = var_vl x.
28 (* Succeeds *)
29 cbn. Abort.
30
31 Lemma foo ξ x: rename ξ (var_vl x) = var_vl x.
32 (* Fails *)
33 cbn.
34 Abort.