]> matita.cs.unibo.it Git - helm.git/blobdiff - components/grafite_engine/grafiteTypes.ml
Add_moo_content modified to avoid repetitions of index command during inclusion.
[helm.git] / components / grafite_engine / grafiteTypes.ml
index 0c02e1b6c38d86fdfcfb69ca51283dab32c5c677..80efca87aa05b6e968ffeee01c1ae3682aaf20bb 100644 (file)
@@ -57,11 +57,13 @@ type status = {
   options: options;
   objects: UriManager.uri list;
   coercions: UriManager.uri list;
+  universe:Universe.universe;  
 }
 
 let get_current_proof status =
   match status.proof_status with
   | Incomplete_proof { proof = p } -> p
+  | Proof p -> p
   | _ -> raise (Statement_error "no ongoing proof")
 
 let get_proof_metasenv status =
@@ -122,7 +124,8 @@ let add_moo_content cmds status =
       (fun cmd acc ->
 (*         prerr_endline ("adding to moo command: " ^ GrafiteAstPp.pp_command cmd); *)
         match cmd with
-        | GrafiteAst.Default _ ->
+        | GrafiteAst.Default _ 
+        | GrafiteAst.Index _ ->
             if List.mem cmd content then acc
             else cmd :: acc
         | _ -> cmd :: acc)