"A set is a grouping into a whole of distinct and definite objects of our intuition or of our thought" (Cantor).
Union
Semantics
To join two closed expressions of the same type (series or parallel, i.e., sequence or set) is to create a new closed expression consisting of the components of both expressions and also of the same type.
Syntax
(x ∪ y) or x∪y // union of x and y
Definition
Union of two sequences:
〈( (x∪y = (x↓ y↓)) ← (x/sec ∧ y/sec) )〉
where 〈( x/sec = ( x↓ )=x )〉
Union of sets:
〈( (x∪y = {x↓ y↓}) ← (x/conj ∧ y/conj) )〉
being 〈( x/conj = {x↓}=x )〉
Justification
Union corresponds to the mind's ability to group several entities into another higher-level entity.
Examples
((a b c) ∪ (d e)) // ev. (a b c d e)
(abc ∪ de) // ev. abcde
({a b c} ∪ {d e}) // ev. {a b c d e}
{a b c}∪{a b}) // ev. {a b c}
((a+b c+d) ∪ (s t)) // ev. (a+b c+d s t)
((a+b+) ∪ (c+d)) // ev. (a+b+c+d)
(a ∪ b ∪ c) // ev. (a b c) eq. abc
({a} ∪ {b} ∪ {c}) // ev. {a b c}
(a/b) ∪ (c/d) // ev. (a/b c/d)
Remarks
The condition ((( x↓ )=x) is satisfied by the sequences.
The condition ({x↓}=x) is satisfied by sets.
When the operands are expressions of different types, the result is the same (since the operation cannot be performed). Example:
({a b c} ∪ (u v)) // self-evaluates
The union only affects the first level of the hierarchy of expressions:
{{a b} {c d}} ∪ {e f} // ev. {{a b} {c d} e f}
The union operation is generic, going beyond the classical "union of sets", since the union operates on closed expressions in general and not only on sets.
The arguments of the union can be atoms. In this case, note that if x is an atom, (x↓ = x). For example,
(a ∪ b) // ev. (a b) ev. ab for (a↓ = a) and (b↓ = b)
(abc ∪ d) // ev. abcd
Properties
〈( (x∪y ≡ y∪x) ← ({x↓}=x ∧ {y↓}=y) )〉
There is commutativity only in the case of sets.
Associativity.
〈(((x ∪ y) ∪ z) ≡ (x ∪ (y ∪ z)))
Example:
((a b) ∪ ((c d) ∪ (e f))) // ev. (a b) ∪ (c d e f)) // ev. (a b c d e f))
((a b) ∪ (c d)) ∪ (e f)) // ev. (a b c d) ∪ (e f)) // ev. (a b c d e f)
〈( (x∪x = xx) ← (x↓ = x) )〉 // atom bonding
This expression is equivalent to 〈( (x∪x = xx) ← (x# = 1) )〉
〈( (x ∪ θ) = x )〉
〈( (θ ∪ x) = x )〉
〈( ((x ∪ x) = x) ← ({x↓}=x) )〉
Contrary Union: Separation
Semantics
The opposite operation to union is called "separation". Since the union operation is not commutative in the case of sequences, there is separation on the left and on the right.
In the case of sets, left and right separation coincide.
Syntax
(x ∪' y) // right separation
(x '∪ y) // left separation