Theory of neutron reactions and weak interaction in heavy nuclei