Debian Codegraph @

test-suite/bugs/bug_21690.v

raw
1 Inductive sFalse : SProp := .
2
3 Definition f (x:sFalse) := match x return nat -> nat with end.
4
5 Fail Definition bli : (fun x : sFalse => f x 0) = (fun x : sFalse => f x 1)
6 := eq_refl.
7
8 (* use unsafe tac to ensure it's not just fixed in the higher layers *)
9 Definition bli : (fun x : sFalse => f x 0) = (fun x : sFalse => f x 1).
10 Proof.
11 match goal with |- ?l = _ => exact_no_check (eq_refl l) end.
12 Fail Qed.
13 Abort.
14
15 (* definitional uip version *)
16 Set Definitional UIP.
17 Inductive seq {A} (a:A) : A -> SProp :=
18 srefl : seq a a.
19
20 Definition F {x y:nat} (e:seq x y) := match e return nat -> nat with srefl _ => fun x => x end.
21
22 Fail Definition bli (x y:nat) (e:seq x y) : F e 0 = F e 1 := eq_refl.
23
24 Definition bli (x y:nat) (e:seq x y) : F e 0 = F e 1.
25 Proof.
26 match goal with |- ?l = _ => exact_no_check (eq_refl l) end.
27 Fail Qed.
28 Abort.