Debian Codegraph @

test-suite/bugs/bug_4031.v

raw
1 Definition something (P:Type) (e:P) := e.
2
3 Inductive myunit : Set := mytt.
4 (* Proof below works when definition is in Type,
5 however builtin types such as unit are in Set. *)
6
7 Lemma demo_hide_generic :
8 let x := mytt in x = x.
9 Proof.
10 intros.
11 change mytt with (@something _ mytt) in x.
12 subst x. (* Proof works if this line is removed *)
13 reflexivity.
14 Qed.