X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_transformations%2FtacticAstPp.ml;h=d0e87b0943e91055f4a4d48bb2091b5703a7d425;hb=9680f6df42892b7b586fb2932617fa99703036bf;hp=76f1bbd5623961fa624a52e7253ba41027130d77;hpb=e35ec00b1be70e4b064b74a49735b37b5e719e5b;p=helm.git diff --git a/helm/ocaml/cic_transformations/tacticAstPp.ml b/helm/ocaml/cic_transformations/tacticAstPp.ml index 76f1bbd56..d0e87b094 100644 --- a/helm/ocaml/cic_transformations/tacticAstPp.ml +++ b/helm/ocaml/cic_transformations/tacticAstPp.ml @@ -33,7 +33,7 @@ let pp_idents idents = "[" ^ String.concat "; " idents ^ "]" let pp_reduction_kind = function | `Reduce -> "reduce" - | `Simpl -> "simpl" + | `Simpl -> "simplify" | `Whd -> "whd" let rec pp_tactic = function @@ -68,7 +68,16 @@ let rec pp_tactic = function (match idents with [] -> "" | idents -> " " ^ pp_idents idents) | Left -> "left" | LetIn (term, ident) -> sprintf "let %s in %s" (pp_term term) ident - | Reduce (_, _, _) -> assert false (* TODO *) + | Reduce (kind, None) + | Reduce (kind, Some ([], `Goal)) -> pp_reduction_kind kind + | Reduce (kind, Some ([], `Everywhere)) -> + sprintf "%s in hyp" (pp_reduction_kind kind) + | Reduce (kind, Some (terms, `Goal)) -> + sprintf "%s %s" (pp_reduction_kind kind) + (String.concat ", " (List.map pp_term terms)) + | Reduce (kind, Some (terms, `Everywhere)) -> + sprintf "%s in hyp %s" (pp_reduction_kind kind) + (String.concat ", " (List.map pp_term terms)) | Reflexivity -> "reflexivity" | Replace (t1, t2) -> sprintf "replace %s with %s" (pp_term t1) (pp_term t2) | Replace_pattern (_, _) -> assert false (* TODO *)