Debian Codegraph @

tactics/tacticErrors.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 open Names
12 open EConstr
13 open Environ
14 open Evd
15 open Tactypes
16
17 (** Common exceptions raised by tactics. These exceptions are catched at
18 toplevel and pretty-printed to the user. *)
19
20 (** {6 Raising exceptions.} *)
21
22 val intro_already_declared : ?loc:Loc.t -> Id.t -> 'a
23
24 val clear_dependency : ?loc:Loc.t -> env -> evar_map -> Id.t option ->
25 Evarutil.clear_dependency_error -> GlobRef.t option -> 'a
26
27 val replacing_dependency : ?loc:Loc.t -> env -> evar_map -> Id.t ->
28 Evarutil.clear_dependency_error -> GlobRef.t option -> 'a
29
30 val already_used : ?loc:Loc.t -> Id.t -> 'a
31
32 val used_twice : ?loc:Loc.t -> Id.t -> 'a
33
34 val variable_has_no_value : ?loc:Loc.t -> Id.t -> 'a
35
36 val convert_incompatible_types : ?loc:Loc.t -> env -> evar_map -> constr -> constr -> 'a
37
38 val convert_not_a_type : ?loc:Loc.t -> unit -> 'a
39
40 val not_convertible : ?loc:Loc.t -> unit -> 'a
41
42 val not_unfoldable : ?loc:Loc.t -> unit -> 'a
43
44 val no_quantified_hypothesis : ?loc:Loc.t -> quantified_hypothesis -> bool -> 'a
45
46 val cannot_find_instance : ?loc:Loc.t -> Id.t -> 'a
47
48 val nothing_to_rewrite : ?loc:Loc.t -> Id.t -> 'a
49
50 val ill_formed_elimination_type : ?loc:Loc.t -> unit -> 'a
51
52 val unable_to_apply_lemma : ?loc:Loc.t -> env -> evar_map -> constr -> constr -> 'a
53
54 val depends_on_body : ?loc:Loc.t -> Id.t list -> Id.Set.t -> Id.t option -> 'a
55
56 val not_right_number_constructors : ?loc:Loc.t -> int -> 'a
57
58 val not_enough_constructors : ?loc:Loc.t -> unit -> 'a
59
60 val constructors_numbered_from_one : ?loc:Loc.t -> unit -> 'a
61
62 val no_constructors : ?loc:Loc.t -> unit -> 'a
63
64 val unexpected_extra_pattern : ?loc:Loc.t -> int option ->
65 delayed_open_constr intro_pattern_expr -> 'a
66
67 val cannot_find_inductive_argument : ?loc:Loc.t -> unit -> 'a
68
69 val one_intro_pattern_expected : ?loc:Loc.t -> unit -> 'a
70
71 val keep_and_clear_modifier_only_for_hypotheses : ?loc:Loc.t -> unit -> 'a
72
73 val fixpoint_on_non_inductive_type : ?loc:Loc.t -> unit -> 'a
74
75 val not_enough_products : ?loc:Loc.t -> unit -> 'a
76
77 val all_methods_in_coinductive_type : ?loc:Loc.t -> unit -> 'a
78
79 val replacement_ill_typed : ?loc:Loc.t -> exn -> 'a
80
81 val not_enough_premises : ?loc:Loc.t -> unit -> 'a
82
83 val need_dependent_product : ?loc:Loc.t -> unit -> 'a
84
85 (** {6 Internal use only.} *)
86
87 val clear_dependency_msg : env -> evar_map -> Names.Id.t option ->
88 Evarutil.clear_dependency_error -> GlobRef.t option -> Pp.t
89
90 exception NotConvertible
91 exception DependsOnBody of Names.Id.t list * Names.Id.Set.t * Names.Id.t option