]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_transformations/tacticAst2Box.ml
added Auto and Hint tactic
[helm.git] / helm / ocaml / cic_transformations / tacticAst2Box.ml
index 1d82c0aebd0fbe29fa23895d28b352f5f77a24e3..5afb38ca8a1c00f485137e251963710f423bafb0 100644 (file)
@@ -42,6 +42,7 @@ let rec count_tactic current_size tac =
       LocatedTactic (_, tac) -> count_tactic current_size tac
     | Absurd term -> countterm (current_size + 6) term
     | Apply term -> countterm (current_size + 6) term
+    | Auto -> current_size + 4
     | Assumption -> current_size + 10
     | Change (t1, t2, where) ->
        let size1 = countterm (current_size + 12) t1 in (* change, with *)
@@ -68,6 +69,7 @@ let rec count_tactic current_size tac =
     | Fold (kind, term) ->
        countterm (current_size + 5) term
     | Fourier -> current_size + 7
+    | Hint -> current_size + 4
     | Injection ident -> current_size + 10 + (String.length ident)
     | Intros (num, idents) ->
        List.fold_left 
@@ -133,6 +135,7 @@ and big_tactic2box = function
       Box.V([],[Box.Text([],"apply");
                ast2astBox term])
   | Assumption -> Box.Text([],"assumption")
+  | Auto -> Box.Text([],"auto")
   | Change (t1, t2, where) ->
       let where =
        (match where with 
@@ -189,6 +192,7 @@ and big_tactic2box = function
                          Box.Text([],string_of_kind kind)]);
                Box.indent(ast2astBox term)])
   | Fourier -> Box.Text([],"fourier")
+  | Hint -> Box.Text([],"hint")
   | Injection ident -> 
       Box.V([],[Box.Text([],"transitivity");
                Box.indent (Box.Text([],ident))])