package logtk

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

Module FeatureVector.MakeSource

Parameters

module C : Index.CLAUSE

Signature

Sourcetype feature_vector = int list

a vector of feature

Features

Sourcemodule Feature : sig ... end
Sourceval compute_fv : Feature.t list -> lits -> feature_vector

Index

include Index.SUBSUMPTION_IDX with module C = C
Sourcetype t
module C = C
Sourceval name : string
Sourceval empty : unit -> t

Empty index

Sourceval add : t -> C.t -> t

Index the clause

Sourceval add_seq : t -> C.t Iter.t -> t
Sourceval add_list : t -> C.t list -> t
Sourceval remove : t -> C.t -> t

Un-index the clause

Sourceval remove_seq : t -> C.t Iter.t -> t
Sourceval retrieve_subsuming : t -> Index_intf.lits -> Index_intf.labels -> C.t Iter.t

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

Sourceval retrieve_subsuming_c : t -> C.t -> C.t Iter.t
Sourceval retrieve_subsumed : t -> Index_intf.lits -> Index_intf.labels -> C.t Iter.t

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

Sourceval retrieve_subsumed_c : t -> C.t -> C.t Iter.t
Sourceval retrieve_alpha_equiv : t -> Index_intf.lits -> Index_intf.labels -> C.t Iter.t

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

Sourceval retrieve_alpha_equiv_c : t -> C.t -> C.t Iter.t

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

Sourceval iter : t -> C.t Iter.t
Sourceval fold : ('a -> C.t -> 'a) -> 'a -> t -> 'a
Sourceval empty_with : Feature.t list -> t
Sourceval default_features : Feature.t list
Sourceval features_of_signature : ?ignore:(ID.t -> bool) -> Signature.t -> Feature.t list

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

Sourceval of_signature : Signature.t -> t
Sourceval features : t -> Feature.t list