aboutsummaryrefslogtreecommitdiff
path: root/contrib/first-order/sequent.ml
diff options
context:
space:
mode:
authorcorbinea2003-06-13 15:28:29 +0000
committercorbinea2003-06-13 15:28:29 +0000
commitf1bd83d9d6f69a0309572f1bfe22827d4c3f4eb7 (patch)
treed36f10773968ed883c56e574c72f6c7e4f560e02 /contrib/first-order/sequent.ml
parent89d58784a6e86f701bb8c619c32d62d546800d9f (diff)
Ground update, new files.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4156 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/first-order/sequent.ml')
-rw-r--r--contrib/first-order/sequent.ml12
1 files changed, 8 insertions, 4 deletions
diff --git a/contrib/first-order/sequent.ml b/contrib/first-order/sequent.ml
index 4ece7c8c50..91a8f1ddd8 100644
--- a/contrib/first-order/sequent.ml
+++ b/contrib/first-order/sequent.ml
@@ -11,6 +11,7 @@
open Term
open Util
open Formula
+open Unify
open Tacmach
open Names
open Libnames
@@ -120,14 +121,17 @@ struct
let compare=compare_constr
end
+type h_item = global_reference * (int*constr) option
+
module Hitem=
struct
- type t=(global_reference * constr option)
+ type t = h_item
let compare (id1,co1) (id2,co2)=
(Pervasives.compare
=? (fun oc1 oc2 ->
match oc1,oc2 with
- Some c1,Some c2 -> OrderedConstr.compare c1 c2
+ Some (m1,c1),Some (m2,c2) ->
+ ((-) =? OrderedConstr.compare) m1 m2 c1 c2
| _,_->Pervasives.compare oc1 oc2)) id1 id2 co1 co2
end
@@ -163,9 +167,9 @@ type t=
let deepen seq={seq with depth=seq.depth-1}
-let record id topt seq={seq with history=History.add (id,topt) seq.history}
+let record item seq={seq with history=History.add item seq.history}
-let lookup id topt seq=History.mem (id,topt) seq.history
+let lookup item seq=History.mem item seq.history
let add_left (nam,t) seq internal gl=
match build_left_entry nam t internal gl seq.cnt with