HomeHome Intuitionistic Logic Explorer
Theorem List (p. 164 of 174)
< Previous  Next >
Browser slow? Try the
Unicode version.

Mirrors  >  Metamath Home Page  >  ILE Home Page  >  Theorem List Contents  >  Recent Proofs       This page: Page List

Theorem List for Intuitionistic Logic Explorer - 16301-16400   *Has distinct variable group(s)
TypeLabelDescription
Statement
 
Theorem1sgm2ppw 16301 The sum of the divisors of  2 ^ ( N  -  1 ). (Contributed by Mario Carneiro, 17-May-2016.)
 |-  ( N  e.  NN  ->  ( 1  sigma  ( 2 ^ ( N  -  1 ) ) )  =  ( ( 2 ^ N )  -  1 ) )
 
Theoremsgmmul 16302 The divisor function for fixed parameter  A is a multiplicative function. (Contributed by Mario Carneiro, 2-Jul-2015.)
 |-  ( ( A  e.  CC  /\  ( M  e.  NN  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )
 )  ->  ( A  sigma  ( M  x.  N ) )  =  (
 ( A  sigma  M )  x.  ( A  sigma  N ) ) )
 
Theoremppiublem1 16303 Lemma for ppiqub 16305. (Contributed by Mario Carneiro, 12-Mar-2014.)
 |-  ( N  <_  6  /\  ( ( P  e.  Prime  /\  4  <_  P )  ->  ( ( P 
 mod  6 )  e.  ( N ... 5
 )  ->  ( P  mod  6 )  e.  {
 1 ,  5 } ) ) )   &    |-  M  e.  NN0   &    |-  N  =  ( M  +  1 )   &    |-  (
 2  ||  M  \/  3  ||  M  \/  M  e.  { 1 ,  5 } )   =>    |-  ( M  <_  6  /\  ( ( P  e.  Prime  /\  4  <_  P )  ->  ( ( P 
 mod  6 )  e.  ( M ... 5
 )  ->  ( P  mod  6 )  e.  {
 1 ,  5 } ) ) )
 
Theoremppiublem2 16304 A prime greater than  3 does not divide  2 or  3, so its residue  mod  6 is  1 or  5. (Contributed by Mario Carneiro, 12-Mar-2014.)
 |-  ( ( P  e.  Prime  /\  4  <_  P )  ->  ( P  mod  6 )  e.  { 1 ,  5 } )
 
Theoremppiqub 16305 An upper bound on the prime-counting function π, which counts the number of primes less than 
N. (Contributed by Mario Carneiro, 13-Mar-2014.)
 |-  ( ( N  e.  QQ  /\  0  <_  N )  ->  (π `  N )  <_  ( ( N  / 
 3 )  +  2 ) )
 
Theoremchtqleppi 16306 Upper bound on the  theta function. (Contributed by Mario Carneiro, 22-Sep-2014.)
 |-  ( ( A  e.  QQ  /\  0  <  A )  ->  ( theta `  A )  <_  ( (π `  A )  x.  ( log `  A ) ) )
 
Theoremchtublem 16307 Lemma for chtqub 16308. (Contributed by Mario Carneiro, 13-Mar-2014.)
 |-  ( N  e.  NN  ->  ( theta `  ( (
 2  x.  N )  -  1 ) ) 
 <_  ( ( theta `  N )  +  ( ( log `  4 )  x.  ( N  -  1
 ) ) ) )
 
Theoremchtqub 16308 An upper bound on the Chebyshev function. (Contributed by Mario Carneiro, 13-Mar-2014.) (Revised 22-Sep-2014.)
 |-  ( ( N  e.  QQ  /\  2  <  N )  ->  ( theta `  N )  <  ( ( log `  2 )  x.  (
 ( 2  x.  N )  -  3 ) ) )
 
11.4.3  Perfect Number Theorem
 
Theoremmersenne 16309 A Mersenne prime is a prime number of the form  2 ^ P  -  1. This theorem shows that the  P in this expression is necessarily also prime. (Contributed by Mario Carneiro, 17-May-2016.)
 |-  ( ( P  e.  ZZ  /\  ( ( 2 ^ P )  -  1 )  e.  Prime ) 
 ->  P  e.  Prime )
 
Theoremperfect1 16310 Euclid's contribution to the Euclid-Euler theorem. A number of the form  2 ^ (
p  -  1 )  x.  ( 2 ^ p  -  1 ) is a perfect number. (Contributed by Mario Carneiro, 17-May-2016.)
 |-  ( ( P  e.  ZZ  /\  ( ( 2 ^ P )  -  1 )  e.  Prime ) 
 ->  ( 1  sigma  ( ( 2 ^ ( P  -  1 ) )  x.  ( ( 2 ^ P )  -  1 ) ) )  =  ( ( 2 ^ P )  x.  ( ( 2 ^ P )  -  1
 ) ) )
 
Theoremperfectlem1 16311 Lemma for perfect 16313. (Contributed by Mario Carneiro, 7-Jun-2016.)
 |-  ( ph  ->  A  e.  NN )   &    |-  ( ph  ->  B  e.  NN )   &    |-  ( ph  ->  -.  2  ||  B )   &    |-  ( ph  ->  ( 1  sigma  ( (
 2 ^ A )  x.  B ) )  =  ( 2  x.  ( ( 2 ^ A )  x.  B ) ) )   =>    |-  ( ph  ->  ( ( 2 ^ ( A  +  1 )
 )  e.  NN  /\  ( ( 2 ^
 ( A  +  1 ) )  -  1
 )  e.  NN  /\  ( B  /  (
 ( 2 ^ ( A  +  1 )
 )  -  1 ) )  e.  NN )
 )
 
Theoremperfectlem2 16312 Lemma for perfect 16313. (Contributed by Mario Carneiro, 17-May-2016.) (Revised by Wolf Lammen, 17-Sep-2020.)
 |-  ( ph  ->  A  e.  NN )   &    |-  ( ph  ->  B  e.  NN )   &    |-  ( ph  ->  -.  2  ||  B )   &    |-  ( ph  ->  ( 1  sigma  ( (
 2 ^ A )  x.  B ) )  =  ( 2  x.  ( ( 2 ^ A )  x.  B ) ) )   =>    |-  ( ph  ->  ( B  e.  Prime  /\  B  =  ( ( 2 ^
 ( A  +  1 ) )  -  1
 ) ) )
 
Theoremperfect 16313* The Euclid-Euler theorem, or Perfect Number theorem. A positive even integer  N is a perfect number (that is, its divisor sum is  2 N) if and only if it is of the form  2 ^ ( p  - 
1 )  x.  (
2 ^ p  - 
1 ), where  2 ^ p  -  1 is prime (a Mersenne prime), and therefore  p is also prime, see mersenne 16309. This is Metamath 100 proof #70. (Contributed by Mario Carneiro, 17-May-2016.)
 |-  ( ( N  e.  NN  /\  2  ||  N )  ->  ( ( 1 
 sigma  N )  =  ( 2  x.  N )  <->  E. p  e.  ZZ  ( ( ( 2 ^ p )  -  1 )  e.  Prime  /\  N  =  ( ( 2 ^ ( p  -  1 ) )  x.  ( ( 2 ^ p )  -  1 ) ) ) ) )
 
11.4.4  Bertrand's postulate
 
Theorembcctr 16314 Value of the central binomial coefficient. (Contributed by Mario Carneiro, 13-Mar-2014.)
 |-  ( N  e.  NN0  ->  ( ( 2  x.  N )  _C  N )  =  ( ( ! `  ( 2  x.  N ) )  /  ( ( ! `  N )  x.  ( ! `  N ) ) ) )
 
Theorempcbcctr 16315* Prime count of a central binomial coefficient. (Contributed by Mario Carneiro, 12-Mar-2014.)
 |-  ( ( N  e.  NN  /\  P  e.  Prime ) 
 ->  ( P  pCnt  (
 ( 2  x.  N )  _C  N ) )  =  sum_ k  e.  (
 1 ... ( 2  x.  N ) ) ( ( |_ `  (
 ( 2  x.  N )  /  ( P ^
 k ) ) )  -  ( 2  x.  ( |_ `  ( N  /  ( P ^
 k ) ) ) ) ) )
 
