protocol

atms_environment_protocol

Protocol for the opaque environment representation used by the ATMS library.

Availability:
logtalk_load(atms(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2026-09-26
Compilation flags:
static
Dependencies:
(none)
Remarks:
(none)
Inherited public predicates:
(none)

Public predicates

empty/1

Returns the empty environment.

Compilation flags:
static
Template:
empty(Environment)
Mode and number of proofs:
empty(-atms_environment) - one

singleton/2

Returns the environment containing only the given node.

Compilation flags:
static
Template:
singleton(Node,Environment)
Mode and number of proofs:
singleton(+atms_node,-atms_environment) - one

union/3

Returns the union of two environments.

Compilation flags:
static
Template:
union(Environment1,Environment2,Union)
Mode and number of proofs:
union(+atms_environment,+atms_environment,-atms_environment) - one

subset/2

True iff the first environment is a subset of the second environment.

Compilation flags:
static
Template:
subset(Environment1,Environment2)
Mode and number of proofs:
subset(+atms_environment,+atms_environment) - zero_or_one

equal/2

True iff the two environments are equal.

Compilation flags:
static
Template:
equal(Environment1,Environment2)
Mode and number of proofs:
equal(+atms_environment,+atms_environment) - zero_or_one

from_list/2

Converts a list of node identifiers to the canonical internal environment representation.

Compilation flags:
static
Template:
from_list(Nodes,Environment)
Mode and number of proofs:
from_list(+list(atms_node),-atms_environment) - one

to_list/2

Converts an internal environment to an ordered list of node identifiers.

Compilation flags:
static
Template:
to_list(Environment,Nodes)
Mode and number of proofs:
to_list(+atms_environment,-list(atms_node)) - one

Protected predicates

(none)

Private predicates

(none)

Operators

(none)