summaryrefslogtreecommitdiff
path: root/plugins/firstorder/sequent.mli
blob: c4ed3e21fd80e7bc1036459c6f3ee75289468ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
(************************************************************************)
(*         *   The Coq Proof Assistant / The Coq Development Team       *)
(*  v      *   INRIA, CNRS and contributors - Copyright 1999-2018       *)
(* <O___,, *       (see CREDITS file for the list of authors)           *)
(*   \VV/  **************************************************************)
(*    //   *    This file is distributed under the terms of the         *)
(*         *     GNU Lesser General Public License Version 2.1          *)
(*         *     (see LICENSE file for the text of the license)         *)
(************************************************************************)

open EConstr
open Formula
open Globnames

module CM: CSig.MapS with type key=Constr.t

type h_item = global_reference * (int*Constr.t) option

module History: Set.S with type elt = h_item

val cm_add : Evd.evar_map -> constr -> global_reference -> global_reference list CM.t ->
  global_reference list CM.t

val cm_remove : Evd.evar_map -> constr -> global_reference -> global_reference list CM.t ->
  global_reference list CM.t

module HP: Heap.S with type elt=Formula.t

type t = {redexes:HP.t;
	  context: global_reference list CM.t;
	  latoms:constr list;
	  gl:types;
	  glatom:constr option;
	  cnt:counter;
	  history:History.t;
	  depth:int}

val deepen: t -> t

val record: h_item -> t -> t

val lookup: Evd.evar_map -> h_item -> t -> bool

val add_formula : Environ.env -> Evd.evar_map -> side -> global_reference -> constr -> t -> t

val re_add_formula_list : Evd.evar_map -> Formula.t list -> t -> t

val find_left : Evd.evar_map -> constr -> t -> global_reference

val take_formula : Evd.evar_map -> t -> Formula.t * t

val empty_seq : int -> t

val extend_with_ref_list : Environ.env -> Evd.evar_map -> global_reference list ->
  t -> t * Evd.evar_map

val extend_with_auto_hints : Environ.env -> Evd.evar_map -> Hints.hint_db_name list ->
  t -> t * Evd.evar_map

val print_cmap: global_reference list CM.t -> Pp.t