From 3a0c71609f757f4ad3aadd234b84486fec97b791 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Wed, 5 Nov 2008 21:27:18 +0000 Subject: [PATCH] duplicate entry in menv avoided --- .../components/tactics/paramodulation/saturation.ml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/helm/software/components/tactics/paramodulation/saturation.ml b/helm/software/components/tactics/paramodulation/saturation.ml index c8ab4e428..7cb9fb0e5 100644 --- a/helm/software/components/tactics/paramodulation/saturation.ml +++ b/helm/software/components/tactics/paramodulation/saturation.ml @@ -1623,7 +1623,12 @@ let all_subsumed bag maxm status active passive = status goalproof newproof subsumption_id subsumption_subst proof_menv in let uri, metasenv, subst, meta_proof, term_to_prove, attrs = proof in - let proof = uri, other_menv@metasenv, subst, meta_proof, term_to_prove, attrs in + let newmetasenv = + other_menv @ + List.filter + (fun x,_,_ -> not (List.exists (fun y,_,_ -> x=y) other_menv)) metasenv + in + let proof = uri, newmetasenv, subst, meta_proof, term_to_prove, attrs in (subst, proof,gl)) subsumed_or_id in res, !maxmeta -- 2.39.2