]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/cicEnvironment.ml
first moogle template checkin
[helm.git] / helm / ocaml / cic_proof_checking / cicEnvironment.ml
index 45c0dba5a8b404fbe2201e8e9a0ff24b638340c4..8014a19404d99da98716962b039b203ef559e97d 100644 (file)
@@ -399,3 +399,9 @@ let put_inductive_definition uri obj =
     Cic.InductiveDefinition _ -> Cache.add_cooked uri obj
   | _ -> raise OnlyPutOfInductiveDefinitionsIsAllowed
 ;;
+
+let in_cache uri = 
+ try
+  ignore (Cache.find_cooked uri);true
+ with Not_found -> false
+;;