HOL.Unification.Bindings (hol v1.0.1)

View Source

This module defines functions to determine the imitation and projection bindings neccessary for unification.

Summary

Types

The two binding types available

Functions

Gives the arity of a given type. The arity is the amount of argument types it has.

Returns the bindings determined by the two declarations given.

Types

binding_type()

@type binding_type() :: :imitation | :projection

The two binding types available

Functions

arity(arg)

@spec arity(HOL.Data.type()) :: non_neg_integer()

Gives the arity of a given type. The arity is the amount of argument types it has.

generic_binding(left_head, right_head, binding_types)

Returns the bindings determined by the two declarations given.

It only creates the bindings that are requested in the binding_types list.