← Latest papers
🔢 mathematics

Counting Votes with Multisets

This paper demonstrates how the categorical properties of multisets—specifically their structure as a free commutative monoid, functor, and monad—can be effectively applied to derive and express outcomes in various voting systems, including instant-runoff, De Borda, and single transferrable vote.

Original authors: Bart Jacobs, Michael Johnson, Richard Buckland

Published 2026-06-05
📖 5 min read🧠 Deep dive

Original authors: Bart Jacobs, Michael Johnson, Richard Buckland

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are running a vote, but instead of counting paper ballots one by one, you are managing a giant bag of colored marbles. This is the core idea of the paper: Multisets.

Here is a simple breakdown of what the authors, Bart Jacobs, Michael Johnson, and Richard Buckland, are proposing, using everyday analogies.

1. The Magic Bag (What is a Multiset?)

Usually, in math, a "set" is like a list of unique items. If you have a set of fruits, you can have an apple and a banana, but you can't have "two apples" in the set definition; it's just "apples."

A Multiset is like a bag of marbles.

  • If you put 4 red marbles, 3 blue marbles, and 2 green marbles in a bag, the order doesn't matter.
  • What matters is the count.
  • The authors write this as: 4|R⟩ + 3|B⟩ + 2|G⟩.
  • In an election, this bag represents the votes. It doesn't matter who voted or when they voted; it only matters that there are 4 votes for Red, 3 for Blue, and 2 for Green.

Why is this good?
If you keep votes in a list (like a spreadsheet), the order of the list might accidentally reveal who voted for whom. But if you just dump everything into a "multiset bag," the order disappears. You get a clean, anonymous count that is impossible to trace back to individuals.

2. The Three Voting Games

The paper shows how this "bag of marbles" approach makes three complex voting systems much easier to understand and calculate. They use some fancy math terms (like "functors" and "monads"), but think of them as rules for moving marbles around.

Game A: Instant-Runoff Voting (The "Elimination" Game)

  • How it works: Voters rank candidates (1st, 2nd, 3rd). If no one gets 50% of the votes, the person with the fewest votes is kicked out. Their votes are then given to the voters' second choice.
  • The Multiset Trick: Imagine your bag of ballots is a stack of lists.
    1. You look at the top of every list (the 1st choice) and count the marbles.
    2. You find the loser (Candidate C).
    3. You use a "magic eraser" (called a functor in the paper) to delete Candidate C from every single list in the bag.
    4. Now, the 2nd choices become the new 1st choices. You count the bag again.
    5. You repeat this until someone has a majority.
  • The Benefit: Instead of manually crossing out names on thousands of papers, you just apply the "delete" rule to the whole bag at once.

Game B: De Borda Count (The "Weighted Points" Game)

  • How it works: Voters rank candidates. The 1st choice gets 4 points, 2nd gets 3, 3rd gets 2, etc. Everyone's points are added up.
  • The Multiset Trick:
    1. Instead of just counting votes, you turn every single ballot into a mini-bag of weighted marbles. A ballot saying "A, B, C, D" becomes 4|A⟩ + 3|B⟩ + 2|C⟩ + 1|D⟩.
    2. You dump all these mini-bags into one giant super-bag.
    3. You use a "flattening" tool (called a monad) to smash all the layers together.
    4. The result is one big count of total points for each candidate.
  • The Benefit: It turns a complex math problem into a simple "add everything up" operation.

Game C: Single Transferable Vote (The "Surplus Sharing" Game)

  • How it works: This is used when electing multiple people (like a city council). There is a "quota" (a minimum number of votes needed to win). If a candidate gets way more votes than needed, the extra votes shouldn't be wasted; they should be transferred to the voters' next choice.
  • The Multiset Trick:
    1. Imagine a candidate wins with 93 votes, but the quota is only 63. They have 30 "surplus" votes.
    2. Instead of picking 30 random papers to transfer (which is unfair), the authors suggest a mathematical trick: Devalue the votes.
    3. You take all 93 votes for that winner and shrink them down by a specific fraction (like shrinking a photo).
    4. You then "delete" the winner from the lists and transfer these "shrunken" votes to the next candidates.
    5. This allows the math to handle fractions of votes perfectly, ensuring no votes are wasted or counted twice.

3. Why Does This Matter?

The authors aren't trying to invent a new type of math; they are showing that old math (Category Theory) is the perfect tool for modern voting.

  • Transparency: Because multisets ignore the order of votes, the counting process is mathematically guaranteed to be anonymous.
  • Simplicity: Complex rules (like deleting losers or splitting surplus votes) become simple operations on a bag of marbles.
  • Correctness: If you write a computer program to count votes using these "bag" rules, it is much harder to make a mistake than if you try to sort through piles of paper.

In a nutshell: The paper argues that if we stop thinking of votes as a messy pile of paper and start thinking of them as a bag of colored marbles, we can use simple, powerful math rules to count them fairly, quickly, and without error.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →