On Applying Repeated Operators to the Empty Set

published on

This is a sort of “theorem” that I made up in my mind has been itching me since my years in higher math education.

Context

Let EE a set and oE2Eo \in E^2 \to E, such that (E,o)(E, o) forms a monoid.

We then define O\mathcal O as the repeated variant of the binary operator oo:

O:ENE(an)na0 o a1 o a2 o  o an\begin{align*} \mathcal O : E^\mathbb N &\to E \\ (a_n)_n &\mapsto a_0\ o\ a_1\ o\ a_2\ o\ \ldots\ o\ a_n \end{align*}

using an infix notation for oo, defined as you would expect: A o B=o(A,B)A\ o\ B = o(A, B).

This is why we need (E,o)(E, o) to be a monoid, instead of a unital magma: we need the operator to be associative, so that the repeated application of the operator is well-defined.

Note how repeated operators have their argument in a sequence space instead of a set. This is because:

  1. we need to iterate over the elements, which requires a well-defined order on the elements (otherwise, we would need oo to be commutative and therefore (E,o)(E, o) to be a group instead of just a monoid)
  2. We also want to be able to represent repeated operations on duplicates, which sets cannot represent.

Theorem

For any repeated operator O\mathcal O:

O(())=unitE\mathcal O(()) = \operatorname{unit} E

where unitE\operatorname{unit} E is the unit element of the monoid (E,o)(E, o).

Application to ∀ and ∃

This looks really abstract right now, but consider the two statements that we (at least in France) are told to be “self-evident”:

But \forall (resp. \exists) are just syntactic sugar for the repeated variants of the logical and \land (resp. logical or \lor) operators. So, in fact, the two statements are equivalent to:

Now, we can prove these statements with the preceding theorem:

  1. \bigwedge is the repeated variant of \land.
  2. ({,},)(\{\top, \bot\}, \land) is a monoid:
    • \land is a binary operation on {,}\{\top, \bot\}.
    • \land is associative: a(bc)=(ab)ca \land (b \land c) = (a \land b) \land c.
    • \land has a unit element \top (as a=aa \land \top = a for any aa) and {,}\top \in \{\top, \bot\}.
  3. unit{,}=\operatorname{unit} \{\top, \bot\} = \top.

Therefore, (())=\bigwedge(()) = \top.

Adapting conventional set notation

You’ll have noticed how the previous statement is kind of akwardly written: we say O(())=\mathcal O(()) = \ldots instead of the much more usual notations, Oaa=\mathcal O_{a \in \emptyset} a = \ldots or O=\mathcal O_{\emptyset} = \ldots.

This is because we decided to model the repeated operators as functions over sequences, instead of sets.

But, as long as the set is ordered, we can trivially adapt the notation:

Let (E,)(E, \geq) an ordered set and oo a binary operator such that (E,o)(E, o) forms a monoid.

We define the set-to-sequence function seq\operatorname{seq} as:

seq:P(E)EN(){a}(a){a}Aseq({eAe<a}){a}seq({eAea})\begin{align*} \operatorname{seq} : \mathcal P(E) &\to E^\mathbb N \\ \emptyset &\mapsto () \\ \{a\} &\mapsto (a) \\ \{a\} \cup A &\mapsto \operatorname{seq}(\{ e \in A | e \lt a \}) \sqcup \{a\} \sqcup \operatorname{seq}(\{ e \in A | e \geq a \}) \end{align*}

You’ll notice that seq\operatorname{seq} is basically a quicksort algorithm.

The interesting thing to note though, is that the function is not bijective, as converting a sequence back to a set would require dropping duplicates. But most usages of repeated operators don’t operate on duplicate elements anyways.

With that said, we can overload the notation of O\mathcal O to accept sets:

PP(E),OP:=O(seq(P))\forall P \in \mathcal P(E), \quad \mathcal O_P := \mathcal O(\operatorname{seq}(P))

Then, we can finally state:

==\begin{align*} \bigwedge_\emptyset &= \top \\ \bigvee_\emptyset &= \bot \end{align*}

Proof

The proof is actually reaaaally trivial, that’s why I put “theorem” in quotes in the introduction. It’s more of a way to have fun with (excessive?) formalization of simple things haha

Anyway, here is the proof.

Let EE a set and oE2Eo \in E^2 \to E such that (E,o)(E, o) is a monoid. Let O\mathcal O be the repeated variant of oo and ee the unit element of (E,o)(E, o).

Proof by contradiction.

Assume that O(())e\mathcal O(()) \neq e.

Then:

O((a1))=O((a1)())=a1 o O(())\begin{align*} \mathcal O((a_1)) &= \mathcal O((a_1) \sqcup ()) \\ &= a_1\ o\ \mathcal O(()) \\ \end{align*}

But we also have, by definition: O((a1))=a1=a1 o e\mathcal O((a_1)) = a_1 = a_1\ o\ e.

We thus have e=O(())e = \mathcal O(()), which is a contradiction.

So, O(())=e\mathcal O(()) = e.

Applications

OperationApplication
++=0\sum_\emptyset = 0
\cdot=1\prod_\emptyset = 1
max\maxmax=\max_\emptyset = -\infty
min\minmin=\min_\emptyset = \infty
\land=\forall \emptyset = \top
\lor=\exists \emptyset = \bot
\cup=\bigcup_\emptyset = \emptyset
\cap=U\bigcap_\emptyset = \mathbb Uwhere U\mathbb U is the universe set