concept these law in category functional programming
appears as: se laws

This is an excerpt from Manning's book Functional Programming with Kotlin.
In chapter 7 we worked through the design of a functional library for expressing parallel computations. We introduced the idea that an API should form an algebra—that is, a collection of data types, functions over these data types, and importantly, laws or properties that express relationships between these functions. We also hinted at the idea that it might be possible to somehow validate these laws automatically. Validation is an important step, as we need to know that the code we write is in conformance with the laws that we have imposed upon our program. It would be of great benefit if we could somehow automate this validation process.
A purely algebraic structure is a declarative abstraction of laws that enforces these laws when writing polymorphic functions.
The monoid is an algebraic structure that upholds the laws of associativity and identity, and is defined by a type with operations that uphold these laws.