Nepedia
Back to Discover
Fluent Reader
🔢

Monoid

math Maturity 5-7 Next article →

Math uses special rules to join things together. A monoid is a set of things with a rule for combining them. This rule is called a binary operation. To be a monoid, the rule must follow two important laws. First, the rule must be associative. This means that when you group things, the order of grouping does not change the result. If you have three things to join, you can join the first two first, or the last two first. The final answer will be the same.

Magma to group2
Magma to group2

Second, a monoid must have an identity element. This is a special item that changes nothing when it is used. For example, in addition, the number zero is the identity. If you add zero to any number, that number stays exactly the same. In multiplication, the number one is the identity. The identity element is unique, meaning there is only one. You can think of the identity as a constant in the set. This set of rules makes the monoid a very stable structure.

Many different things can act as monoids. Natural numbers with addition form a monoid where zero is the identity. You can also use multiplication with natural numbers, where one is the identity. Strings of letters also form a monoid. You can join words together to make longer strings. In this case, an empty string is the identity element. Adding an empty string to a word does not change it.

Exponentiation as monoid homomorphism svg
Exponentiation as monoid homomorphism svg

Some monoids have extra special properties. A commutative monoid is one where the order of items does not matter. For example, three plus two is the same as two plus three. There are also submonoids. A submonoid is a smaller group taken from a larger monoid. It must follow the same rule and include the same identity element. If every item in a monoid has an inverse, it becomes a group. An inverse is an item that brings you back to the identity.

Monoids are very useful in computer science. They help describe how machines work. Scientists use transition monoids to study finite-state machines. They also use trace monoids for concurrent computing. This helps computers do many things at once. In math, monoids are also used in category theory. They can represent the ways one object connects to itself. This makes them a fundamental tool for understanding patterns and logic.

391 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:Magma to group2.svg
Magma to group2.svg
File:Exponentiation as monoid homomorphism svg.svg
Exponentiation as monoid homomorphism svg.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.