This was a shower thought. I don't even if these form an abelian category. Let's assume we have pointed sets, where every set has a distinguished element ∗*. pp will be analogous to the zero of an abelian group. We will also allow multi-functions, where a function can have multiple outputs. Now let's consider two sets, A,BA, B along with their 'smash union' A∨BA \vee B where we take the disjoint union of A,BA, B with a smashed ∗*. To be very formal:

A∨B={0}×(A−{∗})∪{1}×(B−{∗})∪{∗} A \vee B = \{0\} \times (A - \{ * \}) \cup \{1\}\times (B - \{ * \}) \cup \{ * \}

We now consider the exact sequence:

(A∩B,∗)→Δ(A∨B,∗)→π(A∪B,∗) (A \cap B, *) \xrightarrow{\Delta} (A \vee B, *) \xrightarrow{\pi} (A \cup B, *)

with the maps as:

ab∈A∩B↦Δ(0,ab),(1,ab)∈A∨B(0,a)∈A∨B↦π{∗if a∈Baotherwise(1,b)∈A∨B↦π{∗if b∈Abotherwise \begin{aligned} &ab \in A \cap B \xmapsto{\Delta} (0, ab), (1, ab) \in A \vee B \\ &(0, a) \in A \vee B \xmapsto{\pi} \begin{cases} * & \text{if } a \in B \\ a &\text{otherwise} \\ \end{cases} \\ &(1, b) \in A \vee B \xmapsto{\pi} \begin{cases} * & \text{if } b \in A \\ b &\text{otherwise} \\ \end{cases} \\ \end{aligned}

This exact sequence also naturally motivates one to consider A∪B−A∩B=AΔBA \cup B - A \cap B = A \Delta B, the symmetric difference. It also gives the nice counting formula ∣A∨B∣=∣A∩B∣+∣A∪B∣|A \vee B| = |A \cap B| + |A \cup B|, also known as inclusion-exclusion.

I wonder if it's possible to recover incidence algebraic derivations from this formuation?

§ Variation on the theme: direct product

This version seems wrong to me, but I can't tell what's wrong. Writing it down:

(A∩B,∗)→Δ(A×B,(∗,∗))→π(A∪B,∗) \begin{aligned} (A \cap B, *) \xrightarrow{\Delta} (A \times B, (*, *)) \xrightarrow{\pi} (A \cup B, *) \end{aligned}

with the maps as:

ab∈A∩B↦Δ(ab,ab)∈A×B(a,b)∈A×B↦π{∗if a=ba,botherwise \begin{aligned} &ab \in A \cap B \xmapsto{\Delta} (ab, ab) \in A \times B \\ &(a, b) \in A \times B \xmapsto{\pi} \begin{cases} * & \text{if } a = b \\ a, b &\text{otherwise} \\ \end{cases} \\ \end{aligned}

One can see that:

Note that to get the last equivalence, we do not consider elements like π(a,∗)=a,∗\pi(a, *) = a, * to be a pre-image of ∗*, because they don't exact ly map into ∗* [pun intended ].