Theory for Cosmic Rays