]> matita.cs.unibo.it Git - helm.git/commitdiff
The body of constants is a reference, not the actual body!
authorAndrea Asperti <andrea.asperti@unibo.it>
Fri, 8 Jan 2010 09:29:51 +0000 (09:29 +0000)
committerAndrea Asperti <andrea.asperti@unibo.it>
Fri, 8 Jan 2010 09:29:51 +0000 (09:29 +0000)
helm/software/components/ng_paramodulation/nCicParamod.ml

index 59018a51719f16d7c2e954f9a1cade94affae8ad..fad1aa41157a96cdaf31669b598ca246601dfe78 100644 (file)
@@ -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
 ;;