Foundation of mathematical neuroscience