Type | Label | Description |
Statement |
|
Theorem | pccl 12301 |
Closure of the prime power function. (Contributed by Mario Carneiro,
23-Feb-2014.)
|
β’ ((π β β β§ π β β) β (π pCnt π) β
β0) |
|
Theorem | pccld 12302 |
Closure of the prime power function. (Contributed by Mario Carneiro,
29-May-2016.)
|
β’ (π β π β β) & β’ (π β π β β)
β β’ (π β (π pCnt π) β
β0) |
|
Theorem | pcmul 12303 |
Multiplication property of the prime power function. (Contributed by
Mario Carneiro, 23-Feb-2014.)
|
β’ ((π β β β§ (π΄ β β€ β§ π΄ β 0) β§ (π΅ β β€ β§ π΅ β 0)) β (π pCnt (π΄ Β· π΅)) = ((π pCnt π΄) + (π pCnt π΅))) |
|
Theorem | pcdiv 12304 |
Division property of the prime power function. (Contributed by Mario
Carneiro, 1-Mar-2014.)
|
β’ ((π β β β§ (π΄ β β€ β§ π΄ β 0) β§ π΅ β β) β (π pCnt (π΄ / π΅)) = ((π pCnt π΄) β (π pCnt π΅))) |
|
Theorem | pcqmul 12305 |
Multiplication property of the prime power function. (Contributed by
Mario Carneiro, 9-Sep-2014.)
|
β’ ((π β β β§ (π΄ β β β§ π΄ β 0) β§ (π΅ β β β§ π΅ β 0)) β (π pCnt (π΄ Β· π΅)) = ((π pCnt π΄) + (π pCnt π΅))) |
|
Theorem | pc0 12306 |
The value of the prime power function at zero. (Contributed by Mario
Carneiro, 3-Oct-2014.)
|
β’ (π β β β (π pCnt 0) = +β) |
|
Theorem | pc1 12307 |
Value of the prime count function at 1. (Contributed by Mario Carneiro,
23-Feb-2014.)
|
β’ (π β β β (π pCnt 1) = 0) |
|
Theorem | pcqcl 12308 |
Closure of the general prime count function. (Contributed by Mario
Carneiro, 23-Feb-2014.)
|
β’ ((π β β β§ (π β β β§ π β 0)) β (π pCnt π) β β€) |
|
Theorem | pcqdiv 12309 |
Division property of the prime power function. (Contributed by Mario
Carneiro, 10-Aug-2015.)
|
β’ ((π β β β§ (π΄ β β β§ π΄ β 0) β§ (π΅ β β β§ π΅ β 0)) β (π pCnt (π΄ / π΅)) = ((π pCnt π΄) β (π pCnt π΅))) |
|
Theorem | pcrec 12310 |
Prime power of a reciprocal. (Contributed by Mario Carneiro,
10-Aug-2015.)
|
β’ ((π β β β§ (π΄ β β β§ π΄ β 0)) β (π pCnt (1 / π΄)) = -(π pCnt π΄)) |
|
Theorem | pcexp 12311 |
Prime power of an exponential. (Contributed by Mario Carneiro,
10-Aug-2015.)
|
β’ ((π β β β§ (π΄ β β β§ π΄ β 0) β§ π β β€) β (π pCnt (π΄βπ)) = (π Β· (π pCnt π΄))) |
|
Theorem | pcxnn0cl 12312 |
Extended nonnegative integer closure of the general prime count
function. (Contributed by Jim Kingdon, 13-Oct-2024.)
|
β’ ((π β β β§ π β β€) β (π pCnt π) β
β0*) |
|
Theorem | pcxcl 12313 |
Extended real closure of the general prime count function. (Contributed
by Mario Carneiro, 3-Oct-2014.)
|
β’ ((π β β β§ π β β) β (π pCnt π) β
β*) |
|
Theorem | pcge0 12314 |
The prime count of an integer is greater than or equal to zero.
(Contributed by Mario Carneiro, 3-Oct-2014.)
|
β’ ((π β β β§ π β β€) β 0 β€ (π pCnt π)) |
|
Theorem | pczdvds 12315 |
Defining property of the prime count function. (Contributed by Mario
Carneiro, 9-Sep-2014.)
|
β’ ((π β β β§ (π β β€ β§ π β 0)) β (πβ(π pCnt π)) β₯ π) |
|
Theorem | pcdvds 12316 |
Defining property of the prime count function. (Contributed by Mario
Carneiro, 23-Feb-2014.)
|
β’ ((π β β β§ π β β) β (πβ(π pCnt π)) β₯ π) |
|
Theorem | pczndvds 12317 |
Defining property of the prime count function. (Contributed by Mario
Carneiro, 3-Oct-2014.)
|
β’ ((π β β β§ (π β β€ β§ π β 0)) β Β¬ (πβ((π pCnt π) + 1)) β₯ π) |
|
Theorem | pcndvds 12318 |
Defining property of the prime count function. (Contributed by Mario
Carneiro, 23-Feb-2014.)
|
β’ ((π β β β§ π β β) β Β¬ (πβ((π pCnt π) + 1)) β₯ π) |
|
Theorem | pczndvds2 12319 |
The remainder after dividing out all factors of π is not divisible
by π. (Contributed by Mario Carneiro,
9-Sep-2014.)
|
β’ ((π β β β§ (π β β€ β§ π β 0)) β Β¬ π β₯ (π / (πβ(π pCnt π)))) |
|
Theorem | pcndvds2 12320 |
The remainder after dividing out all factors of π is not divisible
by π. (Contributed by Mario Carneiro,
23-Feb-2014.)
|
β’ ((π β β β§ π β β) β Β¬ π β₯ (π / (πβ(π pCnt π)))) |
|
Theorem | pcdvdsb 12321 |
πβπ΄ divides π if and only if π΄ is at
most the count of
π. (Contributed by Mario Carneiro,
3-Oct-2014.)
|
β’ ((π β β β§ π β β€ β§ π΄ β β0) β (π΄ β€ (π pCnt π) β (πβπ΄) β₯ π)) |
|
Theorem | pcelnn 12322 |
There are a positive number of powers of a prime π in π iff
π
divides π. (Contributed by Mario Carneiro,
23-Feb-2014.)
|
β’ ((π β β β§ π β β) β ((π pCnt π) β β β π β₯ π)) |
|
Theorem | pceq0 12323 |
There are zero powers of a prime π in π iff π does
not divide
π. (Contributed by Mario Carneiro,
23-Feb-2014.)
|
β’ ((π β β β§ π β β) β ((π pCnt π) = 0 β Β¬ π β₯ π)) |
|
Theorem | pcidlem 12324 |
The prime count of a prime power. (Contributed by Mario Carneiro,
12-Mar-2014.)
|
β’ ((π β β β§ π΄ β β0) β (π pCnt (πβπ΄)) = π΄) |
|
Theorem | pcid 12325 |
The prime count of a prime power. (Contributed by Mario Carneiro,
9-Sep-2014.)
|
β’ ((π β β β§ π΄ β β€) β (π pCnt (πβπ΄)) = π΄) |
|
Theorem | pcneg 12326 |
The prime count of a negative number. (Contributed by Mario Carneiro,
13-Mar-2014.)
|
β’ ((π β β β§ π΄ β β) β (π pCnt -π΄) = (π pCnt π΄)) |
|
Theorem | pcabs 12327 |
The prime count of an absolute value. (Contributed by Mario Carneiro,
13-Mar-2014.)
|
β’ ((π β β β§ π΄ β β) β (π pCnt (absβπ΄)) = (π pCnt π΄)) |
|
Theorem | pcdvdstr 12328 |
The prime count increases under the divisibility relation. (Contributed
by Mario Carneiro, 13-Mar-2014.)
|
β’ ((π β β β§ (π΄ β β€ β§ π΅ β β€ β§ π΄ β₯ π΅)) β (π pCnt π΄) β€ (π pCnt π΅)) |
|
Theorem | pcgcd1 12329 |
The prime count of a GCD is the minimum of the prime counts of the
arguments. (Contributed by Mario Carneiro, 3-Oct-2014.)
|
β’ (((π β β β§ π΄ β β€ β§ π΅ β β€) β§ (π pCnt π΄) β€ (π pCnt π΅)) β (π pCnt (π΄ gcd π΅)) = (π pCnt π΄)) |
|
Theorem | pcgcd 12330 |
The prime count of a GCD is the minimum of the prime counts of the
arguments. (Contributed by Mario Carneiro, 3-Oct-2014.)
|
β’ ((π β β β§ π΄ β β€ β§ π΅ β β€) β (π pCnt (π΄ gcd π΅)) = if((π pCnt π΄) β€ (π pCnt π΅), (π pCnt π΄), (π pCnt π΅))) |
|
Theorem | pc2dvds 12331* |
A characterization of divisibility in terms of prime count.
(Contributed by Mario Carneiro, 23-Feb-2014.) (Revised by Mario
Carneiro, 3-Oct-2014.)
|
β’ ((π΄ β β€ β§ π΅ β β€) β (π΄ β₯ π΅ β βπ β β (π pCnt π΄) β€ (π pCnt π΅))) |
|
Theorem | pc11 12332* |
The prime count function, viewed as a function from β to
(β βπ β), is
one-to-one. (Contributed by Mario Carneiro,
23-Feb-2014.)
|
β’ ((π΄ β β0 β§ π΅ β β0)
β (π΄ = π΅ β βπ β β (π pCnt π΄) = (π pCnt π΅))) |
|
Theorem | pcz 12333* |
The prime count function can be used as an indicator that a given
rational number is an integer. (Contributed by Mario Carneiro,
23-Feb-2014.)
|
β’ (π΄ β β β (π΄ β β€ β βπ β β 0 β€ (π pCnt π΄))) |
|
Theorem | pcprmpw2 12334* |
Self-referential expression for a prime power. (Contributed by Mario
Carneiro, 16-Jan-2015.)
|
β’ ((π β β β§ π΄ β β) β (βπ β β0
π΄ β₯ (πβπ) β π΄ = (πβ(π pCnt π΄)))) |
|
Theorem | pcprmpw 12335* |
Self-referential expression for a prime power. (Contributed by Mario
Carneiro, 16-Jan-2015.)
|
β’ ((π β β β§ π΄ β β) β (βπ β β0
π΄ = (πβπ) β π΄ = (πβ(π pCnt π΄)))) |
|
Theorem | dvdsprmpweq 12336* |
If a positive integer divides a prime power, it is a prime power.
(Contributed by AV, 25-Jul-2021.)
|
β’ ((π β β β§ π΄ β β β§ π β β0) β (π΄ β₯ (πβπ) β βπ β β0 π΄ = (πβπ))) |
|
Theorem | dvdsprmpweqnn 12337* |
If an integer greater than 1 divides a prime power, it is a (proper)
prime power. (Contributed by AV, 13-Aug-2021.)
|
β’ ((π β β β§ π΄ β (β€β₯β2)
β§ π β
β0) β (π΄ β₯ (πβπ) β βπ β β π΄ = (πβπ))) |
|
Theorem | dvdsprmpweqle 12338* |
If a positive integer divides a prime power, it is a prime power with a
smaller exponent. (Contributed by AV, 25-Jul-2021.)
|
β’ ((π β β β§ π΄ β β β§ π β β0) β (π΄ β₯ (πβπ) β βπ β β0 (π β€ π β§ π΄ = (πβπ)))) |
|
Theorem | difsqpwdvds 12339 |
If the difference of two squares is a power of a prime, the prime
divides twice the second squared number. (Contributed by AV,
13-Aug-2021.)
|
β’ (((π΄ β β0 β§ π΅ β β0
β§ (π΅ + 1) < π΄) β§ (πΆ β β β§ π· β β0)) β
((πΆβπ·) = ((π΄β2) β (π΅β2)) β πΆ β₯ (2 Β· π΅))) |
|
Theorem | pcaddlem 12340 |
Lemma for pcadd 12341. The original numbers π΄ and
π΅
have been
decomposed using the prime count function as (πβπ) Β· (π
/ π)
where π
, π are both not divisible by π and
π =
(π pCnt π΄), and similarly for π΅.
(Contributed by Mario
Carneiro, 9-Sep-2014.)
|
β’ (π β π β β) & β’ (π β π΄ = ((πβπ) Β· (π
/ π))) & β’ (π β π΅ = ((πβπ) Β· (π / π))) & β’ (π β π β (β€β₯βπ)) & β’ (π β (π
β β€ β§ Β¬ π β₯ π
)) & β’ (π β (π β β β§ Β¬ π β₯ π)) & β’ (π β (π β β€ β§ Β¬ π β₯ π)) & β’ (π β (π β β β§ Β¬ π β₯ π)) β β’ (π β π β€ (π pCnt (π΄ + π΅))) |
|
Theorem | pcadd 12341 |
An inequality for the prime count of a sum. This is the source of the
ultrametric inequality for the p-adic metric. (Contributed by Mario
Carneiro, 9-Sep-2014.)
|
β’ (π β π β β) & β’ (π β π΄ β β) & β’ (π β π΅ β β) & β’ (π β (π pCnt π΄) β€ (π pCnt π΅)) β β’ (π β (π pCnt π΄) β€ (π pCnt (π΄ + π΅))) |
|
Theorem | pcmptcl 12342 |
Closure for the prime power map. (Contributed by Mario Carneiro,
12-Mar-2014.)
|
β’ πΉ = (π β β β¦ if(π β β, (πβπ΄), 1)) & β’ (π β βπ β β π΄ β
β0) β β’ (π β (πΉ:ββΆβ β§ seq1(
Β· , πΉ):ββΆβ)) |
|
Theorem | pcmpt 12343* |
Construct a function with given prime count characteristics.
(Contributed by Mario Carneiro, 12-Mar-2014.)
|
β’ πΉ = (π β β β¦ if(π β β, (πβπ΄), 1)) & β’ (π β βπ β β π΄ β
β0)
& β’ (π β π β β) & β’ (π β π β β) & β’ (π = π β π΄ = π΅) β β’ (π β (π pCnt (seq1( Β· , πΉ)βπ)) = if(π β€ π, π΅, 0)) |
|
Theorem | pcmpt2 12344* |
Dividing two prime count maps yields a number with all dividing primes
confined to an interval. (Contributed by Mario Carneiro,
14-Mar-2014.)
|
β’ πΉ = (π β β β¦ if(π β β, (πβπ΄), 1)) & β’ (π β βπ β β π΄ β
β0)
& β’ (π β π β β) & β’ (π β π β β) & β’ (π = π β π΄ = π΅)
& β’ (π β π β (β€β₯βπ))
β β’ (π β (π pCnt ((seq1( Β· , πΉ)βπ) / (seq1( Β· , πΉ)βπ))) = if((π β€ π β§ Β¬ π β€ π), π΅, 0)) |
|
Theorem | pcmptdvds 12345 |
The partial products of the prime power map form a divisibility chain.
(Contributed by Mario Carneiro, 12-Mar-2014.)
|
β’ πΉ = (π β β β¦ if(π β β, (πβπ΄), 1)) & β’ (π β βπ β β π΄ β
β0)
& β’ (π β π β β) & β’ (π β π β (β€β₯βπ))
β β’ (π β (seq1( Β· , πΉ)βπ) β₯ (seq1( Β· , πΉ)βπ)) |
|
Theorem | pcprod 12346* |
The product of the primes taken to their respective powers reconstructs
the original number. (Contributed by Mario Carneiro, 12-Mar-2014.)
|
β’ πΉ = (π β β β¦ if(π β β, (πβ(π pCnt π)), 1)) β β’ (π β β β (seq1( Β· ,
πΉ)βπ) = π) |
|
Theorem | sumhashdc 12347* |
The sum of 1 over a set is the size of the set. (Contributed by Mario
Carneiro, 8-Mar-2014.) (Revised by Mario Carneiro, 20-May-2014.)
|
β’ ((π΅ β Fin β§ π΄ β π΅ β§ βπ₯ β π΅ DECID π₯ β π΄) β Ξ£π β π΅ if(π β π΄, 1, 0) = (β―βπ΄)) |
|
Theorem | fldivp1 12348 |
The difference between the floors of adjacent fractions is either 1 or 0.
(Contributed by Mario Carneiro, 8-Mar-2014.)
|
β’ ((π β β€ β§ π β β) β
((ββ((π + 1) /
π)) β
(ββ(π / π))) = if(π β₯ (π + 1), 1, 0)) |
|
Theorem | pcfaclem 12349 |
Lemma for pcfac 12350. (Contributed by Mario Carneiro,
20-May-2014.)
|
β’ ((π β β0 β§ π β
(β€β₯βπ) β§ π β β) β
(ββ(π / (πβπ))) = 0) |
|
Theorem | pcfac 12350* |
Calculate the prime count of a factorial. (Contributed by Mario
Carneiro, 11-Mar-2014.) (Revised by Mario Carneiro, 21-May-2014.)
|
β’ ((π β β0 β§ π β
(β€β₯βπ) β§ π β β) β (π pCnt (!βπ)) = Ξ£π β (1...π)(ββ(π / (πβπ)))) |
|
Theorem | pcbc 12351* |
Calculate the prime count of a binomial coefficient. (Contributed by
Mario Carneiro, 11-Mar-2014.) (Revised by Mario Carneiro,
21-May-2014.)
|
β’ ((π β β β§ πΎ β (0...π) β§ π β β) β (π pCnt (πCπΎ)) = Ξ£π β (1...π)((ββ(π / (πβπ))) β ((ββ((π β πΎ) / (πβπ))) + (ββ(πΎ / (πβπ)))))) |
|
Theorem | qexpz 12352 |
If a power of a rational number is an integer, then the number is an
integer. (Contributed by Mario Carneiro, 10-Aug-2015.)
|
β’ ((π΄ β β β§ π β β β§ (π΄βπ) β β€) β π΄ β β€) |
|
Theorem | expnprm 12353 |
A second or higher power of a rational number is not a prime number. Or
by contraposition, the n-th root of a prime number is not rational.
Suggested by Norm Megill. (Contributed by Mario Carneiro,
10-Aug-2015.)
|
β’ ((π΄ β β β§ π β (β€β₯β2))
β Β¬ (π΄βπ) β
β) |
|
Theorem | oddprmdvds 12354* |
Every positive integer which is not a power of two is divisible by an
odd prime number. (Contributed by AV, 6-Aug-2021.)
|
β’ ((πΎ β β β§ Β¬ βπ β β0
πΎ = (2βπ)) β βπ β (β β
{2})π β₯ πΎ) |
|
5.2.9 Pocklington's theorem
|
|
Theorem | prmpwdvds 12355 |
A relation involving divisibility by a prime power. (Contributed by
Mario Carneiro, 2-Mar-2014.)
|
β’ (((πΎ β β€ β§ π· β β€) β§ (π β β β§ π β β) β§ (π· β₯ (πΎ Β· (πβπ)) β§ Β¬ π· β₯ (πΎ Β· (πβ(π β 1))))) β (πβπ) β₯ π·) |
|
Theorem | pockthlem 12356 |
Lemma for pockthg 12357. (Contributed by Mario Carneiro,
2-Mar-2014.)
|
β’ (π β π΄ β β) & β’ (π β π΅ β β) & β’ (π β π΅ < π΄)
& β’ (π β π = ((π΄ Β· π΅) + 1)) & β’ (π β π β β) & β’ (π β π β₯ π)
& β’ (π β π β β) & β’ (π β (π pCnt π΄) β β) & β’ (π β πΆ β β€) & β’ (π β ((πΆβ(π β 1)) mod π) = 1) & β’ (π β (((πΆβ((π β 1) / π)) β 1) gcd π) = 1) β β’ (π β (π pCnt π΄) β€ (π pCnt (π β 1))) |
|
Theorem | pockthg 12357* |
The generalized Pocklington's theorem. If π β 1 = π΄ Β· π΅ where
π΅
< π΄, then π is
prime if and only if for every prime factor
π of π΄, there is an π₯ such that
π₯β(π β 1) = 1( mod π) and
gcd (π₯β((π β 1) / π) β 1, π) = 1. (Contributed by Mario
Carneiro, 2-Mar-2014.)
|
β’ (π β π΄ β β) & β’ (π β π΅ β β) & β’ (π β π΅ < π΄)
& β’ (π β π = ((π΄ Β· π΅) + 1)) & β’ (π β βπ β β (π β₯ π΄ β βπ₯ β β€ (((π₯β(π β 1)) mod π) = 1 β§ (((π₯β((π β 1) / π)) β 1) gcd π) = 1))) β β’ (π β π β β) |
|
Theorem | pockthi 12358 |
Pocklington's theorem, which gives a sufficient criterion for a number
π to be prime. This is the preferred
method for verifying large
primes, being much more efficient to compute than trial division. This
form has been optimized for application to specific large primes; see
pockthg 12357 for a more general closed-form version.
(Contributed by Mario
Carneiro, 2-Mar-2014.)
|
β’ π β β & β’ πΊ β β & β’ π = (πΊ Β· π)
& β’ π = (π + 1) & β’ π· β β & β’ πΈ β β & β’ π΄ β β & β’ π = (π· Β· (πβπΈ)) & β’ π· < (πβπΈ)
& β’ ((π΄βπ) mod π) = (1 mod π)
& β’ (((π΄βπΊ) β 1) gcd π) = 1 β β’ π β β |
|
5.2.10 Infinite primes theorem
|
|
Theorem | infpnlem1 12359* |
Lemma for infpn 12361. The smallest divisor (greater than 1)
π
of
π!
+ 1 is a prime greater than π. (Contributed by NM,
5-May-2005.)
|
β’ πΎ = ((!βπ) + 1) β β’ ((π β β β§ π β β) β (((1 < π β§ (πΎ / π) β β) β§ βπ β β ((1 < π β§ (πΎ / π) β β) β π β€ π)) β (π < π β§ βπ β β ((π / π) β β β (π = 1 β¨ π = π))))) |
|
Theorem | infpnlem2 12360* |
Lemma for infpn 12361. For any positive integer π, there
exists a
prime number π greater than π. (Contributed by NM,
5-May-2005.)
|
β’ πΎ = ((!βπ) + 1) β β’ (π β β β βπ β β (π < π β§ βπ β β ((π / π) β β β (π = 1 β¨ π = π)))) |
|
Theorem | infpn 12361* |
There exist infinitely many prime numbers: for any positive integer
π, there exists a prime number π greater
than π. (See
infpn2 12459 for the equinumerosity version.)
(Contributed by NM,
1-Jun-2006.)
|
β’ (π β β β βπ β β (π < π β§ βπ β β ((π / π) β β β (π = 1 β¨ π = π)))) |
|
Theorem | prmunb 12362* |
The primes are unbounded. (Contributed by Paul Chapman,
28-Nov-2012.)
|
β’ (π β β β βπ β β π < π) |
|
5.2.11 Fundamental theorem of
arithmetic
|
|
Theorem | 1arithlem1 12363* |
Lemma for 1arith 12367. (Contributed by Mario Carneiro,
30-May-2014.)
|
β’ π = (π β β β¦ (π β β β¦ (π pCnt π))) β β’ (π β β β (πβπ) = (π β β β¦ (π pCnt π))) |
|
Theorem | 1arithlem2 12364* |
Lemma for 1arith 12367. (Contributed by Mario Carneiro,
30-May-2014.)
|
β’ π = (π β β β¦ (π β β β¦ (π pCnt π))) β β’ ((π β β β§ π β β) β ((πβπ)βπ) = (π pCnt π)) |
|
Theorem | 1arithlem3 12365* |
Lemma for 1arith 12367. (Contributed by Mario Carneiro,
30-May-2014.)
|
β’ π = (π β β β¦ (π β β β¦ (π pCnt π))) β β’ (π β β β (πβπ):ββΆβ0) |
|
Theorem | 1arithlem4 12366* |
Lemma for 1arith 12367. (Contributed by Mario Carneiro,
30-May-2014.)
|
β’ π = (π β β β¦ (π β β β¦ (π pCnt π))) & β’ πΊ = (π¦ β β β¦ if(π¦ β β, (π¦β(πΉβπ¦)), 1)) & β’ (π β πΉ:ββΆβ0) & β’ (π β π β β) & β’ ((π β§ (π β β β§ π β€ π)) β (πΉβπ) = 0) β β’ (π β βπ₯ β β πΉ = (πβπ₯)) |
|
Theorem | 1arith 12367* |
Fundamental theorem of arithmetic, where a prime factorization is
represented as a sequence of prime exponents, for which only finitely
many primes have nonzero exponent. The function π maps
the set of
positive integers one-to-one onto the set of prime factorizations
π
. (Contributed by Paul Chapman,
17-Nov-2012.) (Proof shortened
by Mario Carneiro, 30-May-2014.)
|
β’ π = (π β β β¦ (π β β β¦ (π pCnt π))) & β’ π
= {π β (β0
βπ β) β£ (β‘π β β) β
Fin} β β’ π:ββ1-1-ontoβπ
|
|
Theorem | 1arith2 12368* |
Fundamental theorem of arithmetic, where a prime factorization is
represented as a finite monotonic 1-based sequence of primes. Every
positive integer has a unique prime factorization. Theorem 1.10 in
[ApostolNT] p. 17. This is Metamath
100 proof #80. (Contributed by
Paul Chapman, 17-Nov-2012.) (Revised by Mario Carneiro,
30-May-2014.)
|
β’ π = (π β β β¦ (π β β β¦ (π pCnt π))) & β’ π
= {π β (β0
βπ β) β£ (β‘π β β) β
Fin} β β’ βπ§ β β β!π β π
(πβπ§) = π |
|
5.2.12 Lagrange's four-square
theorem
|
|
Syntax | cgz 12369 |
Extend class notation with the set of gaussian integers.
|
class β€[i] |
|
Definition | df-gz 12370 |
Define the set of gaussian integers, which are complex numbers whose real
and imaginary parts are integers. (Note that the [i] is actually
part of the symbol token and has no independent meaning.) (Contributed by
Mario Carneiro, 14-Jul-2014.)
|
β’ β€[i] = {π₯ β β β£ ((ββπ₯) β β€ β§
(ββπ₯) β
β€)} |
|
Theorem | elgz 12371 |
Elementhood in the gaussian integers. (Contributed by Mario Carneiro,
14-Jul-2014.)
|
β’ (π΄ β β€[i] β (π΄ β β β§
(ββπ΄) β
β€ β§ (ββπ΄) β β€)) |
|
Theorem | gzcn 12372 |
A gaussian integer is a complex number. (Contributed by Mario Carneiro,
14-Jul-2014.)
|
β’ (π΄ β β€[i] β π΄ β β) |
|
Theorem | zgz 12373 |
An integer is a gaussian integer. (Contributed by Mario Carneiro,
14-Jul-2014.)
|
β’ (π΄ β β€ β π΄ β β€[i]) |
|
Theorem | igz 12374 |
i is a gaussian integer. (Contributed by Mario
Carneiro,
14-Jul-2014.)
|
β’ i β β€[i] |
|
Theorem | gznegcl 12375 |
The gaussian integers are closed under negation. (Contributed by Mario
Carneiro, 14-Jul-2014.)
|
β’ (π΄ β β€[i] β -π΄ β
β€[i]) |
|
Theorem | gzcjcl 12376 |
The gaussian integers are closed under conjugation. (Contributed by Mario
Carneiro, 14-Jul-2014.)
|
β’ (π΄ β β€[i] β
(ββπ΄) β
β€[i]) |
|
Theorem | gzaddcl 12377 |
The gaussian integers are closed under addition. (Contributed by Mario
Carneiro, 14-Jul-2014.)
|
β’ ((π΄ β β€[i] β§ π΅ β β€[i]) β (π΄ + π΅) β β€[i]) |
|
Theorem | gzmulcl 12378 |
The gaussian integers are closed under multiplication. (Contributed by
Mario Carneiro, 14-Jul-2014.)
|
β’ ((π΄ β β€[i] β§ π΅ β β€[i]) β (π΄ Β· π΅) β β€[i]) |
|
Theorem | gzreim 12379 |
Construct a gaussian integer from real and imaginary parts. (Contributed
by Mario Carneiro, 16-Jul-2014.)
|
β’ ((π΄ β β€ β§ π΅ β β€) β (π΄ + (i Β· π΅)) β β€[i]) |
|
Theorem | gzsubcl 12380 |
The gaussian integers are closed under subtraction. (Contributed by Mario
Carneiro, 14-Jul-2014.)
|
β’ ((π΄ β β€[i] β§ π΅ β β€[i]) β (π΄ β π΅) β β€[i]) |
|
Theorem | gzabssqcl 12381 |
The squared norm of a gaussian integer is an integer. (Contributed by
Mario Carneiro, 16-Jul-2014.)
|
β’ (π΄ β β€[i] β ((absβπ΄)β2) β
β0) |
|
Theorem | 4sqlem5 12382 |
Lemma for 4sq (not yet proved here). (Contributed by Mario Carneiro,
15-Jul-2014.)
|
β’ (π β π΄ β β€) & β’ (π β π β β) & β’ π΅ = (((π΄ + (π / 2)) mod π) β (π / 2)) β β’ (π β (π΅ β β€ β§ ((π΄ β π΅) / π) β β€)) |
|
Theorem | 4sqlem6 12383 |
Lemma for 4sq (not yet proved here) . (Contributed by Mario Carneiro,
15-Jul-2014.)
|
β’ (π β π΄ β β€) & β’ (π β π β β) & β’ π΅ = (((π΄ + (π / 2)) mod π) β (π / 2)) β β’ (π β (-(π / 2) β€ π΅ β§ π΅ < (π / 2))) |
|
Theorem | 4sqlem7 12384 |
Lemma for 4sq (not yet proved here) . (Contributed by Mario Carneiro,
15-Jul-2014.)
|
β’ (π β π΄ β β€) & β’ (π β π β β) & β’ π΅ = (((π΄ + (π / 2)) mod π) β (π / 2)) β β’ (π β (π΅β2) β€ (((πβ2) / 2) / 2)) |
|
Theorem | 4sqlem8 12385 |
Lemma for 4sq (not yet proved here) . (Contributed by Mario Carneiro,
15-Jul-2014.)
|
β’ (π β π΄ β β€) & β’ (π β π β β) & β’ π΅ = (((π΄ + (π / 2)) mod π) β (π / 2)) β β’ (π β π β₯ ((π΄β2) β (π΅β2))) |
|
Theorem | 4sqlem9 12386 |
Lemma for 4sq (not yet proved here) . (Contributed by Mario Carneiro,
15-Jul-2014.)
|
β’ (π β π΄ β β€) & β’ (π β π β β) & β’ π΅ = (((π΄ + (π / 2)) mod π) β (π / 2)) & β’ ((π β§ π) β (π΅β2) = 0)
β β’ ((π β§ π) β (πβ2) β₯ (π΄β2)) |
|
Theorem | 4sqlem10 12387 |
Lemma for 4sq (not yet proved here) . (Contributed by Mario Carneiro,
16-Jul-2014.)
|
β’ (π β π΄ β β€) & β’ (π β π β β) & β’ π΅ = (((π΄ + (π / 2)) mod π) β (π / 2)) & β’ ((π β§ π) β ((((πβ2) / 2) / 2) β (π΅β2)) =
0) β β’ ((π β§ π) β (πβ2) β₯ ((π΄β2) β (((πβ2) / 2) / 2))) |
|
Theorem | 4sqlem1 12388* |
Lemma for 4sq (not yet proved here) . The set π is the set of all
numbers that are expressible as a sum of four squares. Our goal is to
show that π = β0; here we show
one subset direction. (Contributed
by Mario Carneiro, 14-Jul-2014.)
|
β’ π = {π β£ βπ₯ β β€ βπ¦ β β€ βπ§ β β€ βπ€ β β€ π = (((π₯β2) + (π¦β2)) + ((π§β2) + (π€β2)))} β β’ π β
β0 |
|
Theorem | 4sqlem2 12389* |
Lemma for 4sq (not yet proved here) . Change bound variables in π.
(Contributed by Mario Carneiro, 14-Jul-2014.)
|
β’ π = {π β£ βπ₯ β β€ βπ¦ β β€ βπ§ β β€ βπ€ β β€ π = (((π₯β2) + (π¦β2)) + ((π§β2) + (π€β2)))} β β’ (π΄ β π β βπ β β€ βπ β β€ βπ β β€ βπ β β€ π΄ = (((πβ2) + (πβ2)) + ((πβ2) + (πβ2)))) |
|
Theorem | 4sqlem3 12390* |
Lemma for 4sq (not yet proved here) . Sufficient condition to be in
π. (Contributed by Mario Carneiro,
14-Jul-2014.)
|
β’ π = {π β£ βπ₯ β β€ βπ¦ β β€ βπ§ β β€ βπ€ β β€ π = (((π₯β2) + (π¦β2)) + ((π§β2) + (π€β2)))} β β’ (((π΄ β β€ β§ π΅ β β€) β§ (πΆ β β€ β§ π· β β€)) β (((π΄β2) + (π΅β2)) + ((πΆβ2) + (π·β2))) β π) |
|
Theorem | 4sqlem4a 12391* |
Lemma for 4sqlem4 12392. (Contributed by Mario Carneiro,
14-Jul-2014.)
|
β’ π = {π β£ βπ₯ β β€ βπ¦ β β€ βπ§ β β€ βπ€ β β€ π = (((π₯β2) + (π¦β2)) + ((π§β2) + (π€β2)))} β β’ ((π΄ β β€[i] β§ π΅ β β€[i]) β
(((absβπ΄)β2) +
((absβπ΅)β2))
β π) |
|
Theorem | 4sqlem4 12392* |
Lemma for 4sq (not yet proved here) . We can express the four-square
property more compactly in terms of gaussian integers, because the
norms of gaussian integers are exactly sums of two squares.
(Contributed by Mario Carneiro, 14-Jul-2014.)
|
β’ π = {π β£ βπ₯ β β€ βπ¦ β β€ βπ§ β β€ βπ€ β β€ π = (((π₯β2) + (π¦β2)) + ((π§β2) + (π€β2)))} β β’ (π΄ β π β βπ’ β β€[i] βπ£ β β€[i] π΄ = (((absβπ’)β2) + ((absβπ£)β2))) |
|
Theorem | mul4sqlem 12393* |
Lemma for mul4sq 12394: algebraic manipulations. The extra
assumptions
involving π would let us know not just that the
product is a sum
of squares, but also that it preserves divisibility by π.
(Contributed by Mario Carneiro, 14-Jul-2014.)
|
β’ π = {π β£ βπ₯ β β€ βπ¦ β β€ βπ§ β β€ βπ€ β β€ π = (((π₯β2) + (π¦β2)) + ((π§β2) + (π€β2)))} & β’ (π β π΄ β β€[i]) & β’ (π β π΅ β β€[i]) & β’ (π β πΆ β β€[i]) & β’ (π β π· β β€[i]) & β’ π = (((absβπ΄)β2) + ((absβπ΅)β2)) & β’ π = (((absβπΆ)β2) + ((absβπ·)β2)) & β’ (π β π β β) & β’ (π β ((π΄ β πΆ) / π) β β€[i]) & β’ (π β ((π΅ β π·) / π) β β€[i]) & β’ (π β (π / π) β
β0) β β’ (π β ((π / π) Β· (π / π)) β π) |
|
Theorem | mul4sq 12394* |
Euler's four-square identity: The product of two sums of four squares
is also a sum of four squares. This is usually quoted as an explicit
formula involving eight real variables; we save some time by working
with complex numbers (gaussian integers) instead, so that we only have
to work with four variables, and also hiding the actual formula for the
product in the proof of mul4sqlem 12393. (For the curious, the explicit
formula that is used is
( β£ π β£ β2 + β£ π β£ β2)( β£ π β£ β2 + β£
π β£ β2) =
β£ πβ Β· π + π Β· πβ β£ β2 + β£ πβ Β· π β π Β· πβ β£ β2.)
(Contributed by Mario Carneiro, 14-Jul-2014.)
|
β’ π = {π β£ βπ₯ β β€ βπ¦ β β€ βπ§ β β€ βπ€ β β€ π = (((π₯β2) + (π¦β2)) + ((π§β2) + (π€β2)))} β β’ ((π΄ β π β§ π΅ β π) β (π΄ Β· π΅) β π) |
|
5.3 Cardinality of real and complex number
subsets
|
|
5.3.1 Countability of integers and
rationals
|
|
Theorem | oddennn 12395 |
There are as many odd positive integers as there are positive integers.
(Contributed by Jim Kingdon, 11-May-2022.)
|
β’ {π§ β β β£ Β¬ 2 β₯
π§} β
β |
|
Theorem | evenennn 12396 |
There are as many even positive integers as there are positive integers.
(Contributed by Jim Kingdon, 12-May-2022.)
|
β’ {π§ β β β£ 2 β₯ π§} β
β |
|
Theorem | xpnnen 12397 |
The Cartesian product of the set of positive integers with itself is
equinumerous to the set of positive integers. (Contributed by NM,
1-Aug-2004.)
|
β’ (β Γ β) β
β |
|
Theorem | xpomen 12398 |
The Cartesian product of omega (the set of ordinal natural numbers) with
itself is equinumerous to omega. Exercise 1 of [Enderton] p. 133.
(Contributed by NM, 23-Jul-2004.)
|
β’ (Ο Γ Ο) β
Ο |
|
Theorem | xpct 12399 |
The cartesian product of two sets dominated by Ο
is dominated by
Ο. (Contributed by Thierry Arnoux,
24-Sep-2017.)
|
β’ ((π΄ βΌ Ο β§ π΅ βΌ Ο) β (π΄ Γ π΅) βΌ Ο) |
|
Theorem | unennn 12400 |
The union of two disjoint countably infinite sets is countably infinite.
(Contributed by Jim Kingdon, 13-May-2022.)
|
β’ ((π΄ β β β§ π΅ β β β§ (π΄ β© π΅) = β
) β (π΄ βͺ π΅) β β) |