summaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/4727.v
blob: 3854bbffdd22273f91dbf8f5bcb7bd1d5baa40a2 (plain)
1
2
3
4
5
6
7
8
9
10
(* -*- coq-prog-args: ("-emacs" "-compat" "8.4") -*- *)
Goal forall (P : Set) (l : P) (P0 : Set) (w w0 : P0) (T : Type) (a : P * T) (o : P -> option P0),
    (forall (l1 l2 : P) (w1 : P0), o l1 = Some w1 -> o l2 = Some w1 -> l1 = l2) ->
    o l = Some w -> o (fst a) = Some w0 -> {w = w0} + {w <> w0} -> False.
Proof.
  clear; intros ???????? inj H0 H1 H2.
  destruct H2; intuition subst.
  eapply inj in H1; [ | eauto ].
  progress subst. (* should succeed, used to not succeed *)
Abort.