X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmathql_generator%2FcGSearchPattern.ml;h=47345e9f3bd079d9e84572224bb5848195f7e573;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=77f3b488c6e896a7285e3ef2a0c73e2f415f87d9;hpb=506b4b7597021c98e34fb65cf9d0bb7879f06e92;p=helm.git diff --git a/helm/ocaml/mathql_generator/cGSearchPattern.ml b/helm/ocaml/mathql_generator/cGSearchPattern.ml index 77f3b488c..47345e9f3 100644 --- a/helm/ocaml/mathql_generator/cGSearchPattern.ml +++ b/helm/ocaml/mathql_generator/cGSearchPattern.ml @@ -80,7 +80,8 @@ let get_constraints term = let rec process_type_aux kind = function C.Var (uri,expl_named_subst) -> - ([!!!kind, UriManager.string_of_uri uri],[],[]) @@ + (* andrea: this is a bug: variable are not indexedin the db + ([!!!kind, UriManager.string_of_uri uri],[],[]) @@ *) (process_type_aux_expl_named_subst kind expl_named_subst) | C.Rel _ -> (match kind with @@ -95,12 +96,13 @@ let get_constraints term = match s with Cic.Prop -> T.Prop | Cic.Set -> T.Set - | Cic.Type -> T.Type + | Cic.Type _ -> T.Type (* TASSI: ?? *) + | Cic.CProp -> T.CProp in [],[],[!!kind,s'] | _ -> [],[],[]) - | C.Meta _ - | C.Implicit -> assert false + | C.Meta _ -> [],[],[] (* ???? To be understood *) + | C.Implicit _ -> assert false | C.Cast (te,_) -> (* type ignored *) process_type_aux kind te @@ -170,6 +172,7 @@ in ;; (*CSC: Debugging only *) +(* let get_constraints term = let res = get_constraints term in let (objs,rels,sorts) = res in @@ -186,7 +189,7 @@ let get_constraints term = (function (p, s) -> prerr_endline (text_of_pos (p:>T.full_position) ^ " " ^ U.text_of_sort s) ) sorts ; res -;; +;; *) let universe = [T.MainHypothesis; T.InHypothesis; T.MainConclusion; T.InConclusion]