We consider how we can do algebra with colors. In other words, if we take the set of all colors, what algebraic structures can it be endowed with? In this post, we look at the algebra of color mixing: what is the structure of the algebra that is induced by the operation of color mixing? (What properties does color mixing satisfy?)
First, let’s assign a symbol (say plus) to the operation of mixing two colors, then what standard algebraic properties does this satisfy?
We can say that it’s commutative, , since the mixing of two colors doesn’t depend on the order in which we state the colors. (We implicitly assume equal “proportions” of colors, e.g. equal amounts of paint of each color.) This justifies the use of the plus symbol, keeping in mind standard notation for commutative operations.
We can also say that it’s idempotent, , since mixing a color with itself produces the same color. In fact, we can say a “strong” version of idempotency: if
then
would be different from
, thus
. Hence, we can say that
if and only if
.
This disproves existence of identity, since then there would need to exist a color such that
for all
, but in that case we’d have
and the existence of identity requires that
isn’t dependent on
.
What about the cancellative property, ? We could argue as follows: if
, then
would need to have some variation from
(even if slight), so
, which is equivalent to the cancellative property.
Going further than the cancellative property, even without identity is there a way to simulate inverses? For example, can we say something like: for any , there exists a unique
such that
? (Note because of commutativity that “left subtraction” versus “right subtraction” would have no distinction. Also, because of the cancellative property, existence of
automatically guarantees unique existence.) Intuitively, this seems like it should be true. Actually, hold that thought: if
is black or white (think complete black or white), then
can’t exist (unless
is black or white, respectively.) This is because mixing any color with any non-black and non-white color can’t produce complete black or white; there’d still be some “opposite hue.”
OK, let’s then phrase the question excluding these two colors. Let’s designate two constants: let stand for black and
stand for white. We can ask: given
with
and
, then does there exist
such that
?
I think that to answer this it’d probably be best to start modeling colors via a standard model like RGB. I’m working on another exploration concerning color models that I will hopefully also publish soon. But independent of that post, let’s say that colors were defined via say the RGB model, where each of R, G, and B has a real number value from 0 to 1, inclusive. In other words, the set of colors is basically . (If we used the CMY model instead, we’d reach the same destination of the set of colors being
. In general, let’s say for now that this is the set of colors.) Then, what would color mixing be?
Probably just average / arithmetic mean? Need to check if that satisfies the axioms above, as a sanity check.
Given that we have two constants now, we might be reminded of some of the standard properties of abstract Boolean algebras. Does color mixing satisfy some of these?
In fact, it’s looking like color mixing seems to resemble an abstract Boolean algebra more than say a group, since we have idempotency. But in an abstract Boolean algebra we have two operations, which we don’t have here. And, actually, the constants are identities for the operations in an abstract Boolean algebra, which they are not here (since an identity can’t exist.) Nevertheless, what other one-operation abstract Boolean algebra axioms does color mixing satisfy?
Judging from Wikipedia, the only abstract Boolean algebra one-binary-operation axiom that isn’t also a group/ring/field axiom is idempotency, which we already know. We already know commutativity, but it remains to consider associativity. Is it true that ?
Let’s say for example that . Then,
, but I’m not sure now if we can simplify this further. Actually, hold that thought: this seems to disprove associativity. For
, and if associativity were true we’d have this be equal to
. But
can’t be equal to
, unless
, or unless
. Thus, associativity isn’t true. In fact, we could probably produce a “strong anti-associativity property” — we could say something like: if
, then
. Can we prove this?
Let’s try a counterexample, say , so
. Then, for this to be equal to
, we’d need
. Then,
, and
. So that’s not a counterexample.
All these proofs seem anyway to follow logically from strong idempotency and the cancellative property — in fact, our demonstration of the failure of associativity is not informal but rather a theorem that follows from strong idempotency. In fact, it seems hard to informally derive a property in the relative realm of associativity given the presence of three colors (not sure how to intuit about that.) Thus, anyway this discussion wouldn’t be about a fundamental axiomatic property, but just a theorem from existing properties. Hence, we don’t need to consider this further with regards to determining the fundamental (axiomatic) properties. Let’s focus on axiomatic properties first, and then maybe later we can prove some kind of “strong anti-associativity” as a theorem.
Let’s summarize the properties we’ve collected for color mixing (presumably axiomatic, although there isn’t a proof of independence so far):
- Commutativity:
.
- “Strong” idempotency:
if and only if
. (This implies failure of associativity and identity existence.)
- Cancellative property:
.
Actually, these properties seem to be quite constrictive — can we show that there is only one model of these axioms (up to isomorphism)? That would be incredible. In other words, if we have two algebras in which these axioms are satisfied, must
necessarily be isomorphic (with respect to the
operation?) What about if it’s given that
are in bijection?
Let’s try a counterexample of . What would
look like?
What is ? If
, then
; the same conclusion is true for
. Thus,
can’t be a model for these axioms.
What about ? Can we show that any model of these axioms must be infinite? That would be incredible and awesome.
So let’s consider what must be for
and
. Our hope is to use the Pigeonhole Principle to show that there must be some case of
, in which case we’d have a contradiction. So how many pairs
do we have with
? We can count this with complementary counting: it is
. So we have
“balls,” and
“buckets” (where the bucket is the corresponding value of
.) The Pigeonhole Principle tells us that some bucket must have a certain number of balls in it; the higher lower bound we can prove, the greater we have a chance of our desired result. The Pigeonhole Principle says that if we have
balls and
buckets, some bucket must have
balls in it. In this case, we want to choose
as large as possible such that
. If we set
, then
is barely greater than
, invalidating the application of Pigeonhole, but if we set
then we have the desired inequality. (If we write it out, that inequality is
, which is immediately seen to be true because the LHS is
) Thus, we have: there must be
“balls” in a bucket. In other words, there must exist some
such that there are at least
pairs of
with
and
. Is this possible? How many possible pairs of
are there with
and
? It’s
, if we just count the pairs of different coordinates in the subset excluding
. Is this less than
? Alas, it is not for general
. In fact, for which
is it less (i.e., for which
does this argument work?) We’d need
. So, unfortunately, this logic particularly doesn’t scale to anything beyond
.
Can we find a model of these axioms with universe ?
So we can keep going, but the essential thing we notice here is that for with
, we have that
must be the only other element. So there is one unique model for the strong idempotency property.
But so far that’s the only property we’ve been using. What about the other properties?
Well, commutativity is immediate from satisfying strong idempotency, since and
must both be the unique element other than
and
, and thus be the same. (In fact, can we prove commutativity from strong idempotency in general? I’m not sure actually, since the “unique other element” part isn’t true beyond
.)
What about the cancellative property? Let’s say in this model. Assume for the sake of contradiction that
. If
, then
, so
, contradicting
. If
, then since
and
we’d have
, but then
, contradiction. Thus, this model satisfies the cancellative property too! Hence, it is a model for all the axioms we listed before. In particular, this disproves our infinite-model conjecture, as well as our unique-model conjecture, since both the infinite spectrum of visible colors and this model satisfy the axioms.
It remains to continue this.
—
First written March 18, 2021, and revised in February 2023.
