The Exercise
One classical step of Shor’s factoring algorithm starts from a number whose square is modulo , the number to be factored, while itself is neither nor modulo . Theorem 5.2 of the book says that such an yields a factor of other than and : the greatest common divisor of with , or the one with .
Nontrivial Factors
A nontrivial factor of a natural number is a divisor of that lies strictly between and : (1)✦
The Claim
Theorem 1. Let and be natural numbers with and , such that , and . Then at least one of the two numbers (2)✦ is a nontrivial factor of .
With read as , this is the exercise.
What Is Checked
The claim is stated over the natural numbers and , the greatest common divisor, congruence modulo , and the nontrivial factor of (1). What the library proves about these constructions is the claim (2) itself, for all and that meet its hypotheses.