]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_paramodulation/nCicParamod.ml
Categorical stuff postponed.
[helm.git] / helm / software / components / ng_paramodulation / nCicParamod.ml
index 3b9bfce045a4ca2496f9fa1c6b74b030a5d36100..fad1aa41157a96cdaf31669b598ca246601dfe78 100644 (file)
@@ -101,7 +101,7 @@ type state = P.state
 let empty_state = P.empty_state
 
 let forward_infer_step s t ty =
-  let bag = P.bag_of_state s in 
+  let bag = P.bag_of_state s in
   let bag,clause = P.mk_passive bag (t,ty) in
     if Terms.is_eq_clause clause then
       P.forward_infer_step (P.replace_bag s bag) clause 0
@@ -111,8 +111,9 @@ let forward_infer_step s t ty =
 let index_obj s uri =
   let obj = NCicEnvironment.get_checked_obj uri in
   match obj with
-    | (_,_,[],[],NCic.Constant(_,_,Some(t),ty,_)) ->
-       forward_infer_step s t ty
+    | (_,d,[],[],NCic.Constant(_,_,Some(_),ty,_)) ->
+        let nref = NReference.reference_of_spec uri (NReference.Def d) in
+       forward_infer_step s (NCic.Const nref) ty
     | _ -> s
 ;;