Primitive terms in set theory
Last updated
Last updated
When a relation is used in a term, it stands for the set of pairs it contains at the moment it is evaluated. That set (also referred to as the contents of the relation) can change over time as users add or delete pairs from it.
When a relation is used in a term, we can simply use its name if that is unambiguous. For instance the name owner
refers to RELATION owner[Person*Building]
if that is the only relation the ampersand-compiler can link it to. In some cases, however the name alone is ambiguous. For example if there are two relations with the same name and different signatures. In such cases Ampersand will try to infer the type from the context. That however does not always succeed. In such cases, Ampersand generates an error message that asks you to remove the ambiguity by adding the correct type.
If a pair is an element of a relation , we write . Alternatively we may write .
For every concept , the term represents the identity relation. It is defined by:
The type of is . In Ampersand code you write I[C]
.
For every pair of concepts and the term represents the complete relation. It is defined by:
Would you like a different explanation of the primitive terms? This page explains the primitive terms in logic. Click here for the explanation of primitive terms in natural language.
The type of is . In Ampersand code you write V[A*B]
.