The simple mathematical nature of the cognitive functions