package coq

  1. Overview
  2. Docs
Formal proof management system

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.14.1.tar.gz
sha256=3cbfc1e1a72b16d4744f5b64ede59586071e31d9c11c811a0372060727bfd9c3

doc/coq-core.clib/Hashcons/index.html

Module HashconsSource

Generic hash-consing.

Hashconsing functorial interface
Sourcemodule type HashconsedType = sig ... end
Sourcemodule type S = sig ... end
Sourcemodule Make (X : HashconsedType) : S with type t = X.t and type u = X.u

Create a new hashconsing, given canonicalization functions.

Wrappers

These are intended to be used together with instances of the Make functor.

Sourceval simple_hcons : ('u -> 'tab) -> ('tab -> 't -> 't) -> 'u -> 't -> 't

simple_hcons f sub obj creates a new table each time it is applied to any sub-hash function sub.

Sourceval recursive_hcons : ((('t -> 't) * 'u) -> 'tab) -> ('tab -> 't -> 't) -> 'u -> 't -> 't

As simple_hcons but intended to be used with well-founded data structures.

Hashconsing of usual structures
Sourcemodule type HashedType = sig ... end
Sourcemodule Hstring : S with type t = string and type u = unit

Hashconsing of strings.

Sourcemodule Hlist (D : HashedType) : S with type t = D.t list and type u = (D.t list -> D.t list) * (D.t -> D.t)

Hashconsing of lists.

OCaml

Innovation. Community. Security.