package logtk

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

Module Logtk.HVarSource

Hashconsed Variable

A variable for hashconsed terms, paired with a type. Such a 'ty HVar.t is really a pair (int, 'ty): the integer is used to be able to have several variables in the same clause, the type is because in typed logic we must know the type of variables before unifying/binding them.

Sourcetype +'a t = private {
  1. id : int;
  2. ty : 'a;
}
Sourcetype 'a hvar = 'a t
Sourceval make : ty:'a -> int -> 'a t
Sourceval id : _ t -> int
Sourceval ty : 'a t -> 'a
Sourceval cast : 'a t -> ty:'b -> 'b t
Sourceval update_ty : 'a t -> f:('a -> 'b) -> 'b t
Sourceval compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
Sourceval equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
Sourceval hash : _ t -> int
Sourceval max : 'a t -> 'a t -> 'a t
Sourceval min : 'a t -> 'a t -> 'a t
Sourceval pp_tstp : _ t CCFormat.printer
Sourceval to_string : _ t -> string
Sourceval to_string_tstp : _ t -> string
OCaml

Innovation. Community. Security.