Debian Codegraph @

test-suite/bugs/bug_17188.v

raw
1 Record type := Pack {sort : Type}.
2 Record def (T : type) := Def { r : sort T }.
3 Canonical mkdef (xt : type) (x : sort xt) := Def xt x.
4
5 Axiom t : type.
6 Axiom f : sort t -> sort t.
7
8 Canonical fdef (x : def t) := Def t (f (r t x)).
9
10 Axiom myeq0 : forall (x : def t), r t x = r t x.
11
12 Require Import ssreflect.
13 Goal (fun x : sort t => f x) = (fun x : sort t => x).
14 Fail rewrite myeq0.
15 (* Anomaly "in retyping: unbound local variable." *)
16 Abort.