defpred S1[ Nat] means Product (Sgm { p where p is prime Element of NAT : p <= $1 + 1 } ) <= 4 to_power $1;
let n be Element of NAT ; Product (Sgm { p where p is prime Element of NAT : p <= n + 1 } ) <= 4 to_power n
A1:
for m being Nat st ( for n being Nat st n < m holds
S1[n] ) holds
S1[m]
proof
let m be
Nat;
( ( for n being Nat st n < m holds
S1[n] ) implies S1[m] )
assume A2:
for
n being
Nat st
n < m holds
S1[
n]
;
S1[m]
per cases
( m < 1 or m = 1 or m > 1 )
by XXREAL_0:1;
suppose A11:
m > 1
;
S1[m]per cases
( not m + 1 is even or m + 1 is even )
;
suppose
not
m + 1 is
even
;
S1[m]then consider k being
Element of
NAT such that A12:
m + 1
= (2 * k) + 1
by ABIAN:9;
A13:
((2 * k) + 1) choose k <= 2
to_power (2 * k)
set Y =
{ p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) } ;
set SY =
Sgm { p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) } ;
A24:
rng (Sgm { p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) } ) c= REAL
;
set X =
{ p where p is prime Element of NAT : p <= k + 1 } ;
set SX =
Sgm { p where p is prime Element of NAT : p <= k + 1 } ;
rng (Sgm { p where p is prime Element of NAT : p <= k + 1 } ) c= REAL
;
then reconsider SX =
Sgm { p where p is prime Element of NAT : p <= k + 1 } as
FinSequence of
REAL by FINSEQ_1:def 4;
m / 2
= (k * 2) / 2
by A12;
then A25:
Product SX <= 4
to_power k
by A2, A11, XREAL_1:216;
for
y being
set st
y in { p where p is prime Element of NAT : p <= k + 1 } holds
y in Seg (k + 1)
then A27:
{ p where p is prime Element of NAT : p <= k + 1 } c= Seg (k + 1)
by TARSKI:def 3;
for
k9 being
Element of
NAT st
k9 in dom SX holds
SX . k9 > 0
then A29:
0 <= Product SX
by Th42;
reconsider SY =
Sgm { p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) } as
FinSequence of
REAL by A24, FINSEQ_1:def 4;
A30:
for
a,
b being
Element of
NAT st
a in { p where p is prime Element of NAT : p <= k + 1 } &
b in { p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) } holds
a < b
for
y being
set st
y in { p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) } holds
y in Seg ((2 * k) + 1)
then A33:
{ p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) } c= Seg ((2 * k) + 1)
by TARSKI:def 3;
A34:
for
k9 being
Element of
NAT st
k9 in dom SY holds
SY . k9 > 0
A36:
Product SY <= ((2 * k) + 1) choose k
proof
set r =
((2 * k) + 1) - k;
set b =
((2 * k) + 1) choose k;
reconsider SY =
SY as
FinSequence of
NAT ;
set a =
Product SY;
A37:
k + 1
>= 0
;
then reconsider r =
((2 * k) + 1) - k as
Element of
NAT ;
A38:
(((2 * k) + 1) - k) + k >= 0 + k
by A37, XREAL_1:6;
then
((2 * k) + 1) choose k = (((2 * k) + 1) !) / ((k !) * (r !))
by NEWTON:def 3;
then A39:
((2 * k) + 1) choose k > 0
;
A40:
for
p being
Element of
NAT st
p is
prime holds
p |-count (Product SY) <= p |-count (((2 * k) + 1) choose k)
proof
then
{ p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) } c= SetPrimes
by TARSKI:def 3;
then
rng SY c= SetPrimes
by A33, FINSEQ_1:def 13;
then reconsider SY =
SY as
FinSequence of
SetPrimes by FINSEQ_1:def 4;
let p be
Element of
NAT ;
( p is prime implies p |-count (Product SY) <= p |-count (((2 * k) + 1) choose k) )
assume A41:
p is
prime
;
p |-count (Product SY) <= p |-count (((2 * k) + 1) choose k)
A42:
rng (Sgm { p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) } ) = { p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) }
by A33, FINSEQ_1:def 13;
A43:
(
p divides Product SY implies (
p > k + 1 &
p <= (2 * k) + 1 ) )
per cases
( ( p > k + 1 & p <= (2 * k) + 1 ) or not p > k + 1 or not p <= (2 * k) + 1 )
;
suppose A44:
(
p > k + 1 &
p <= (2 * k) + 1 )
;
p |-count (Product SY) <= p |-count (((2 * k) + 1) choose k)set c =
(k !) * (r !);
A45:
(((2 * k) + 1) choose k) * ((k !) * (r !)) =
((((2 * k) + 1) !) / ((k !) * (r !))) * ((k !) * (r !))
by A38, NEWTON:def 3
.=
((2 * k) + 1) !
by XCMPLX_1:87
;
A46:
p divides ((2 * k) + 1) choose k
p <> 1
by A41, INT_2:def 4;
then
p |-count (((2 * k) + 1) choose k) <> 0
by A39, A46, NAT_3:27;
then
0 + 1
< (p |-count (((2 * k) + 1) choose k)) + 1
by XREAL_1:6;
then A49:
1
<= p |-count (((2 * k) + 1) choose k)
by NAT_1:13;
then A50:
{ p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) } c= SetPrimes
by TARSKI:def 3;
p in rng SY
by A41, A42, A44;
hence
p |-count (Product SY) <= p |-count (((2 * k) + 1) choose k)
by A33, A41, A50, A49, Th44;
verum end; end;
end;
Product SY is non
empty Nat
by A34, Th42;
then
ex
n being
Element of
NAT st
((2 * k) + 1) choose k = (Product SY) * n
by A39, A40, Th20;
then
Product SY divides ((2 * k) + 1) choose k
by NAT_D:def 3;
hence
Product SY <= ((2 * k) + 1) choose k
by A39, NAT_D:7;
verum
end;
for
y being
set holds
(
y in { p where p is prime Element of NAT : p <= (2 * k) + 1 } iff
y in { p where p is prime Element of NAT : p <= k + 1 } \/ { p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) } )
then A58:
{ p where p is prime Element of NAT : p <= (2 * k) + 1 } = { p where p is prime Element of NAT : p <= k + 1 } \/ { p where p is prime Element of NAT : ( p > k + 1 & p <= (2 * k) + 1 ) }
by TARSKI:1;
2
to_power (2 * k) =
2
to_power (k + k)
.=
(2 to_power k) * (2 to_power k)
by POWER:27
.=
(2 * 2) to_power k
by POWER:30
;
then A59:
Product SY <= 4
to_power k
by A36, A13, XXREAL_0:2;
0 < Product SY
by A34, Th42;
then
(
Product (SX ^ SY) = (Product SX) * (Product SY) &
(Product SX) * (Product SY) <= (4 to_power k) * (4 to_power k) )
by A25, A59, A29, RVSUM_1:97, XREAL_1:66;
then
Product (SX ^ SY) <= 4
to_power (k + k)
by POWER:27;
hence
S1[
m]
by A12, A27, A33, A58, A30, FINSEQ_3:42;
verum end; end; end; end;
end;
for n being Nat holds S1[n]
from NAT_1:sch 4(A1);
hence
Product (Sgm { p where p is prime Element of NAT : p <= n + 1 } ) <= 4 to_power n
; verum