]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_transformations/tacticAst2Box.ml
added support for patterns current goal
[helm.git] / helm / ocaml / cic_transformations / tacticAst2Box.ml
index 4f1c27f471372492884b22d6932f637e55e24402..902a1d661eeabda075b9e8c1cc760b97610625f0 100644 (file)
@@ -49,7 +49,7 @@ let rec count_tactic current_size tac =
         (match where with 
             None -> size2
           | Some ident -> size2 + 3 + String.length ident)
-    | Change_pattern _ -> assert false  (* TODO *)
+(*     | Change_pattern _ -> assert false  (* TODO *) *)
     | Contradiction _ -> current_size + 13
     | Cut (_, term) -> countterm (current_size + 4) term
     | Decompose (_, ident, principles) ->
@@ -77,13 +77,13 @@ let rec count_tactic current_size tac =
     | Left _ -> current_size + 4
     | LetIn (_, term, ident) ->
        countterm (current_size + 5 + String.length ident) term
-    | Reduce _
-    | ReduceAt _ -> assert false  (* TODO *)
+(*     | Reduce _ *)
+    | Reduce _ -> assert false  (* TODO *)
     | Reflexivity _ -> current_size + 11
     | Replace (_, t1, t2) -> 
        let size1 = countterm (current_size + 14) t1 in (* replace, with *)
          countterm size1 t2    
-    | Replace_pattern _ -> assert false  (* TODO *)
+(*     | Replace_pattern _ -> assert false  (* TODO *) *)
     | Rewrite _ -> assert false (* TODO *)
     | Right _ -> current_size + 5
     | Ring _ -> current_size + 4
@@ -150,7 +150,7 @@ and big_tactic2box = function
              (pretty_append 
                 [Box.Text([],"with")]
                 t2)@where)
-  | Change_pattern _ -> assert false  (* TODO *)
+(*   | Change_pattern _ -> assert false  (* TODO *) *)
   | Contradiction _ -> Box.Text([],"contradiction")
   | Cut (_, term) -> 
       Box.V([],[Box.Text([],"cut");
@@ -213,8 +213,8 @@ and big_tactic2box = function
                          Box.smallskip;
                          Box.Text([],"=")]);
                Box.indent (ast2astBox term)])
-  | Reduce _
-  | ReduceAt _ -> assert false  (* TODO *)
+(*   | Reduce _ *)
+  | Reduce _ -> assert false  (* TODO *)
   | Reflexivity _ -> Box.Text([],"reflexivity")
   | Replace (_, t1, t2) -> 
       Box.V([],
@@ -224,7 +224,7 @@ and big_tactic2box = function
            (pretty_append 
               [Box.Text([],"with")]
               t2))
-  | Replace_pattern _ -> assert false  (* TODO *)
+(*   | Replace_pattern _ -> assert false  (* TODO *) *)
   | Rewrite _ -> assert false (* TODO *)
   | Right _ -> Box.Text([],"right")
   | Ring _ ->  Box.Text([],"ring")