Debian Codegraph @

proofs/tacmach.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 Environ
13 open EConstr
14
15 (** Operations for handling terms under a local typing context. *)
16
17 open Evd
18
19 (** Variants of [Tacmach] functions built with the new proof engine *)
20
21 val pf_apply : (env -> evar_map -> 'a) -> Proofview.Goal.t -> 'a
22 [@@ocaml.deprecated "(9.2) Use Proofview.Goal.{env, sigma}"]
23
24 val project : Proofview.Goal.t -> Evd.evar_map
25 [@@ocaml.deprecated "(9.2) Use Proofview.Goal.sigma"]
26
27 val pf_env : Proofview.Goal.t -> Environ.env
28 [@@ocaml.deprecated "(9.2) Use Proofview.Goal.env"]
29
30 val pf_concl : Proofview.Goal.t -> types
31 [@@ocaml.deprecated "(9.2) Use Proofview.Goal.concl"]
32
33 (** This function does no type inference and expects an already well-typed term.
34 It recomputes its type in the fastest way possible (no conversion is ever involved) *)
35 val pf_get_type_of : Proofview.Goal.t -> constr -> types
36 [@@ocaml.deprecated "(9.2) Use Retyping.get_type_of"]
37
38 (** This function entirely type-checks the term and computes its type
39 and the implied universe constraints. *)
40 val pf_type_of : Proofview.Goal.t -> constr -> evar_map * types
41 [@@ocaml.deprecated "(9.2) Use Typing.type_of"]
42
43 val pf_conv_x : Proofview.Goal.t -> t -> t -> bool
44 [@@ocaml.deprecated "(9.2) Use Reductionops.is_conv"]
45
46 val pf_get_new_id : Id.t -> Proofview.Goal.t -> Id.t
47 val pf_ids_of_hyps : Proofview.Goal.t -> Id.t list
48 val pf_ids_set_of_hyps : Proofview.Goal.t -> Id.Set.t
49
50 val pf_hyps_types : Proofview.Goal.t -> (Id.t * types) list
51 [@@ocaml.deprecated "(9.2) Use EConstr.named_context"]
52
53 val pf_get_hyp : Id.t -> Proofview.Goal.t -> named_declaration
54 val pf_get_hyp_typ : Id.t -> Proofview.Goal.t -> types
55 val pf_last_hyp : Proofview.Goal.t -> named_declaration
56 [@@ocaml.deprecated "(9.2) Use EConstr.named_context"]
57
58 val pf_nf_concl : Proofview.Goal.t -> types
59 [@@ocaml.deprecated "(9.2) Use Reductionops.nf_evar"]
60
61 val pf_hnf_constr : Proofview.Goal.t -> constr -> types
62 [@@ocaml.deprecated "(9.2) Use Tacred.hnf_constr"]
63
64 val pf_hnf_type_of : Proofview.Goal.t -> constr -> types
65 [@@ocaml.deprecated "(9.2) Use Reductionops.whd_all and Retyping.get_type_of"]
66
67 val pf_compute : Proofview.Goal.t -> constr -> constr
68 [@@ocaml.deprecated "(9.2) Use Tacred.pf_compute"]
69
70 val pf_whd_compute : Proofview.Goal.t -> constr -> constr
71 [@@ocaml.deprecated "(9.2) Use Tacred.whd_compute"]
72
73 val pf_nf_evar : Proofview.Goal.t -> constr -> constr
74 [@@ocaml.deprecated "(9.2) Use Reductionops.nf_evar"]
75
76 val pr_gls : Proofview.Goal.t -> Pp.t
77 [@@ocaml.deprecated "(9.2) Use Printer.pr_evar"]