- | LocatedTactic (loc, tac) -> pp_tactic tac
- | Absurd term -> "absurd" ^ pp_term term
- | Apply term -> "apply " ^ pp_term term
- | Auto -> "auto"
- | Assumption -> "assumption"
- | Change (t1, t2, where) ->
- sprintf "change %s with %s%s" (pp_term t1) (pp_term t2)
- (match where with None -> "" | Some ident -> "in " ^ ident)
- | Change_pattern (_, _, _) -> assert false (* TODO *)
- | Contradiction -> "contradiction"
- | Cut term -> "cut " ^ pp_term term
- | Decompose (ident, principles) ->
- sprintf "decompose %s %s" (pp_idents principles) ident
- | Discriminate ident -> "discriminate " ^ ident
- | Elim (term, using) ->
- sprintf "elim " ^ pp_term term ^
- (match using with None -> "" | Some term -> " using " ^ pp_term term)
- | ElimType term -> "elim type " ^ pp_term term
- | Exact term -> "exact " ^ pp_term term
- | Exists -> "exists"
- | Fold (kind, term) ->
- sprintf "fold %s %s" (pp_reduction_kind kind) (pp_term term)
- | Fourier -> "fourier"
- | Hint -> "hint"
- | Injection ident -> "injection " ^ ident
- | Intros (None, []) -> "intro"
- | Intros (num, idents) ->
+ | Absurd (_, term) -> "absurd" ^ pp_term_ast term
+ | Apply (_, term) -> "apply " ^ pp_term_ast term
+ | Auto _ -> "auto"
+ | Assumption _ -> "assumption"
+ | Change (_, where, with_what) ->
+ sprintf "change %s with %s" (pp_pattern where) (pp_term_ast with_what)
+ | Clear (_,id) -> sprintf "clear %s" id
+ | ClearBody (_,id) -> sprintf "clearbody %s" id
+ | Compare (_,term) -> "compare " ^ pp_term_ast term
+ | Constructor (_,n) -> "constructor " ^ string_of_int n
+ | Contradiction _ -> "contradiction"
+ | Cut (_, ident, term) ->
+ "cut " ^ pp_term_ast term ^
+ (match ident with None -> "" | Some id -> " as " ^ id)
+ | DecideEquality _ -> "decide equality"
+ | Decompose (_, term) ->
+ sprintf "decompose %s" (pp_term_ast term)
+ | Discriminate (_, term) -> "discriminate " ^ pp_term_ast term
+ | Elim (_, term, using, num, idents) ->
+ sprintf "elim " ^ pp_term_ast term ^
+ (match using with None -> "" | Some term -> " using " ^ pp_term_ast term)
+ ^ pp_intros_specs (num, idents)
+ | ElimType (_, term, using, num, idents) ->
+ sprintf "elim type " ^ pp_term_ast term ^
+ (match using with None -> "" | Some term -> " using " ^ pp_term_ast term)
+ ^ pp_intros_specs (num, idents)
+ | Exact (_, term) -> "exact " ^ pp_term_ast term
+ | Exists _ -> "exists"
+ | Fold (_, kind, term, pattern) ->
+ sprintf "fold %s %s %s" (pp_reduction_kind kind)
+ (pp_term_ast term) (pp_pattern pattern)
+ | FwdSimpl (_, hyp, idents) ->
+ sprintf "fwd %s%s" hyp
+ (match idents with [] -> "" | idents -> " " ^ pp_idents idents)
+ | Generalize (_, pattern, ident) ->
+ sprintf "generalize %s%s" (pp_pattern pattern)
+ (match ident with None -> "" | Some id -> " as " ^ id)
+ | Goal (_, n) -> "goal " ^ string_of_int n
+ | Fail _ -> "fail"
+ | Fourier _ -> "fourier"
+ | IdTac _ -> "id"
+ | Injection (_, term) -> "injection " ^ pp_term_ast term
+ | Intros (_, None, []) -> "intro"
+ | Intros (_, num, idents) ->