Theorembcmono 16316 The binomial coefficient is monotone in its second argument, up to the midway point. (Contributed by Mario Carneiro, 5-Mar-2014.)
 |-  ( ( N  e.  NN0  /\  B  e.  ( ZZ>= `  A )  /\  B  <_  ( N  /  2 ) )  ->  ( N  _C  A )  <_  ( N  _C  B ) )
 
Theorembcmax 16317 The binomial coefficient takes its maximum value at the center. (Contributed by Mario Carneiro, 5-Mar-2014.)
 |-  ( ( N  e.  NN0  /\  K  e.  ZZ )  ->  ( ( 2  x.  N )  _C  K )  <_  ( ( 2  x.  N )  _C  N ) )
 
Theorembcp1ctr 16318 Ratio of two central binomial coefficients. (Contributed by Mario Carneiro, 10-Mar-2014.)
 |-  ( N  e.  NN0  ->  ( ( 2  x.  ( N  +  1 ) )  _C  ( N  +  1 )
 )  =  ( ( ( 2  x.  N )  _C  N )  x.  ( 2  x.  (
 ( ( 2  x.  N )  +  1 )  /  ( N  +  1 ) ) ) ) )
 
Theorembclbnd 16319 A bound on the binomial coefficient. (Contributed by Mario Carneiro, 11-Mar-2014.)
 |-  ( N  e.  ( ZZ>=
 `  4 )  ->  ( ( 4 ^ N )  /  N )  <  ( ( 2  x.  N )  _C  N ) )
 
Theoremprmefexple 16320 Convert a bound on a power of a prime to a bound on the exponent. (Contributed by Mario Carneiro, 11-Mar-2014.) (Revised by Jim Kingdon, 21-Aug-2026.)
 |-  ( ( A  e.  Prime  /\  N  e.  ZZ  /\  B  e.  NN )  ->  ( ( A ^ N )  <_  B  <->  N  <_  ( |_ `  ( ( log `  B )  /  ( log `  A ) ) ) ) )
 
Theorembpos1lem 16321* Lemma for bpos1 . (Contributed by Mario Carneiro, 12-Mar-2014.)
 |-  ( E. p  e. 
 Prime  ( N  <  p  /\  p  <_  ( 2  x.  N ) ) 
 ->  ph )   &    |-  ( N  e.  ( ZZ>= `  P )  -> 
 ph )   &    |-  P  e.  Prime   &    |-  A  e.  NN0   &    |-  ( A  x.  2
 )  =  B   &    |-  A  <  P   &    |-  ( P  <  B  \/  P  =  B )   =>    |-  ( N  e.  ( ZZ>=
 `  A )  ->  ph )
 
Theorembpos1 16322* Bertrand's postulate, checked numerically for  N  <_  6 4, using the prime sequence  2 ,  3 ,  5 ,  7 ,  1 3 ,  2 3 ,  4 3 ,  8 3. (Contributed by Mario Carneiro, 12-Mar-2014.) (Proof shortened by Mario Carneiro, 20-Apr-2015.) (Proof shortened by AV, 15-Sep-2021.)
 |-  ( ( N  e.  NN  /\  N  <_ ; 6 4 )  ->  E. p  e.  Prime  ( N  <  p  /\  p  <_  ( 2  x.  N ) ) )
 
Theorembposlem1 16323 An upper bound on the prime powers dividing a central binomial coefficient. (Contributed by Mario Carneiro, 9-Mar-2014.)
 |-  ( ( N  e.  NN  /\  P  e.  Prime ) 
 ->  ( P ^ ( P  pCnt  ( ( 2  x.  N )  _C  N ) ) ) 
 <_  ( 2  x.  N ) )
 
Theorembposlem2 16324 There are no odd primes in the range 
( 2 N  / 
3 ,  N ] dividing the  N-th central binomial coefficient. (Contributed by Mario Carneiro, 12-Mar-2014.)
 |-  ( ph  ->  N  e.  NN )   &    |-  ( ph  ->  P  e.  Prime )   &    |-  ( ph  ->  2  <  P )   &    |-  ( ph  ->  ( ( 2  x.  N )  / 
 3 )  <  P )   &    |-  ( ph  ->  P  <_  N )   =>    |-  ( ph  ->  ( P  pCnt  ( ( 2  x.  N )  _C  N ) )  =  0 )
 
Theorembposlem3 16325* Lemma for bpos . Since the binomial coefficient does not have any primes in the range  ( 2 N  / 
3 ,  N ] or  ( 2 N , +oo ) by bposlem2 16324 and prmfac1 12957, respectively, and it does not have any in the range  ( N , 
2 N ] by hypothesis, the product of the primes up through  2 N  / 
3 must be sufficient to compose the whole binomial coefficient. (Contributed by Mario Carneiro, 13-Mar-2014.)
 |-  ( ph  ->  N  e.  ( ZZ>= `  5 )
 )   &    |-  ( ph  ->  -.  E. p  e.  Prime  ( N  <  p  /\  p  <_  ( 2  x.  N ) ) )   &    |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( n ^ ( n  pCnt  ( ( 2  x.  N )  _C  N ) ) ) ,  1 ) )   &    |-  K  =  ( |_ `  ( ( 2  x.  N )  /  3
 ) )   =>    |-  ( ph  ->  (  seq 1 (  x.  ,  F ) `  K )  =  ( (
 2  x.  N )  _C  N ) )
 
Theorembposlem4 16326* Lemma for bpos . (Contributed by Mario Carneiro, 13-Mar-2014.)
 |-  ( ph  ->  N  e.  ( ZZ>= `  5 )
 )   &    |-  ( ph  ->  -.  E. p  e.  Prime  ( N  <  p  /\  p  <_  ( 2  x.  N ) ) )   &    |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( n ^ ( n  pCnt  ( ( 2  x.  N )  _C  N ) ) ) ,  1 ) )   &    |-  K  =  ( |_ `  ( ( 2  x.  N )  /  3
 ) )   &    |-  M  =  ( |_ `  ( sqr `  ( 2  x.  N ) ) )   =>    |-  ( ph  ->  M  e.  ( 3 ...
 K ) )
 
