]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/grafite_engine/grafiteTypes.ml
Wrong invariant: Hypothesis (i.e. lambda-abstractions) can have no
[helm.git] / helm / software / components / grafite_engine / grafiteTypes.ml
index 80efca87aa05b6e968ffeee01c1ae3682aaf20bb..fe872c128283332a31d83037693e9e9027b89bda 100644 (file)
@@ -69,8 +69,8 @@ let get_current_proof status =
 let get_proof_metasenv status =
   match status.proof_status with
   | No_proof -> []
-  | Proof (_, metasenv, _, _)
-  | Incomplete_proof { proof = (_, metasenv, _, _) }
+  | Proof (_, metasenv, _, _, _)
+  | Incomplete_proof { proof = (_, metasenv, _, _, _) }
   | Intermediate metasenv ->
       metasenv
 
@@ -93,11 +93,11 @@ let set_metasenv metasenv status =
   let proof_status =
     match status.proof_status with
     | No_proof -> Intermediate metasenv
-    | Incomplete_proof ({ proof = (uri, _, proof, ty) } as incomplete_proof) ->
+    | Incomplete_proof ({ proof = (uri, _, proof, ty, attrs) } as incomplete_proof) ->
         Incomplete_proof
-          { incomplete_proof with proof = (uri, metasenv, proof, ty) }
+          { incomplete_proof with proof = (uri, metasenv, proof, ty, attrs) }
     | Intermediate _ -> Intermediate metasenv 
-    | Proof (_, metasenv', _, _) ->
+    | Proof (_, metasenv', _, _, _) ->
        assert (metasenv = metasenv');
        status.proof_status
   in
@@ -105,14 +105,14 @@ let set_metasenv metasenv status =
 
 let get_proof_context status goal =
   match status.proof_status with
-  | Incomplete_proof { proof = (_, metasenv, _, _) } ->
+  | Incomplete_proof { proof = (_, metasenv, _, _, _) } ->
       let (_, context, _) = CicUtil.lookup_meta goal metasenv in
       context
   | _ -> []
 
 let get_proof_conclusion status goal =
   match status.proof_status with
-  | Incomplete_proof { proof = (_, metasenv, _, _) } ->
+  | Incomplete_proof { proof = (_, metasenv, _, _, _) } ->
       let (_, _, conclusion) = CicUtil.lookup_meta goal metasenv in
       conclusion
   | _ -> raise (Statement_error "no ongoing proof")
@@ -125,7 +125,8 @@ let add_moo_content cmds status =
 (*         prerr_endline ("adding to moo command: " ^ GrafiteAstPp.pp_command cmd); *)
         match cmd with
         | GrafiteAst.Default _ 
-        | GrafiteAst.Index _ ->
+        | GrafiteAst.Index _
+        | GrafiteAst.Coercion _ ->
             if List.mem cmd content then acc
             else cmd :: acc
         | _ -> cmd :: acc)