package logtk

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

Parameters

Signature

type feature_vector = int list

a vector of feature

Features

module Feature : sig ... end
val compute_fv : Feature.t list -> LogtkIndex.lits -> feature_vector

LogtkIndex

include LogtkIndex.SUBSUMPTION_IDX with module C = C
type t
module C = C
val name : string
val empty : unit -> t

Empty index

val add : t -> C.t -> t

LogtkIndex the clause

val add_seq : t -> C.t Sequence.t -> t
val remove : t -> C.t -> t

Un-index the clause

val remove_seq : t -> C.t Sequence.t -> t
val retrieve_subsuming : t -> LogtkIndex.lits -> 'a -> ('a -> C.t -> 'a) -> 'a

Fold on a set of indexed candidate clauses, that may subsume the given clause.

val retrieve_subsuming_c : t -> C.t -> 'a -> ('a -> C.t -> 'a) -> 'a
val retrieve_subsumed : t -> LogtkIndex.lits -> 'a -> ('a -> C.t -> 'a) -> 'a

Fold on a set of indexed candidate clauses, that may be subsumed by the given clause

val retrieve_subsumed_c : t -> C.t -> 'a -> ('a -> C.t -> 'a) -> 'a
val iter : t -> (C.t -> unit) -> unit
val fold : ('a -> C.t -> 'a) -> 'a -> t -> 'a
val retrieve_alpha_equiv : t -> LogtkIndex.lits -> 'a -> ('a -> C.t -> 'a) -> 'a

Retrieve clauses that are potentially alpha-equivalent to the given clause

  • since 0.6
val retrieve_alpha_equiv_c : t -> C.t -> 'a -> ('a -> C.t -> 'a) -> 'a
  • since 0.6
val empty_with : Feature.t list -> t
val default_features : Feature.t list
val features_of_signature : ?ignore:(LogtkSymbol.t -> bool) -> LogtkSignature.t -> Feature.t list

Build a set of features from the given signature. LogtkSymbols that satisfy ignore are not considered (default ignores connectives)

val of_signature : LogtkSignature.t -> t
val features : t -> Feature.t list
OCaml

Innovation. Community. Security.