Theorembposlem5 16327* Lemma for bpos . Bound the product of all small primes in the binomial coefficient. (Contributed by Mario Carneiro, 15-Mar-2014.) (Proof shortened by AV, 15-Sep-2021.)
 |-  ( ph  ->  N  e.  ( ZZ>= `  5 )
 )   &    |-  ( ph  ->  -.  E. p  e.  Prime  ( N  <  p  /\  p  <_  ( 2  x.  N ) ) )   &    |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( n ^ ( n  pCnt  ( ( 2  x.  N )  _C  N ) ) ) ,  1 ) )   &    |-  K  =  ( |_ `  ( ( 2  x.  N )  /  3
 ) )   &    |-  M  =  ( |_ `  ( sqr `  ( 2  x.  N ) ) )   =>    |-  ( ph  ->  ( 
 seq 1 (  x. 
 ,  F ) `  M )  <_  ( ( 2  x.  N ) 
 ^c  ( ( ( sqr `  (
 2  x.  N ) )  /  3 )  +  2 ) ) )
 
Theorembposlem6 16328* Lemma for bpos 16332. By using the various bounds at our disposal, arrive at an inequality that is false for  N large enough. (Contributed by Mario Carneiro, 14-Mar-2014.) (Revised by Wolf Lammen, 12-Sep-2020.)
 |-  ( ph  ->  N  e.  ( ZZ>= `  5 )
 )   &    |-  ( ph  ->  -.  E. p  e.  Prime  ( N  <  p  /\  p  <_  ( 2  x.  N ) ) )   &    |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( n ^ ( n  pCnt  ( ( 2  x.  N )  _C  N ) ) ) ,  1 ) )   &    |-  K  =  ( |_ `  ( ( 2  x.  N )  /  3
 ) )   &    |-  M  =  ( |_ `  ( sqr `  ( 2  x.  N ) ) )   =>    |-  ( ph  ->  ( ( 4 ^ N )  /  N )  < 
 ( ( ( 2  x.  N )  ^c  ( ( ( sqr `  ( 2  x.  N ) )  / 
 3 )  +  2 ) )  x.  (
 2  ^c  ( ( ( 4  x.  N )  /  3
 )  -  5 ) ) ) )
 
Theorembposlem7 16329* Lemma for bpos 16332. The function  F is strictly decreasing for arguments greater than 7. (Contributed by Mario Carneiro, 13-Mar-2014.)
 |-  F  =  ( n  e.  NN  |->  ( ( ( ( sqr `  2
 )  x.  ( G `
  ( sqr `  n ) ) )  +  ( ( 9  / 
 4 )  x.  ( G `  ( n  / 
 2 ) ) ) )  +  ( ( log `  2 )  /  ( sqr `  (
 2  x.  n ) ) ) ) )   &    |-  G  =  ( x  e.  RR+  |->  ( ( log `  x )  /  x ) )   &    |-  ( ph  ->  A  e.  NN )   &    |-  ( ph  ->  B  e.  NN )   &    |-  ( ph  ->  ( _e ^ 2 )  <_  A )   &    |-  ( ph  ->  ( _e ^ 2 ) 
 <_  B )   =>    |-  ( ph  ->  ( A  <  B  ->  ( F `  B )  < 
 ( F `  A ) ) )
 
Theorembposlem8 16330 Lemma for bpos 16332. Show that  F ( 6 4 ) is less than  log 2. (Contributed by Mario Carneiro, 14-Mar-2014.)
 |-  F  =  ( n  e.  NN  |->  ( ( ( ( sqr `  2
 )  x.  ( G `
  ( sqr `  n ) ) )  +  ( ( 9  / 
 4 )  x.  ( G `  ( n  / 
 2 ) ) ) )  +  ( ( log `  2 )  /  ( sqr `  (
 2  x.  n ) ) ) ) )   &    |-  G  =  ( x  e.  RR+  |->  ( ( log `  x )  /  x ) )   =>    |-  ( ( F ` ; 6 4 )  e.  RR  /\  ( F ` ; 6 4 )  < 
 ( log `  2 )
 )
 
Theorembposlem9 16331* Lemma for bpos 16332. Derive a contradiction. (Contributed by Mario Carneiro, 14-Mar-2014.) (Proof shortened by AV, 15-Sep-2021.)
 |-  F  =  ( n  e.  NN  |->  ( ( ( ( sqr `  2
 )  x.  ( G `
  ( sqr `  n ) ) )  +  ( ( 9  / 
 4 )  x.  ( G `  ( n  / 
 2 ) ) ) )  +  ( ( log `  2 )  /  ( sqr `  (
 2  x.  n ) ) ) ) )   &    |-  G  =  ( x  e.  RR+  |->  ( ( log `  x )  /  x ) )   &    |-  ( ph  ->  N  e.  NN )   &    |-  ( ph  -> ; 6 4  <  N )   &    |-  ( ph  ->  -.  E. p  e.  Prime  ( N  <  p 
 /\  p  <_  (
 2  x.  N ) ) )   =>    |-  ( ph  ->  ps )
 
Theorembpos 16332* Bertrand's postulate: there is a prime between  N and  2 N for every positive integer  N. This proof follows Erdős's method, for the most part, but with some refinements due to Shigenori Tochiori to save us some calculations of large primes. See http://en.wikipedia.org/wiki/Proof_of_Bertrand%27s_postulate for an overview of the proof strategy. This is Metamath 100 proof #98. (Contributed by Mario Carneiro, 14-Mar-2014.)
 |-  ( N  e.  NN  ->  E. p  e.  Prime  ( N  <  p  /\  p  <_  ( 2  x.  N ) ) )
 
11.4.5  Quadratic residues and the Legendre symbol

If the congruence  ( ( x ^ 2 )  mod  p )  =  ( n  mod  p ) has a solution we say that  n is a quadratic residue  mod  p. If the congruence has no solution we say that  n is a quadratic nonresidue 
mod  p, see definition in [ApostolNT] p. 178. The Legendre symbol  ( n  /L
p ) is defined in a way that its value is 
1 if  n is a quadratic residue  mod  p and  -u 1 if  n is a quadratic nonresidue  mod  p (and  0 if  p divides  n).

Originally, the Legendre symbol  ( N  /L
P ) was defined for odd primes  P only (and arbitrary integers  N) by Adrien-Marie Legendre in 1798, see definition in [ApostolNT] p. 179. It was generalized to be defined for any positive odd integer by Carl Gustav Jacob Jacobi in 1837 (therefore called "Jacobi symbol" since then), see definition in [ApostolNT] p. 188. Finally, it was generalized to be defined for any integer by Leopold Kronecker in 1885 (therefore called "Kronecker symbol" since then). The definition df-lgs 16334 for the "Legendre symbol"  /L is actually the definition of the "Kronecker symbol". Since only one definition (and one class symbol) are provided in set.mm, the names "Legendre symbol", "Jacobi symbol" and "Kronecker symbol" are used synonymously for  /L, but mostly it is called "Legendre symbol", even if it is used in the context of a "Jacobi symbol" or "Kronecker symbol".

 
Syntaxclgs 16333 Extend class notation with the Legendre symbol function.
 class  /L
 
Definitiondf-lgs 16334* Define the Legendre symbol (actually the Kronecker symbol, which extends the Legendre symbol to all integers, and also the Jacobi symbol, which restricts the Kronecker symbol to positive odd integers). See definition in [ApostolNT] p. 179 resp. definition in [ApostolNT] p. 188. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |- 
 /L  =  ( a  e.  ZZ ,  n  e.  ZZ  |->  if ( n  =  0 ,  if ( ( a ^
 2 )  =  1 ,  1 ,  0 ) ,  ( if ( ( n  < 
 0  /\  a  <  0 ) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  ,  ( m  e.  NN  |->  if ( m  e.  Prime ,  ( if ( m  =  2 ,  if ( 2 
 ||  a ,  0 ,  if ( ( a  mod  8 )  e.  { 1 ,  7 } ,  1 ,  -u 1 ) ) ,  ( ( ( ( a ^ (
 ( m  -  1
 )  /  2 )
 )  +  1 ) 
 mod  m )  -  1 ) ) ^
 ( m  pCnt  n ) ) ,  1 ) ) ) `  ( abs `  n )
 ) ) ) )
 
Theoremzabsle1 16335  {  -u 1 ,  0 ,  1 } is the set of all integers with absolute value at most  1. (Contributed by AV, 13-Jul-2021.)
 |-  ( Z  e.  ZZ  ->  ( Z  e.  {  -u 1 ,  0 ,  1 }  <->  ( abs `  Z )  <_  1 ) )
 
Theoremlgslem1 16336 When  a is coprime to the prime  p,  a ^
( ( p  - 
1 )  /  2
) is equivalent  mod  p to  1 or  -u 1, and so adding  1 makes it equivalent to  0 or  2. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  P  e.  ( Prime  \  { 2 } )  /\  -.  P  ||  A )  ->  (
 ( ( A ^
 ( ( P  -  1 )  /  2
 ) )  +  1 )  mod  P )  e.  { 0 ,  2 } )
 
Theoremlgslem2 16337 The set  Z of all integers with absolute value at most 
1 contains  {  -u 1 ,  0 ,  1 }. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  Z  =  { x  e.  ZZ  |  ( abs `  x )  <_  1 }   =>    |-  (  -u 1  e.  Z  /\  0  e.  Z  /\  1  e.  Z )
 
Theoremlgslem3 16338* The set  Z of all integers with absolute value at most 
1 is closed under multiplication. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  Z  =  { x  e.  ZZ  |  ( abs `  x )  <_  1 }   =>    |-  ( ( A  e.  Z  /\  B  e.  Z )  ->  ( A  x.  B )  e.  Z )
 
Theoremlgslem4 16339* Lemma for lgsfcl2 16342. (Contributed by Mario Carneiro, 4-Feb-2015.) (Proof shortened by AV, 19-Mar-2022.)
 |-  Z  =  { x  e.  ZZ  |  ( abs `  x )  <_  1 }   =>    |-  ( ( A  e.  ZZ  /\  P  e.  ( Prime  \  { 2 } ) )  ->  (
 ( ( ( A ^ ( ( P  -  1 )  / 
 2 ) )  +  1 )  mod  P )  -  1 )  e.  Z )
 
Theoremlgsval 16340* Value of the Legendre symbol at an arbitrary integer. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( if ( n  =  2 ,  if ( 2 
 ||  A ,  0 ,  if ( ( A  mod  8 )  e.  { 1 ,  7 } ,  1 ,  -u 1 ) ) ,  ( ( ( ( A ^ (
 ( n  -  1
 )  /  2 )
 )  +  1 ) 
 mod  n )  -  1 ) ) ^
 ( n  pCnt  N ) ) ,  1 ) )   =>    |-  ( ( A  e.  ZZ  /\  N  e.  ZZ )  ->  ( A  /L N )  =  if ( N  =  0 ,  if ( ( A ^ 2 )  =  1 ,  1 ,  0 ) ,  ( if ( ( N  <  0 
 /\  A  <  0
 ) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  ,  F ) `
  ( abs `  N ) ) ) ) )
 
Theoremlgsfvalg 16341* Value of the function  F which defines the Legendre symbol at the primes. (Contributed by Mario Carneiro, 4-Feb-2015.) (Revised by Jim Kingdon, 4-Nov-2024.)
 |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( if ( n  =  2 ,  if ( 2 
 ||  A ,  0 ,  if ( ( A  mod  8 )  e.  { 1 ,  7 } ,  1 ,  -u 1 ) ) ,  ( ( ( ( A ^ (
 ( n  -  1
 )  /  2 )
 )  +  1 ) 
 mod  n )  -  1 ) ) ^
 ( n  pCnt  N ) ) ,  1 ) )   =>    |-  ( ( A  e.  ZZ  /\  N  e.  NN  /\  M  e.  NN )  ->  ( F `  M )  =  if ( M  e.  Prime ,  ( if ( M  =  2 ,  if ( 2 
 ||  A ,  0 ,  if ( ( A  mod  8 )  e.  { 1 ,  7 } ,  1 ,  -u 1 ) ) ,  ( ( ( ( A ^ (
 ( M  -  1
 )  /  2 )
 )  +  1 ) 
 mod  M )  -  1
 ) ) ^ ( M  pCnt  N ) ) ,  1 ) )
 
Theoremlgsfcl2 16342* The function  F is closed in integers with absolute value less than  1 (namely  {  -u 1 ,  0 ,  1 }, see zabsle1 16335). (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( if ( n  =  2 ,  if ( 2 
 ||  A ,  0 ,  if ( ( A  mod  8 )  e.  { 1 ,  7 } ,  1 ,  -u 1 ) ) ,  ( ( ( ( A ^ (
 ( n  -  1
 )  /  2 )
 )  +  1 ) 
 mod  n )  -  1 ) ) ^
 ( n  pCnt  N ) ) ,  1 ) )   &    |-  Z  =  { x  e.  ZZ  |  ( abs `  x )  <_  1 }   =>    |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 ) 
 ->  F : NN --> Z )
 
Theoremlgscllem 16343* The Legendre symbol is an element of  Z. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( if ( n  =  2 ,  if ( 2 
 ||  A ,  0 ,  if ( ( A  mod  8 )  e.  { 1 ,  7 } ,  1 ,  -u 1 ) ) ,  ( ( ( ( A ^ (
 ( n  -  1
 )  /  2 )
 )  +  1 ) 
 mod  n )  -  1 ) ) ^
 ( n  pCnt  N ) ) ,  1 ) )   &    |-  Z  =  { x  e.  ZZ  |  ( abs `  x )  <_  1 }   =>    |-  ( ( A  e.  ZZ  /\  N  e.  ZZ )  ->  ( A  /L N )  e.  Z )
 
Theoremlgsfcl 16344* Closure of the function  F which defines the Legendre symbol at the primes. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( if ( n  =  2 ,  if ( 2 
 ||  A ,  0 ,  if ( ( A  mod  8 )  e.  { 1 ,  7 } ,  1 ,  -u 1 ) ) ,  ( ( ( ( A ^ (
 ( n  -  1
 )  /  2 )
 )  +  1 ) 
 mod  n )  -  1 ) ) ^
 ( n  pCnt  N ) ) ,  1 ) )   =>    |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 ) 
 ->  F : NN --> ZZ )
 
