Cosmic-Ray Theory