package libzipperposition

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file proofState_intf.ml

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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77

(* This file is free software, part of Zipperposition. See file "license" for more details. *)

open Logtk

(** {2 Set of active clauses} *)
module type S = sig
  module Ctx : Ctx.S
  module C : Clause_intf.S

  module CQueue : ClauseQueue.S with module C = C and type C.t = C.t
  (** Priority queues on clauses *)

  (** {6 Useful Index structures} *)

  module TermIndex : Index.TERM_IDX with type elt = C.WithPos.t
  module UnitIndex : Index.UNIT_IDX
    with type E.t = (Term.t * Term.t * bool * C.t)
     and type E.rhs = Term.t
  module SubsumptionIndex : Index.SUBSUMPTION_IDX with type C.t = C.t

  (** {6 Common Interface for Sets} *)

  module type CLAUSE_SET = sig
    val on_add_clause : C.t Signal.t
    (** signal triggered when a clause is added to the set *)

    val on_remove_clause : C.t Signal.t
    (** signal triggered when a clause is removed from the set *)

    val add : C.t Iter.t -> unit
    (** Add clauses to the set *)

    val remove : C.t Iter.t -> unit
    (** Remove clauses from the set *)
  end

  module ActiveSet : sig
    include CLAUSE_SET

    val clauses : unit -> C.ClauseSet.t
    (** Current set of clauses *)

    val num_clauses : unit -> int
  end

  module SimplSet : CLAUSE_SET

  module PassiveSet : sig
    include CLAUSE_SET

    val clauses : unit -> C.ClauseSet.t
    (** Current set of clauses *)

    val queue : CQueue.t
    (** Current state of the clause queue *)

    val next : unit -> C.t option
    (** Get-and-remove the next passive clause to process *)

    val num_clauses : unit -> int
  end

  (** {6 Misc} *)

  type stats = int * int * int
  (** statistics on the state (num active, num passive, num simplification) *)

  val stats : unit -> stats
  (** Compute statistics *)

  val pp : unit CCFormat.printer
  (** pretty print the content of the state *)

  val debug : unit CCFormat.printer
  (** debug functions: much more detailed printing *)
end
OCaml

Innovation. Community. Security.