package coq-core

  1. Overview
  2. Docs
The Coq Proof Assistant -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.19.2.tar.gz
md5=5d1187d5e44ed0163f76fb12dabf012e
sha512=91bc81530fa4f6498961583ad51eac5001f139881788b88e360a866ad8e2a6e2c5bce86d1a580ab4cd4782bf49d48318767df82471ce33ba3ac143e5569ad33c

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.

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 -> D.t

Hashconsing of lists.

OCaml

Innovation. Community. Security.