]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/whelp/fwdQueries.ml
- decompose tactic: decomposable constants are now allowed (they are unfolded)
[helm.git] / helm / software / components / whelp / fwdQueries.ml
index 1f4e508fc032f7534d82e32b44a706b6a199ccac..5387d3aeb170f21b866b778e0dc3d997fc7e8285 100644 (file)
@@ -104,7 +104,8 @@ let decomposables ~dbd =
       | None     -> None
       | Some str ->
          match CicUtil.term_of_uri (UriManager.uri_of_string str) with
-            | Cic.MutInd (uri, typeno, _) -> Some (uri, typeno)
+            | Cic.MutInd (uri, typeno, _) -> Some (uri, Some typeno)
+           | Cic.Const (uri, _)          -> Some (uri, None)
            | _                           -> 
               raise (UriManager.IllFormedUri str)
    in
@@ -112,4 +113,3 @@ let decomposables ~dbd =
    let query = Printf.sprintf "SELECT %s FROM %s" select from in
    let decomposables = HMysql.map ~f:map (HMysql.exec dbd query) in
    filter_map_n (fun _ x -> x) 0 decomposables   
-