Polarities (Part 4)

Azimuth 2024-11-12

In Part 2, I explained some stuff you can do with graphs whose edges are labeled by elements of a rig. Remember, a rig is like a ring, but it might not have negatives. A great example is the boolean rig, whose elements are truth values:

\mathbb{B} = \{T,F\}

The addition in this rig is ‘or’ and the multiplication is ‘and’.

So what’s the point? If we have a graph with edges labeled by booleans, we can use them to describe whether one vertex affects another. For example:

Here a directly affects b because the first edge is labeled \text{T}, but b does not directly affect c because the second edge is labeled \text{F}. To figure out whether a affects c, we multiply the booleans T and F using ‘and’. We get \text{F}, so a does not affect c.

But what about this example?

Now a has the ability to affect b along two edges. To figure out the total effect we should add the booleans \text{T} and \text{F} using ‘or’. We get \text{F}, so a does affect b.

I should formalize what I’m doing here a bit more carefully, so it applies to arbitrary finite graphs with edges labeled by booleans. But right now I want to talk about using other rigs to label edges. We can use any rig, which we call the rig of polarities. Then a graph with edges labeled by elements of this rig is called a causal loop diagram.

We can get rigs from hyperrings, and I want to explain how. In Part 3 I explained ‘hyperrings’, which are like rings, but where addition can be multivalued. A really good one is the hyperring of signs:

\mathbb{S} = \{+,0,-\}

If we use these as polarities, this means that a directly affects b in a positive way:

In other words, increasing the quantity a tends to increase b. Similarly, an edge labeled with - means one quantity directly affects another in a negative way, while an edge labeled with 0 means no direct effect.

In the hyperring \mathbb{S} multiplication is defined in the obvious way, and addition is also obvious except when we add + and -. What’s the sum of a positive number and a negative number? It could be positive, negative or zero! So we make addition multivalued, write it as \boxplus, and say

+ \boxplus - = \{+,0,-\}

All this is nice, which suggests we should study hyperrings of polarities. But then I noticed that we can get a rig from this hyperring… and this rig may do all the jobs we need done.

If we take all the elements of the hyperring \mathbb{S}, and start adding, subtracting and multiplying to our heart’s content, what do we get? We get a bunch of subsets of \mathbb{S}. The elements we start with are

+, 0, -

but in this game we identify these with the corresponding singleton sets

\{+\}, \{0\}, \{-\}

What other subsets of \mathbb{S} do we get by adding, subtracting and multiplying these singletons? We get other singletons except in one case. Namely, the sum of \{+\} and \{-\} equals this:

\{+,0,-\}

These four subsets are all that we get:

\{+\}, \{0\}, \{-\}, \{+,0,-\}

Now here’s the cool part. In a hyperring we can extend addition, multiplication, and subtraction to operations on subsets. I explained how this works for addition last time, but it works the same way for the other operations. And in our example here, the collection of the above 4 subsets forms a rig under multiplication and addition! The other subsets just never come up.

So, we get a little rig with 4 elements I’ll call

\overline{\mathbb{S}} = \{+,0,-,i\}

Here i or indeterminate is short for the set \{+,0,-\}. In this language we say the sum of + and - is i. This nicely captures the idea that when you add up two quantities, and all you know is that one is positive and the other is negative, the sign of the result is indeterminate.

Here’s the addition table for this rig \overline{\mathbb{S}}:

\boxplus +0–i+++ii0+0–i–i––iiiiii

Here is the multiplication table:

\cdot +0–i++0–i00000––0+iii0ii

It’s possible this rig is a perfectly good substitute for our original hyperring when we’re using its elements to label edges in a causal loop diagram. Only time will tell: we need to develop the theory of causal loop diagrams while keeping this question in mind.

But there are also a math question here. How generally can we get a rig like this from a hyperring? Let me try to tackle that.

Given any hyperring R, we can extend its addition and multiplication to the collection P_\ast(R) of nonempty subsets of R as follows. To multiply two nonempty subsets A,B, we define

\displaystyle{ A \cdot B = \{a \cdot b \vert \; a \in A, b \in B \} }

To add them, we define

\displaystyle{ A \boxplus B = \bigcup_{a \in A, b \in B} a \boxplus b }

Remember, the sum a \boxplus b of two elements of a hyperring is already a subset of that hyperring.

Now, you might hope these operations make P_\ast(R) into a rig. But that’s not always true! The reason—or at least one reason—is that not every hyperring obeys the double distributive law

(a \boxplus b) \cdot (c \boxplus d) = (a \cdot c) \boxplus (a \cdot d) \boxplus (b \cdot c) \boxplus (b \cdot d)

whereas this law holds if P_\ast(R) is a rig.

I don’t know any other problems, so I’ll make this guess. It should be easy to prove if true, but I’ll call it a ‘conjecture’ to motivate people—including myself—to prove or disprove it.

Conjecture. Suppose R is a doubly distributive hyperring. Then P_\ast(R) becomes a rig if we define addition and multiplication as above, with \{0\} as its additive unit and \{1\} as its multiplicative unit.

If this is true, we can then define a subrig of P_\ast(R) the way I did in the example where R is the hyperring of signs. Namely, let \overline{R} be the smallest subrig of P_\ast(R) containing all the singletons \{a\} where a \in R. This subrig may be ‘good enough for causal loop diagrams’.

This would be a systematic way to get the rig

\overline{\mathbb{S}} = \{+,0,-,i\}

from the hyperring of signs

\mathbb{S} = \{+,0,-\}

That would be great! But even if the conjecture needs to be tweaked, at least I know that there exists this rig \overline{\mathbb{S}} in this special case. It’s already used for polarities in causal loop diagrams. I’m just trying to understand it better—for example, I’ve never heard anyone say it’s a rig, or take advantage of the fact that it’s a rig. We need some mathematicians to get into this game, make the math nice and shiny, and make it more powerful!