- | 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 (_, t1, t2, where) ->
+ sprintf "change %s with %s%s" (pp_term_ast t1) (pp_term_ast t2)
+ (pp_pattern where)
+ | 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) ->
+ sprintf "elim " ^ pp_term_ast term ^
+ (match using with None -> "" | Some term -> " using " ^ pp_term_ast term)
+ | ElimType (_, term) -> "elim type " ^ pp_term_ast term
+ | Exact (_, term) -> "exact " ^ pp_term_ast term
+ | Exists _ -> "exists"
+ | Fold (_, kind, term) ->
+ sprintf "fold %s %s" (pp_reduction_kind kind) (pp_term_ast term)
+ | Generalize (_, term, ident, pattern) ->
+ sprintf "generalize %s%s %s" (pp_term_ast term)
+ (match ident with None -> "" | Some id -> " as " ^ id)
+ (pp_pattern pattern)
+ | Goal (_, n) -> "goal " ^ string_of_int n
+ | Fourier _ -> "fourier"
+ | Injection (_, term) -> "injection " ^ pp_term_ast term
+ | Intros (_, None, []) -> "intro"
+ | Intros (_, num, idents) ->