concept property in category kotlin

This is an excerpt from Manning's book Functional Programming with Kotlin.
Extension methods and properties
Kotlin provides us with a convenient way of adding behaviour (or state) to any type instance. It does so by way of extension methods and properties.
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.
In this representation,
Propis nothing more than a non-strictBoolean. Any of the usualBooleanfunctions (AND, OR, NOT, XOR, and so on) can easily be defined forProp. But aBooleanalone is probably insufficient. If a property fails, we might want to know how many tests succeeded first. We might also be interested in what arguments produced the failure. And if a property succeeds, it would be useful to know how many tests it ran. Next, let’s encode this information by returning anEitherto indicate success or failure:typealias SuccessCount = Int interface Prop { fun check(): Either<String, SuccessCount> fun and(p: Prop): Prop }For now, we’ve assigned the failure case to be
String, but what type should we return on the left side? We don’t know anything about the type of the test cases being generated. Should we add a type parameter toPropand make itProp<A>socheckcould returnEither<A, SuccessCount>. Before going too far down this route, let’s ask ourselves whether we really care about the type of the value that caused the property to fail. We don’t really. We would only care about the type if we were going to do further computation with the failure.

This is an excerpt from Manning's book The Joy of Kotlin.
Devise a set of properties that the result of your program must fulfill
fun test(value: Int, max:Int, multiple: Int): Boolean { val result = isMaxMultiple(multiple)(max, value) ... check properties }