Mathematics of Mind