]> matita.cs.unibo.it Git - helm.git/blobdiff - components/acic_procedural/proceduralClassify.ml
cicUtil : new test function "is_sober" to test the integrity of a term
[helm.git] / components / acic_procedural / proceduralClassify.ml
index 755176e5c50cc4d4d280fcee4b373089ebbcb485..489feb4b66aa54385f1e3f102ecdc5381cb1d9c8 100644 (file)
@@ -82,8 +82,9 @@ try
    let rc = classify_conclusion vs in
    let map (b, h) (c, v) = 
       let _, argsno = PEH.split_with_whd (c, v) in
+      let isf = argsno > 0 || H.is_sort v in
       let iu = H.is_unsafe h (List.hd vs) in
-      (I.get_rels_from_premise h v, I.S.empty, argsno > 0 && iu) :: b, succ h
+      (I.get_rels_from_premise h v, I.S.empty, isf && iu) :: b, succ h
    in
    let l, h = List.fold_left map ([], 0) vs in
    let b = Array.of_list (List.rev l) in