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
3
u/Inconstant_Moo Jan 03 '25 edited Jan 03 '25
Yes but he's wrong. There are a couple of slightly different ways you might try to define a loop or quasigroup but if you want to do it the universal algebra way (and you should) then you have to define it with reference to division operations and say that there are operations
\and/such that for allxandy,x\(x.y) = yand(x.y)/y = x.