]> matita.cs.unibo.it Git - helm.git/commitdiff
Composite coercions are now extracted too.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 30 Aug 2012 08:22:05 +0000 (08:22 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 30 Aug 2012 08:22:05 +0000 (08:22 +0000)
matita/components/grafite_engine/grafiteEngine.ml

index d61ad61039dc54f450067d8e5be6c5f452bf4dde..5891698404d4661e9b4f83fa631b539f684f6055 100644 (file)
@@ -776,6 +776,13 @@ let rec eval_ncommand ~include_paths opts status (text,prefix_len,cmd) =
                      basic_eval_and_record_ncoercion_from_t_cpos_arity 
                       status (name,true,t,cpos,arity) in
                  let aliases = GrafiteDisambiguate.aliases_for_objs status nuris in
+                 let status =
+                  List.fold_left
+                   (fun status uri ->
+                     let obj = NCicEnvironment.get_checked_obj status uri in
+                      eval_extract_obj status obj
+                   ) status nuris
+                 in
                   eval_alias status (mode,aliases)
                with MultiPassDisambiguator.DisambiguationError _-> 
                  HLog.warn ("error in generating coercion: "^name);