Theoremlgsfle1 16345* The function  F has magnitude less or equal to  1. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( if ( n  =  2 ,  if ( 2 
 ||  A ,  0 ,  if ( ( A  mod  8 )  e.  { 1 ,  7 } ,  1 ,  -u 1 ) ) ,  ( ( ( ( A ^ (
 ( n  -  1
 )  /  2 )
 )  +  1 ) 
 mod  n )  -  1 ) ) ^
 ( n  pCnt  N ) ) ,  1 ) )   =>    |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  M  e.  NN )  ->  ( abs `  ( F `  M ) )  <_  1 )
 
Theoremlgsval2lem 16346* Lemma for lgsval2 16352. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( if ( n  =  2 ,  if ( 2 
 ||  A ,  0 ,  if ( ( A  mod  8 )  e.  { 1 ,  7 } ,  1 ,  -u 1 ) ) ,  ( ( ( ( A ^ (
 ( n  -  1
 )  /  2 )
 )  +  1 ) 
 mod  n )  -  1 ) ) ^
 ( n  pCnt  N ) ) ,  1 ) )   =>    |-  ( ( A  e.  ZZ  /\  N  e.  Prime ) 
 ->  ( A  /L N )  =  if ( N  =  2 ,  if ( 2  ||  A ,  0 ,  if ( ( A  mod  8 )  e.  { 1 ,  7 } , 
 1 ,  -u 1
 ) ) ,  (
 ( ( ( A ^ ( ( N  -  1 )  / 
 2 ) )  +  1 )  mod  N )  -  1 ) ) )
 
