Intentionality and foundations of logic: a new approach to neurocomputation