- Closure: The model should be closed under the defined operations. In this case, the operations are the intentions acting on the functional chunks. Since every intention is associated with both the input and output functional chunks, and the model allows for a chain of intentions and functional chunks, it demonstrates closure under the operations.
- Identity Element: An algebraic space typically has an identity element with respect to the operations. In your model, the input functional chunk can be considered as the identity element since it serves as the starting point for the computation.
- Inverse Elements: For every operation (intention), there should exist an inverse operation. In your model, this can be demonstrated by allowing intentions to be reflected back to the same functional chunk, effectively reversing the computation or cancelling out previous intentions.
I shall illustrate the computation model through some NodeJS javascript code implemented to demo a scenario where a guest wants a dinner and is served according to his choice.