r/functionalprogramming • u/tbsdy • Jan 01 '25
Question Functional programming and algebraic structures
I have been looking at algebraic structures (in particular groups) in functional programming. I have been fascinated by how monoids in particular have a wide applicability to the functional programming paradigm. However, I am curious why we don’t seem to have found a way of applying quasigroups and loops to functional programming.
Has anyone ever seen these algebraic structures used in functional programming, outside the use of cryptography?
29
Upvotes
View all comments
Show parent comment
1
u/tbsdy Jan 02 '25
Hmmm… as pointed out here:
https://math.stackexchange.com/questions/4008196/defining-loops-why-is-divisibility-and-identitiy-implying-invertibility
“It should be pointed out that the accepted answer’s definition of “has division” is not how the term is used in quasigroup theory or universal algebra. A magma (M,⋅) (or binar or groupoid in the old noncategorical sense) is said to be a division magma if for every a,b∈M, there exist x,y∈M such that a⋅x=b and y⋅a=b. Uniqueness is not assumed. A quasigroup is a cancellative, division magma.”