From ee07024b3b3265c2764e2d6b26036a69c280cb70 Mon Sep 17 00:00:00 2001 From: msozeau Date: Tue, 22 Jul 2008 14:44:15 +0000 Subject: Add test-suite file for bug# 1905 and minor fix in Program/Equality. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11245 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/bugs/closed/shouldsucceed/1905.v | 13 +++++++++++++ theories/Program/Equality.v | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 test-suite/bugs/closed/shouldsucceed/1905.v diff --git a/test-suite/bugs/closed/shouldsucceed/1905.v b/test-suite/bugs/closed/shouldsucceed/1905.v new file mode 100644 index 0000000000..bd7fd79672 --- /dev/null +++ b/test-suite/bugs/closed/shouldsucceed/1905.v @@ -0,0 +1,13 @@ + +Require Import Setoid. + +Axiom t : Set. +Axiom In : nat -> t -> Prop. +Axiom InE : forall (x : nat) (s:t), impl (In x s) True. + +Goal forall a s, + In a s -> False. +Proof. + intros a s Ia. + rewrite InE in Ia. +Admitted. \ No newline at end of file diff --git a/theories/Program/Equality.v b/theories/Program/Equality.v index bb1ffbd2ba..89e44c9bc4 100644 --- a/theories/Program/Equality.v +++ b/theories/Program/Equality.v @@ -82,7 +82,7 @@ Ltac simpl_uip := (** Simplify equalities appearing in the context and goal. *) -Ltac simpl_eq := simpl ; repeat (elim_eq_rect ; simpl) ; repeat (simpl_uip ; simpl). +Ltac simpl_eq := simpl ; unfold eq_rec_r, eq_rec ; repeat (elim_eq_rect ; simpl) ; repeat (simpl_uip ; simpl). (** Try to abstract a proof of equality, if no proof of the same equality is present in the context. *) -- cgit v1.2.3