A magma is a set equipped with a binary operation, that is a function from to .
The term ‘magma’ is from Bourbaki and intends to suggest the fluidity of the concept; special cases include semigroups, quasigroups, groups, and so on. The term ‘groupoid’ is also used, but here that word means something else.