From 9b67b88dc13cbd0720cf88e105a60732f8ab619b Mon Sep 17 00:00:00 2001 From: herbelin Date: Sun, 5 May 2013 22:47:32 +0000 Subject: Little fix for Nsatz: hypotheses not directly relevant to the nsatz problem are cleared (in case they denote applicative terms with at least 6 arguments). However some of them are used for type class instance inference (e.g. hypotheses of type Integral_domain). This commits prevents clearing these hypotheses. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16469 85f007b7-540e-0410-9357-904b9bb8a0f7 --- plugins/nsatz/Nsatz.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/nsatz') diff --git a/plugins/nsatz/Nsatz.v b/plugins/nsatz/Nsatz.v index 5c1f4c470..21a94afca 100644 --- a/plugins/nsatz/Nsatz.v +++ b/plugins/nsatz/Nsatz.v @@ -248,11 +248,11 @@ Fixpoint interpret3 t fv {struct t}: R := End nsatz1. Ltac equality_to_goal H x y:= - let h := fresh "nH" in (* eliminate trivial hypotheses, but it takes time!: + let h := fresh "nH" in (assert (h:equality x y); [solve [cring] | clear H; clear h]) - || *) (try generalize (@psos_r1 _ _ _ _ _ _ _ _ _ _ _ x y H); clear H) + || *) try (generalize (@psos_r1 _ _ _ _ _ _ _ _ _ _ _ x y H); clear H) . Ltac equalities_to_goal := -- cgit v1.2.3