Fun with semirings (2013) [pdf]

10 years ago (cl.cam.ac.uk)

>Our focus will be on closed semirings, which are semirings with an additional operation called closure (denoted * ) which satisfies the axiom: a* = 1 + a * a* = 1 + a* * a

>In semirings where summing an infinite series makes sense, we can define a* as: 1 + a + a^2 + a^3 + ...

>In other semirings where subtraction and reciprocals make sense we can define a* as (1 - a)^-1

Suddenly the "generating functions" from my combinatorics course make so much more sense. It was never about functions at all! It was about reusing our knowledge of algebra on the real field and power series to manipulate a closed semiring of combinations.

In retrospect, I think it would have been less confusing to use the abstract algebra from the outset.