Debian Codegraph @

proofs/subproof.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 val refine_by_tactic
12 : name:Names.Id.t
13 -> poly:PolyFlags.t
14 -> Environ.env
15 -> Evd.evar_map
16 -> EConstr.types
17 -> unit Proofview.tactic
18 -> EConstr.constr * Evd.evar_map
19 (** A variant of {!Proof.solve} that handles open terms as well.
20 Caveat: all effects are purged in the returned term at the end, but other
21 evars solved by side-effects are NOT purged, so that unexpected failures may
22 occur. Ideally all code using this function should be rewritten in the
23 monad. *)
24
25 val build_by_tactic :
26 Environ.env ->
27 uctx:UState.t -> poly:PolyFlags.t ->
28 typ:EConstr.types ->
29 unit Proofview.tactic ->
30 Constr.constr * Constr.types * UState.named_universes_entry * bool * UState.t
31 (** Semantics of this function is a bit dubious, use with care *)
32
33 val build_by_tactic_opt :
34 Environ.env ->
35 uctx:UState.t -> poly:PolyFlags.t ->
36 typ:EConstr.types ->
37 unit Proofview.tactic ->
38 (Constr.constr * Constr.types * UState.named_universes_entry * bool * UState.t) option
39 (** Same as above but returns None rather than an exception if the proof is not finished *)
40
41 val declare_abstract :
42 name:Names.Id.t ->
43 poly:PolyFlags.t ->
44 sign:EConstr.named_context ->
45 secsign:Environ.named_context_val ->
46 opaque:bool ->
47 solve_tac:unit Proofview.tactic ->
48 Environ.env ->
49 Evd.evar_map ->
50 EConstr.t -> Evd.evar_map * EConstr.t * EConstr.t list * bool
51
52 val shrink_entry :
53 ('a, 'b, 'c) Context.Named.Declaration.pt list ->
54 Constr.constr ->
55 Constr.types -> Constr.constr * Constr.constr * EConstr.t list