Debian Codegraph @

test-suite/bugs/bug_5321.v

raw
1 Definition proj1_sig_path {A} {P : A -> Prop} {u v : sig P} (p : u = v)
2 : proj1_sig u = proj1_sig v
3 := f_equal (@proj1_sig _ _) p.
4
5 Definition proj2_sig_path {A} {P : A -> Prop} {u v : sig P} (p : u = v)
6 : eq_rect _ _ (proj2_sig u) _ (proj1_sig_path p) = proj2_sig v
7 := match p with eq_refl => eq_refl end.
8
9 Goal forall sz : nat,
10 let sz' := sz in
11 forall pf : sz = sz',
12 let feq_refl := exist (fun x : nat => sz = x) sz' eq_refl in
13 let fpf := exist (fun x : nat => sz = x) sz' pf in feq_refl = fpf ->
14 proj2_sig feq_refl = proj2_sig fpf.
15 Proof.
16 intros.
17 etransitivity; [ | exact (proj2_sig_path H) ].
18 Fail clearbody fpf.
19 Abort.