Theoremlgsval4lem 16347* Lemma for lgsval4 16356. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( if ( n  =  2 ,  if ( 2 
 ||  A ,  0 ,  if ( ( A  mod  8 )  e.  { 1 ,  7 } ,  1 ,  -u 1 ) ) ,  ( ( ( ( A ^ (
 ( n  -  1
 )  /  2 )
 )  +  1 ) 
 mod  n )  -  1 ) ) ^
 ( n  pCnt  N ) ) ,  1 ) )   =>    |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 ) 
 ->  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  (
 ( A  /L
 n ) ^ ( n  pCnt  N ) ) ,  1 ) ) )
 
Theoremlgscl2 16348* The Legendre symbol is an integer with absolute value less than or equal to 1. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  Z  =  { x  e.  ZZ  |  ( abs `  x )  <_  1 }   =>    |-  ( ( A  e.  ZZ  /\  N  e.  ZZ )  ->  ( A  /L N )  e.  Z )
 
Theoremlgs0 16349 The Legendre symbol when the second argument is zero. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( A  e.  ZZ  ->  ( A  /L
 0 )  =  if ( ( A ^
 2 )  =  1 ,  1 ,  0 ) )
 
Theoremlgscl 16350 The Legendre symbol is an integer. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  N  e.  ZZ )  ->  ( A  /L N )  e.  ZZ )
 
Theoremlgsle1 16351 The Legendre symbol has absolute value less than or equal to 1. Together with lgscl 16350 this implies that it takes values in  {  -u 1 ,  0 ,  1 }. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  N  e.  ZZ )  ->  ( abs `  ( A  /L N ) )  <_  1 )
 
Theoremlgsval2 16352 The Legendre symbol at a prime (this is the traditional domain of the Legendre symbol, except for the addition of prime  2). (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  P  e.  Prime ) 
 ->  ( A  /L P )  =  if ( P  =  2 ,  if ( 2  ||  A ,  0 ,  if ( ( A  mod  8 )  e.  { 1 ,  7 } , 
 1 ,  -u 1
 ) ) ,  (
 ( ( ( A ^ ( ( P  -  1 )  / 
 2 ) )  +  1 )  mod  P )  -  1 ) ) )
 
Theoremlgs2 16353 The Legendre symbol at  2. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( A  e.  ZZ  ->  ( A  /L
 2 )  =  if ( 2  ||  A ,  0 ,  if ( ( A  mod  8 )  e.  { 1 ,  7 } , 
 1 ,  -u 1
 ) ) )
 
Theoremlgsval3 16354 The Legendre symbol at an odd prime (this is the traditional domain of the Legendre symbol). (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  P  e.  ( Prime  \  { 2 } ) )  ->  ( A  /L P )  =  ( ( ( ( A ^ (
 ( P  -  1
 )  /  2 )
 )  +  1 ) 
 mod  P )  -  1
 ) )
 
Theoremlgsvalmod 16355 The Legendre symbol is equivalent to 
a ^ ( ( p  -  1 )  /  2 ),  mod  p. This theorem is also called "Euler's criterion", see theorem 9.2 in [ApostolNT] p. 180, or a representation of Euler's criterion using the Legendre symbol. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  P  e.  ( Prime  \  { 2 } ) )  ->  (
 ( A  /L P )  mod  P )  =  ( ( A ^ ( ( P  -  1 )  / 
 2 ) )  mod  P ) )
 
Theoremlgsval4 16356* Restate lgsval 16340 for nonzero  N, where the function  F has been abbreviated into a self-referential expression taking the value of  /L on the primes as given. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  (
 ( A  /L
 n ) ^ ( n  pCnt  N ) ) ,  1 ) )   =>    |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 ) 
 ->  ( A  /L N )  =  ( if ( ( N  <  0 
 /\  A  <  0
 ) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  ,  F ) `
  ( abs `  N ) ) ) )
 
Theoremlgsfcl3 16357* Closure of the function  F which defines the Legendre symbol at the primes. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  (
 ( A  /L
 n ) ^ ( n  pCnt  N ) ) ,  1 ) )   =>    |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 ) 
 ->  F : NN --> ZZ )
 
Theoremlgsval4a 16358* Same as lgsval4 16356 for positive  N. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  (
 ( A  /L
 n ) ^ ( n  pCnt  N ) ) ,  1 ) )   =>    |-  ( ( A  e.  ZZ  /\  N  e.  NN )  ->  ( A  /L N )  =  ( 
 seq 1 (  x. 
 ,  F ) `  N ) )
 
Theoremlgscl1 16359 The value of the Legendre symbol is either -1 or 0 or 1. (Contributed by AV, 13-Jul-2021.)
 |-  ( ( A  e.  ZZ  /\  N  e.  ZZ )  ->  ( A  /L N )  e.  {  -u 1 ,  0 ,  1 } )
 
Theoremlgsneg 16360 The Legendre symbol is either even or odd under negation with respect to the second parameter according to the sign of the first. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 ) 
 ->  ( A  /L  -u N )  =  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  ( A 
 /L N ) ) )
 
Theoremlgsneg1 16361 The Legendre symbol for nonnegative first parameter is unchanged by negation of the second. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( A  e.  NN0  /\  N  e.  ZZ )  ->  ( A  /L  -u N )  =  ( A  /L N ) )
 
Theoremlgsmod 16362 The Legendre (Jacobi) symbol is preserved under reduction  mod  n when  n is odd. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  N  e.  NN  /\ 
 -.  2  ||  N )  ->  ( ( A 
 mod  N )  /L N )  =  ( A  /L N ) )
 
Theoremlgsdilem 16363 Lemma for lgsdi 16373 and lgsdir 16371: the sign part of the Legendre symbol is multiplicative. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  ->  if ( ( N  <  0 
 /\  ( A  x.  B )  <  0 ) ,  -u 1 ,  1 )  =  ( if ( ( N  <  0 
 /\  A  <  0
 ) ,  -u 1 ,  1 )  x. 
 if ( ( N  <  0  /\  B  <  0 ) ,  -u 1 ,  1 ) ) )
 
Theoremlgsdir2lem1 16364 Lemma for lgsdir2 16369. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( ( 1 
 mod  8 )  =  1  /\  (  -u 1  mod  8 )  =  7 )  /\  (
 ( 3  mod  8
 )  =  3  /\  (  -u 3  mod  8
 )  =  5 ) )
 
Theoremlgsdir2lem2 16365 Lemma for lgsdir2 16369. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( K  e.  ZZ  /\  2  ||  ( K  +  1 )  /\  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( A  mod  8 )  e.  ( 0 ...
 K )  ->  ( A  mod  8 )  e.  S ) ) )   &    |-  M  =  ( K  +  1 )   &    |-  N  =  ( M  +  1 )   &    |-  N  e.  S   =>    |-  ( N  e.  ZZ  /\  2  ||  ( N  +  1 )  /\  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( A  mod  8 )  e.  (
 0 ... N )  ->  ( A  mod  8 )  e.  S ) ) )
 
Theoremlgsdir2lem3 16366 Lemma for lgsdir2 16369. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( A 
 mod  8 )  e.  ( { 1 ,  7 }  u.  {
 3 ,  5 } ) )
 
Theoremlgsdir2lem4 16367 Lemma for lgsdir2 16369. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  e. 
 { 1 ,  7 } )  ->  (
 ( ( A  x.  B )  mod  8 )  e.  { 1 ,  7 }  <->  ( B  mod  8 )  e.  { 1 ,  7 } )
 )
 
Theoremlgsdir2lem5 16368 Lemma for lgsdir2 16369. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  (
 ( A  mod  8
 )  e.  { 3 ,  5 }  /\  ( B  mod  8 )  e.  { 3 ,  5 } ) ) 
 ->  ( ( A  x.  B )  mod  8 )  e.  { 1 ,  7 } )
 
Theoremlgsdir2 16369 The Legendre symbol is completely multiplicative at  2. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( A  x.  B )  /L 2 )  =  ( ( A  /L 2 )  x.  ( B  /L
 2 ) ) )
 
Theoremlgsdirprm 16370 The Legendre symbol is completely multiplicative at the primes. See theorem 9.3 in [ApostolNT] p. 180. (Contributed by Mario Carneiro, 4-Feb-2015.) (Proof shortened by AV, 18-Mar-2022.)
 |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  P  e.  Prime )  ->  ( ( A  x.  B )  /L P )  =  ( ( A  /L P )  x.  ( B  /L P ) ) )
 
Theoremlgsdir 16371 The Legendre symbol is completely multiplicative in its left argument. Generalization of theorem 9.9(a) in [ApostolNT] p. 188 (which assumes that  A and  B are odd positive integers). (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  ->  ( ( A  x.  B )  /L N )  =  ( ( A  /L N )  x.  ( B  /L N ) ) )
 
Theoremlgsdilem2 16372* Lemma for lgsdi 16373. (Contributed by Mario Carneiro, 4-Feb-2015.)
 |-  ( ph  ->  A  e.  ZZ )   &    |-  ( ph  ->  M  e.  ZZ )   &    |-  ( ph  ->  N  e.  ZZ )   &    |-  ( ph  ->  M  =/=  0 )   &    |-  ( ph  ->  N  =/=  0 )   &    |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
 ( n  pCnt  M ) ) ,  1 ) )   =>    |-  ( ph  ->  (  seq 1 (  x.  ,  F ) `  ( abs `  M ) )  =  (  seq 1
 (  x.  ,  F ) `  ( abs `  ( M  x.  N ) ) ) )
 
Theoremlgsdi 16373 The Legendre symbol is completely multiplicative in its right argument. Generalization of theorem 9.9(b) in [ApostolNT] p. 188 (which assumes that  M and  N are odd positive integers). (Contributed by Mario Carneiro, 5-Feb-2015.)
 |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  ->  ( A  /L ( M  x.  N ) )  =  ( ( A  /L M )  x.  ( A  /L N ) ) )
 
Theoremlgsne0 16374 The Legendre symbol is nonzero (and hence equal to  1 or  -u 1) precisely when the arguments are coprime. (Contributed by Mario Carneiro, 5-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  N  e.  ZZ )  ->  ( ( A 
 /L N )  =/=  0  <->  ( A  gcd  N )  =  1 ) )
 
Theoremlgsabs1 16375 The Legendre symbol is nonzero (and hence equal to  1 or  -u 1) precisely when the arguments are coprime. (Contributed by Mario Carneiro, 5-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  N  e.  ZZ )  ->  ( ( abs `  ( A  /L N ) )  =  1  <->  ( A  gcd  N )  =  1 ) )
 
Theoremlgssq 16376 The Legendre symbol at a square is equal to  1. Together with lgsmod 16362 this implies that the Legendre symbol takes value  1 at every quadratic residue. (Contributed by Mario Carneiro, 5-Feb-2015.) (Revised by AV, 20-Jul-2021.)
 |-  ( ( ( A  e.  ZZ  /\  A  =/=  0 )  /\  N  e.  ZZ  /\  ( A 
 gcd  N )  =  1 )  ->  ( ( A ^ 2 )  /L N )  =  1 )
 
Theoremlgssq2 16377 The Legendre symbol at a square is equal to  1. (Contributed by Mario Carneiro, 5-Feb-2015.)
 |-  ( ( A  e.  ZZ  /\  N  e.  NN  /\  ( A  gcd  N )  =  1 )  ->  ( A  /L
 ( N ^ 2
 ) )  =  1 )
 
Theoremlgsprme0 16378 The Legendre symbol at any prime (even at 2) is  0 iff the prime does not divide the first argument. See definition in [ApostolNT] p. 179. (Contributed by AV, 20-Jul-2021.)
 |-  ( ( A  e.  ZZ  /\  P  e.  Prime ) 
 ->  ( ( A  /L P )  =  0  <-> 
 ( A  mod  P )  =  0 )
 )
 
Theorem1lgs 16379 The Legendre symbol at  1. See example 1 in [ApostolNT] p. 180. (Contributed by Mario Carneiro, 28-Apr-2016.)
 |-  ( N  e.  ZZ  ->  ( 1  /L N )  =  1
 )
 
Theoremlgs1 16380 The Legendre symbol at  1. See definition in [ApostolNT] p. 188. (Contributed by Mario Carneiro, 28-Apr-2016.)
 |-  ( A  e.  ZZ  ->  ( A  /L
 1 )  =  1 )
 
Theoremlgsmodeq 16381 The Legendre (Jacobi) symbol is preserved under reduction  mod  n when  n is odd. Theorem 9.9(c) in [ApostolNT] p. 188. (Contributed by AV, 20-Jul-2021.)
 |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  ( N  e.  NN  /\ 
 -.  2  ||  N ) )  ->  ( ( A  mod  N )  =  ( B  mod  N )  ->  ( A  /L N )  =  ( B  /L N ) ) )
 
Theoremlgsmulsqcoprm 16382 The Legendre (Jacobi) symbol is preserved under multiplication with a square of an integer coprime to the second argument. Theorem 9.9(d) in [ApostolNT] p. 188. (Contributed by AV, 20-Jul-2021.)
 |-  ( ( ( A  e.  ZZ  /\  A  =/=  0 )  /\  ( B  e.  ZZ  /\  B  =/=  0 )  /\  ( N  e.  ZZ  /\  ( A  gcd  N )  =  1 ) )  ->  ( ( ( A ^ 2 )  x.  B )  /L N )  =  ( B  /L N ) )
 
Theoremlgsdirnn0 16383 Variation on lgsdir 16371 valid for all  A ,  B but only for positive  N. (The exact location of the failure of this law is for  A  =  0,  B  <  0,  N  =  -u 1 in which case  ( 0  /L  -u 1
)  =  1 but  ( B  /L  -u 1 )  =  -u 1.) (Contributed by Mario Carneiro, 28-Apr-2016.)
 |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN0 )  ->  ( ( A  x.  B )  /L N )  =  ( ( A  /L N )  x.  ( B  /L N ) ) )
 
Theoremlgsdinn0 16384 Variation on lgsdi 16373 valid for all  M ,  N but only for positive  A. (The exact location of the failure of this law is for  A  =  -u
1,  M  =  0, and some  N in which case  (  -u 1  /L 0 )  =  1 but  (  -u 1  /L N )  =  -u 1 when  -u 1 is not a quadratic residue mod  N.) (Contributed by Mario Carneiro, 28-Apr-2016.)
 |-  ( ( A  e.  NN0  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  ( A  /L
 ( M  x.  N ) )  =  (
 ( A  /L M )  x.  ( A  /L N ) ) )
 
11.4.6  Gauss' Lemma

Gauss' Lemma is valid for any integer not dividing the given prime number. In the following, only the special case for 2 (not dividing any odd prime) is proven, see gausslemma2d 16405. The general case is still to prove.

 
Theoremgausslemma2dlem0a 16385 Auxiliary lemma 1 for gausslemma2d 16405. (Contributed by AV, 9-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   =>    |-  ( ph  ->  P  e.  NN )
 
Theoremgausslemma2dlem0b 16386 Auxiliary lemma 2 for gausslemma2d 16405. (Contributed by AV, 9-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  H  =  ( ( P  -  1 )  /  2
 )   =>    |-  ( ph  ->  H  e.  NN )
 
Theoremgausslemma2dlem0c 16387 Auxiliary lemma 3 for gausslemma2d 16405. (Contributed by AV, 13-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  H  =  ( ( P  -  1 )  /  2
 )   =>    |-  ( ph  ->  (
 ( ! `  H )  gcd  P )  =  1 )
 
Theoremgausslemma2dlem0d 16388 Auxiliary lemma 4 for gausslemma2d 16405. (Contributed by AV, 9-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  M  =  ( |_ `  ( P  /  4 ) )   =>    |-  ( ph  ->  M  e.  NN0 )
 
Theoremgausslemma2dlem0e 16389 Auxiliary lemma 5 for gausslemma2d 16405. (Contributed by AV, 9-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  M  =  ( |_ `  ( P  /  4 ) )   =>    |-  ( ph  ->  ( M  x.  2 )  <  ( P  /  2 ) )
 
Theoremgausslemma2dlem0f 16390 Auxiliary lemma 6 for gausslemma2d 16405. (Contributed by AV, 9-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  M  =  ( |_ `  ( P  /  4 ) )   &    |-  H  =  ( ( P  -  1 )  / 
 2 )   =>    |-  ( ph  ->  ( M  +  1 )  <_  H )
 
Theoremgausslemma2dlem0g 16391 Auxiliary lemma 7 for gausslemma2d 16405. (Contributed by AV, 9-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  M  =  ( |_ `  ( P  /  4 ) )   &    |-  H  =  ( ( P  -  1 )  / 
 2 )   =>    |-  ( ph  ->  M  <_  H )
 
Theoremgausslemma2dlem0h 16392 Auxiliary lemma 8 for gausslemma2d 16405. (Contributed by AV, 9-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  M  =  ( |_ `  ( P  /  4 ) )   &    |-  H  =  ( ( P  -  1 )  / 
 2 )   &    |-  N  =  ( H  -  M )   =>    |-  ( ph  ->  N  e.  NN0 )
 
Theoremgausslemma2dlem0i 16393 Auxiliary lemma 9 for gausslemma2d 16405. (Contributed by AV, 14-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  M  =  ( |_ `  ( P  /  4 ) )   &    |-  H  =  ( ( P  -  1 )  / 
 2 )   &    |-  N  =  ( H  -  M )   =>    |-  ( ph  ->  ( (
 ( 2  /L P )  mod  P )  =  ( (  -u 1 ^ N )  mod  P )  ->  ( 2  /L P )  =  (  -u 1 ^ N ) ) )
 
Theoremgausslemma2dlem1a 16394* Lemma for gausslemma2dlem1 16397. (Contributed by AV, 1-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  H  =  ( ( P  -  1 )  /  2
 )   &    |-  R  =  ( x  e.  ( 1 ...
 H )  |->  if (
 ( x  x.  2
 )  <  ( P  /  2 ) ,  ( x  x.  2 ) ,  ( P  -  ( x  x.  2 ) ) ) )   =>    |-  ( ph  ->  ran  R  =  ( 1 ... H ) )
 
Theoremgausslemma2dlem1cl 16395 Lemma for gausslemma2dlem1 16397. Closure of the body of the definition of  R. (Contributed by Jim Kingdon, 10-Aug-2025.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  H  =  ( ( P  -  1 )  /  2
 )   &    |-  R  =  ( x  e.  ( 1 ...
 H )  |->  if (
 ( x  x.  2
 )  <  ( P  /  2 ) ,  ( x  x.  2 ) ,  ( P  -  ( x  x.  2 ) ) ) )   &    |-  ( ph  ->  A  e.  ( 1 ...
 H ) )   =>    |-  ( ph  ->  if ( ( A  x.  2 )  <  ( P 
 /  2 ) ,  ( A  x.  2
 ) ,  ( P  -  ( A  x.  2 ) ) )  e.  ZZ )
 
Theoremgausslemma2dlem1f1o 16396* Lemma for gausslemma2dlem1 16397. (Contributed by Jim Kingdon, 9-Aug-2025.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  H  =  ( ( P  -  1 )  /  2
 )   &    |-  R  =  ( x  e.  ( 1 ...
 H )  |->  if (
 ( x  x.  2
 )  <  ( P  /  2 ) ,  ( x  x.  2 ) ,  ( P  -  ( x  x.  2 ) ) ) )   =>    |-  ( ph  ->  R : ( 1 ...
 H ) -1-1-onto-> ( 1 ... H ) )
 
Theoremgausslemma2dlem1 16397* Lemma 1 for gausslemma2d 16405. (Contributed by AV, 5-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  H  =  ( ( P  -  1 )  /  2
 )   &    |-  R  =  ( x  e.  ( 1 ...
 H )  |->  if (
 ( x  x.  2
 )  <  ( P  /  2 ) ,  ( x  x.  2 ) ,  ( P  -  ( x  x.  2 ) ) ) )   =>    |-  ( ph  ->  ( ! `  H )  = 
 prod_ k  e.  (
 1 ... H ) ( R `  k ) )
 
Theoremgausslemma2dlem2 16398* Lemma 2 for gausslemma2d 16405. (Contributed by AV, 4-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  H  =  ( ( P  -  1 )  /  2
 )   &    |-  R  =  ( x  e.  ( 1 ...
 H )  |->  if (
 ( x  x.  2
 )  <  ( P  /  2 ) ,  ( x  x.  2 ) ,  ( P  -  ( x  x.  2 ) ) ) )   &    |-  M  =  ( |_ `  ( P 
 /  4 ) )   =>    |-  ( ph  ->  A. k  e.  ( 1 ... M ) ( R `  k )  =  (
 k  x.  2 ) )
 
Theoremgausslemma2dlem3 16399* Lemma 3 for gausslemma2d 16405. (Contributed by AV, 4-Jul-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  H  =  ( ( P  -  1 )  /  2
 )   &    |-  R  =  ( x  e.  ( 1 ...
 H )  |->  if (
 ( x  x.  2
 )  <  ( P  /  2 ) ,  ( x  x.  2 ) ,  ( P  -  ( x  x.  2 ) ) ) )   &    |-  M  =  ( |_ `  ( P 
 /  4 ) )   =>    |-  ( ph  ->  A. k  e.  ( ( M  +  1 ) ... H ) ( R `  k )  =  ( P  -  ( k  x.  2 ) ) )
 
Theoremgausslemma2dlem4 16400* Lemma 4 for gausslemma2d 16405. (Contributed by AV, 16-Jun-2021.)
 |-  ( ph  ->  P  e.  ( Prime  \  { 2 } ) )   &    |-  H  =  ( ( P  -  1 )  /  2
 )   &    |-  R  =  ( x  e.  ( 1 ...
 H )  |->  if (
 ( x  x.  2
 )  <  ( P  /  2 ) ,  ( x  x.  2 ) ,  ( P  -  ( x  x.  2 ) ) ) )   &    |-  M  =  ( |_ `  ( P 
 /  4 ) )   =>    |-  ( ph  ->  ( ! `  H )  =  (
 prod_ k  e.  (
 1 ... M ) ( R `  k )  x.  prod_ k  e.  (
 ( M  +  1 ) ... H ) ( R `  k
 ) ) )
    < Previous  Next >

Page List
Jump to page: Contents  1 1-100 2 101-200 3 201-300 4 301-400 5 401-500 6 501-600 7 601-700 8 701-800 9 801-900 10 901-1000 11 1001-1100 12 1101-1200 13 1201-1300 14 1301-1400 15 1401-1500 16 1501-1600 17 1601-1700 18 1701-1800 19 1801-1900 20 1901-2000 21 2001-2100 22 2101-2200 23 2201-2300 24 2301-2400 25 2401-2500 26 2501-2600 27 2601-2700 28 2701-2800 29 2801-2900 30 2901-3000 31 3001-3100 32 3101-3200 33 3201-3300 34 3301-3400 35 3401-3500 36 3501-3600 37 3601-3700 38 3701-3800 39 3801-3900 40 3901-4000 41 4001-4100 42 4101-4200 43 4201-4300 44 4301-4400 45 4401-4500 46 4501-4600 47 4601-4700 48 4701-4800 49 4801-4900 50 4901-5000 51 5001-5100 52 5101-5200 53 5201-5300 54 5301-5400 55 5401-5500 56 5501-5600 57 5601-5700 58 5701-5800 59 5801-5900 60 5901-6000 61 6001-6100 62 6101-6200 63 6201-6300 64 6301-6400 65 6401-6500 66 6501-6600 67 6601-6700 68 6701-6800 69 6801-6900 70 6901-7000 71 7001-7100 72 7101-7200 73 7201-7300 74 7301-7400 75 7401-7500 76 7501-7600 77 7601-7700 78 7701-7800 79 7801-7900 80 7901-8000 81 8001-8100 82 8101-8200 83 8201-8300 84 8301-8400 85 8401-8500 86 8501-8600 87 8601-8700 88 8701-8800 89 8801-8900 90 8901-9000 91 9001-9100 92 9101-9200 93 9201-9300 94 9301-9400 95 9401-9500 96 9501-9600 97 9601-9700 98 9701-9800 99 9801-9900 100 9901-10000 101 10001-10100 102 10101-10200 103 10201-10300 104 10301-10400 105 10401-10500 106 10501-10600 107 10601-10700 108 10701-10800 109 10801-10900 110 10901-11000 111 11001-11100 112 11101-11200 113 11201-11300 114 11301-11400 115 11401-11500 116 11501-11600 117 11601-11700 118 11701-11800 119 11801-11900 120 11901-12000 121 12001-12100 122 12101-12200 123 12201-12300 124 12301-12400 125 12401-12500 126 12501-12600 127 12601-12700 128 12701-12800 129 12801-12900 130 12901-13000 131 13001-13100 132 13101-13200 133 13201-13300 134 13301-13400 135 13401-13500 136 13501-13600 137 13601-13700 138 13701-13800 139 13801-13900 140 13901-14000 141 14001-14100 142 14101-14200 143 14201-14300 144 14301-14400 145 14401-14500 146 14501-14600 147 14601-14700 148 14701-14800 149 14801-14900 150 14901-15000 151 15001-15100 152 15101-15200 153 15201-15300 154 15301-15400 155 15401-15500 156 15501-15600 157 15601-15700 158 15701-15800 159 15801-15900 160 15901-16000 161 16001-16100 162 16101-16200 163 16201-16300 164 16301-16400 165 16401-16500 166 16501-16600 167 16601-16700 168 16701-16800 169 16801-16900 170 16901-17000 171 17001-17100 172 17101-17200 173 17201-17300 174 17301-17398
  Copyright terms: Public domain < Previous  Next >