Bertrand's postulate (a prime n < p ≤ 2n, Erdős's proof)
import /Freeks/8.book
Bertrand's postulate: for \(n \ge 1\), there is a prime in the range \(n < p \le 2n\), call it \(p\) (Erdős's proof). We use neither reals nor logarithms, and write inequalities in natural-number form (comparison of powers, \(a \le b\)). The foundation is 8.book (divisibility, primes, Euclid's lemma, factorials).
Outline: (1) an estimate of the central binomial coefficient \(\binom{2n}{n}\) (\(4^n \le 2n\binom{2n}{n}\)); (2) an upper bound for the product of primes (the product of primes at most \(x\) is at most \(4^x\)); (3) for a prime \(p\), the \(p\)-adic exponent (in the form of Legendre's formula: if \(p^e \mid \binom{2n}{n}\) then \(p^e \le 2n\), and if \(2n/3 < p \le n\) then \(p \nmid \binom{2n}{n}\)); (4) the factorization \(\binom{2n}{n} = A B\) (the part from prime factors at most \(\sqrt{2n}\), \(A \le (2n)^{\sqrt{2n}}\), and the rest \(B \le 4^{2n/3}\)); (5) a numerical estimate gives a contradiction (\(n \ge 703\)); (6) \(n < 703\) is checked with Landau's sequence of primes 2, 3, 5, 7, 13, 23, 43, 83, 163, 317, 631, 709.
1 The central binomial coefficient
The foundation is 8.book (divisibility, primes, Euclid's lemma, factorials). A lower bound for the central binomial coefficient \(\binom{2n}{n}\): \(4^n \le 2n \binom{2n}{n}\), and the odd version \(\binom{2m+1}{m} \le 4^m\). Both follow by induction on the ratio formulas that come from \(\binom{n}{k}\,k!\,(n-k)! = n!\) (such as \((n+1)\binom{2n+2}{n+1} = 2(2n+1)\binom{2n}{n}\)).
!∈𝕄 …
\(n \in \mathbb{M} \Longrightarrow n ! \in \mathbb{M}\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,!𝕄 ,⋅𝕄:D ,⋅0XL2C …
\(n \in \mathbb{M} \Longrightarrow ( n + 1 ) \cdot ( ( ( n + 1 ) + ( n + 1 ) ) \mathrm{C} ( n + 1 ) ) = ( 2 \cdot ( ( n + n ) + 1 ) ) \cdot ( ( n + n ) \mathrm{C} n )\) \(\blacktriangleleft\) Lbf ,Lc∈ ,!∈𝕄 ,L!0 ,Lcl ,𝕄⋅≠0 ,!𝕄 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,AxℤL4lo …
\(n \in \mathbb{M} \Longrightarrow 4 ^ { n + 1 } \le ( 2 \cdot ( n + 1 ) ) \cdot ( ( ( n + 1 ) + ( n + 1 ) ) \mathrm{C} ( n + 1 ) )\) \(\blacktriangleleft\) L2C ,Lbd1 ,Lc∈ ,LP ,LC0 ,Lnn ,↑s𝕄 ,↑0X ,↑∈𝕄 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,AxℤL4mid …
\(m \in \mathbb{M} \Longrightarrow ( m + ( m + 1 ) ) \mathrm{C} m \le 4 ^ m\) \(\blacktriangleleft\) Lrec ,Lbd2 ,Lc∈ ,LC0 ,↑s𝕄 ,↑0X ,↑∈𝕄 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ2 Primes and factorials
A prime \(p\) divides \(M !\) if and only if \(p \le M\) (by induction on \(M\), Euclid's lemma).
LfM …
\(p \in \mathbb{P} , M \in \mathbb{M} , p \le M \Longrightarrow p \mid M !\) \(\blacktriangleleft\) ∣⋅R ,∣M ,!𝕄 ,!∈𝕄 ,Lℙ ,L≤s ,L<0 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,AxℤLMf …
\(p \in \mathbb{P} , M \in \mathbb{M} , p \mid M ! \Longrightarrow p \le M\) \(\blacktriangleleft\) Euclid ,∣≤ ,ℙ∤1 ,!𝕄 ,!∈𝕄 ,Lℙ ,L≤s ,^×. ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ3 A squarefree number divisible by the product of its prime factors
If \(b\) is squarefree (for \(q \ge 2\), \(q^2 \nmid b\)) and all prime factors of \(b\) divide \(C\), then \(b \mid C\). By strong induction on \(b\): remove a prime factor \(p\) (\(b = p u\)); from \(u \mid C\), \(p \mid C\), and \(p \nmid u\), we get \(p u \mid C\).
Lsqd …
\(b , C \in \mathbb{M} , b \neq 0 , \forall q \in \mathbb{M} . ( 2 \le q \Longrightarrow \neg q \cdot q \mid b ) , \forall p \in \mathbb{P} . ( p \mid b \Longrightarrow p \mid C ) \Longrightarrow b \mid C\) \(\blacktriangleleft\) Lpf ,Ebu ,Euclid ,∣M ,∣. ,Lℙ ,∣R ,ℙ.' ,⋅0𝕄 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,Axℤ4 Decomposition into small and large prime factors
A nonzero \(N\) can be written as a product of a number whose prime factors are all at most \(t\), \(A\), and a number whose prime factors are all greater than \(t\), \(B\), that is \(N = AB\) (by strong induction removing prime factors one at a time).
Lsplit …
\(t , N \in \mathbb{M} , N \neq 0 \Longrightarrow \exists A , B \in \mathbb{M} . N = A \cdot B , A \neq 0 , B \neq 0 , \forall p \in \mathbb{P} . ( p \mid A \Longrightarrow p \le t ) , \forall p \in \mathbb{P} . ( p \mid B \Longrightarrow t < p )\) \(\blacktriangleleft\) Lpf ,Ebu ,Euclid ,Lpp ,∣M ,∣. ,Lℙ ,∣R ,ℙ.' ,⋅0𝕄 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,Axℤ5 Powers of 4
\(4^{a+b} = 4^a 4^b\), \(4^n \ne 0\), and if \(a \le b\) then \(4^a \le 4^b\).
L4m …
\(a , b \in \mathbb{M} , a \le b \Longrightarrow 4 ^ a \le 4 ^ b\) \(\blacktriangleleft\) L4a ,L4z ,L≤⋅ ,↑∈𝕄 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ6 The primes in the interval (m+1, 2m+1] divide C(2m+1, m)
A prime with \(m + 1 < p \le 2m + 1\), \(p\), divides \((2m+1)!\) but not \(m!\,(m+1)!\). From \(\binom{2m+1}{m}\, m!\,(m+1)! = (2m+1)!\) and Euclid's lemma, \(p \mid \binom{2m+1}{m}\).
Lpc …
\(p \in \mathbb{P} , m \in \mathbb{M} , m + 1 < p , p \le m + ( m + 1 ) \Longrightarrow p \mid ( m + ( m + 1 ) ) \mathrm{C} m\) \(\blacktriangleleft\) Lbf ,LfM ,LMf ,Euclid ,Lc∈ ,!∈𝕄 ,Lℙ ,L<≤ ,L≤s ,ℙ.' ,∣R ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,AxℤLd4 …
\(m , D \in \mathbb{M} , D \neq 0 , \forall q \in \mathbb{M} . ( 2 \le q \Longrightarrow \neg q \cdot q \mid D ) , \forall p \in \mathbb{P} . ( p \mid D \Longrightarrow m + 1 < p , p \le m + ( m + 1 ) ) \Longrightarrow D \le 4 ^ m\) \(\blacktriangleleft\) Lsqd ,Lpc ,LCz ,L4mid ,∣≤ ,Lc∈ ,L≤t ,^×. ,Lℙ ,⋅0𝕄 ,⋅0X ,⋅𝕄:D ,↑s𝕄 ,↑0X ,↑∈𝕄 ,\(\mathbb{W}.\) ,AxℤLmm …
\(A , D , a , b \in \mathbb{M} , A \le a , D \le b \Longrightarrow A \cdot D \le a \cdot b\) \(\blacktriangleleft\) L⋅≤ ,L≤t ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ7 An upper bound for the product of primes
A squarefree number whose prime factors are all at most \(x\), \(B\), satisfies \(B \le 4^x\) (the natural-number form of \(\prod_{p \le x} p < 4^x\)). By strong induction on \(x\): an even \(x\) is not prime, so this is the same as for \(x-1\). For odd \(x = 2m+1\), split \(B\) into the part with prime factors at most \(m+1\), \(A\), and the part with prime factors only in \(m+1 < p \le 2m+1\), \(D\); then \(A \le 4^{m+1}\) (induction) and \(D \mid \binom{2m+1}{m} \le 4^m\).
Lprim …
\(x \in \mathbb{M} \Longrightarrow \forall B \in \mathbb{M} . ( B \neq 0 , \forall q \in \mathbb{M} . ( 2 \le q \Longrightarrow \neg q \cdot q \mid B ) , \forall p \in \mathbb{P} . ( p \mid B \Longrightarrow p \le x ) \Longrightarrow B \le 4 ^ x )\) \(\blacktriangleleft\) Lcs ,A0 ,A2 ,Aodd ,Aev ,Lnp ,L<+1 ,L<+k ,Lℙ ,⋅𝕄:D ,⋅0X ,↑s𝕄 ,↑0X ,↑∈𝕄 ,\(\mathbb{W}.\) ,Axℤ8 Powers of a prime p and factorials
Preparation for counting the exponent of \(p\) in \(p \mid m!\). First, the general sum of exponents \(x^{a+b} = x^a x^b\).
Lleg …
\(p \in \mathbb{P} \Longrightarrow \forall m \in \mathbb{M} . \forall a , r \in \mathbb{M} . ( m = p \cdot a + r , r < p \Longrightarrow \exists u \in \mathbb{M} . m ! = ( ( p ^ a ) \cdot ( a ! ) ) \cdot u , \neg p \mid u )\) \(\blacktriangleleft\) LlegA ,LlegB ,Lℙ ,Lz0 ,𝕄⋅≠0 ,𝕄0-' ,𝕄0' ,Pinj ,ℙ∤1 ,!𝕄 ,↑0X ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ9 The p-adic exponent of a factorial (in the form of Legendre's formula)
Write \(A! = p^{s+w}\,x\) and \((a!)^2 = p^s\,y\) (\(p \nmid x,\ p \nmid y\)) as \(\Phi(A, a, w)\) (in \(A!\), the exponent of \(p\) exceeds that in \((a!)^2\) by \(w\)). If \(A < p\) and \(a < p\), then \(w = 0\).
Lphi …
\(p \in \mathbb{P} , A , a , B , b , R , r , w , e \in \mathbb{M} , A = p \cdot B + R , R < p , a = p \cdot b + r , r < p , B = ( b + b ) + e , \exists s , x , y \in \mathbb{M} . B ! = ( p ^ { s + w } ) \cdot x , ( b ! \cdot b ! ) = ( p ^ s ) \cdot y , \neg p \mid x , \neg p \mid y \Longrightarrow \exists s , x , y \in \mathbb{M} . A ! = ( p ^ { s + ( e + w ) } ) \cdot x , ( a ! \cdot a ! ) = ( p ^ s ) \cdot y , \neg p \mid x , \neg p \mid y\) \(\blacktriangleleft\) Lphx ,Lleg ,Lℙ ,+𝕄:2 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ10 Choosing the quotient and remainder
If \(n = 2a\) or \(2a + 1\) and \(a = pb + r\), then the quotient of \(n\) by \(p\) is \(2b\) or \(2b + 1\) (according as \(2r + \delta\) is below or at least \(p\)).
Lstr …
\(p \in \mathbb{P} , n , a \in \mathbb{M} , ( n = a + a \mathbin{\rm o\!r} n = ( a + a ) + 1 ) , p \le n \Longrightarrow \exists B , b , R , r , e \in \mathbb{M} . n = p \cdot B + R , R < p , a = p \cdot b + r , r < p , B = ( b + b ) + e , ( e = 0 \mathbin{\rm o\!r} e = 1 ) , B \neq 0\) \(\blacktriangleleft\) Ldiv ,Rs1 ,Rs2 ,Rs3 ,Rs4 ,Ltot ,Lℙ ,Lz0 ,𝕄0' ,𝕄0-' ,⋅0𝕄 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ11 Computing with powers (power of a product, power of a power, monotonicity in the base)
12 Stripping off as many copies of a prime q as possible
A nonzero \(N\) can be written, for a prime \(q\), as \(N = q^e M\) (\(q \nmid M\)) (by strong induction on \(N\): if \(q \mid N\) then \(N = q N'\) with \(N' < N\)).
Lstrip …
\(q \in \mathbb{P} , N \in \mathbb{M} , N \neq 0 \Longrightarrow \exists e , M \in \mathbb{M} . N = ( q ^ e ) \cdot M , \neg q \mid M\) \(\blacktriangleleft\) Ebu ,Lℙ ,∣. ,∣R ,↑s𝕄 ,↑0X ,↑∈𝕄 ,ℙ.' ,⋅0𝕄 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ13 If all prime factors are at most j and all prime powers are at most M, then \(A \le M^j\)
If all prime factors of \(A \ne 0\) are at most \(j\) and the prime powers dividing \(A\), \(q^e\), are all at most \(M\), then \(A \le M^j\) (by induction on \(j\): if the prime \(j+1\) divides \(A\), strip it off by Lstrip as \(A = (j+1)^e A'\)).
Lsm …
\(M \in \mathbb{M} , 1 \le M \Longrightarrow \forall j \in \mathbb{M} . \forall A \in \mathbb{M} . ( A \neq 0 , \forall q \in \mathbb{P} . \forall e \in \mathbb{M} . ( ( q ^ e ) \mid A \Longrightarrow q ^ e \le M ) , \forall p \in \mathbb{P} . ( p \mid A \Longrightarrow p \le j ) \Longrightarrow A \le M ^ j )\) \(\blacktriangleleft\) Lstrip ,Lmm ,Lpf ,Lge2 ,Lℙ ,∣M ,∣T ,∣. ,∣R ,Lpp ,L≤s ,L≤⋅ ,L≤0 ,L≤t ,↑s𝕄 ,↑0X ,↑∈𝕄 ,⋅0𝕄 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ14 Legendre's formula: \(p^w \le n\)
If \(1 \le n = 2a\) or \(2a + 1\), then \(\Phi(n, a, w)\) holds for some \(w\) with \(p^w \le n\) (by strong induction on \(n\): if \(n < p\) then \(w = 0\); otherwise apply induction to the quotient by \(p\), \(B\) (\(2b\) or \(2b + 1\)) and get \(w = e + w'\)).
Lclm …
\(p \in \mathbb{P} \Longrightarrow \forall n \in \mathbb{M} . \forall a \in \mathbb{M} . ( ( n = a + a \mathbin{\rm o\!r} n = ( a + a ) + 1 ) , 1 \le n \Longrightarrow \exists w \in \mathbb{M} . \exists s , x , y \in \mathbb{M} . n ! = ( p ^ { s + w } ) \cdot x , ( a ! \cdot a ! ) = ( p ^ s ) \cdot y , \neg p \mid x , \neg p \mid y , p ^ w \le n )\) \(\blacktriangleleft\) Lbase ,Lstr ,Lphi ,Lbnd ,Ebu ,L<≤ ,L≤< ,L≤t ,L1≤ ,Ltot ,Lℙ ,^×. ,⋅𝕄:D ,⋅0X ,↑0X ,↑∈𝕄 ,\(\mathbb{W}.\) ,Axℤ15 Lemmas using powers of p
16 Estimate for cubes
If \(F \le ZG\), \(G^3 \le H\), \(F^3 = HF\), and \(H \ne 0\), then \(F \le Z^3\) (divide \(F^3 \le Z^3 G^3 \le Z^3 H\) by \(H\)).
LC3 …
\(F , Z , G , H \in \mathbb{M} , F \le Z \cdot G , G \cdot ( G \cdot G ) \le H , F \cdot ( F \cdot F ) = H \cdot F , H \neq 0 \Longrightarrow F \le Z \cdot ( Z \cdot Z )\) \(\blacktriangleleft\) Lcnc ,Lmm ,L⋅< ,L⋅≤ ,L≤t ,Ltot ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ17 Preparation for the numerical estimate
If \(a + 1 \le v\) then \(a (v + 1) + 1 \le v^2\).
Lndy …
\(t \in \mathbb{M} \Longrightarrow \exists j \in \mathbb{M} . 3 \le j , ( ( 3 \cdot 10 ) + 8 ) + t \le 4 ^ j , ( ( 10 + 2 ) \cdot j ) + 2 \le ( ( 3 \cdot 10 ) + 8 ) + t\) \(\blacktriangleleft\) Lpm ,L+≤ ,Lle1 ,L12 ,L4m ,L4a ,L4z ,L+1≤ ,L≤t ,L≤1 ,L≤r ,L≤⋅ ,Lpm ,Lmon ,L<s ,↑s𝕄 ,↑0X ,↑∈𝕄 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,AxℤLnum …
\(n , v \in \mathbb{M} , ( ( 3 \cdot 10 ) + 7 ) \le v , v \cdot v \le n + n , n + n < ( v + 1 ) \cdot ( v + 1 ) \Longrightarrow ( n + n ) ^ { ( ( v + 1 ) + ( v + 1 ) ) + ( v + 1 ) } < 4 ^ n\) \(\blacktriangleleft\) Lndy ,Lsq12 ,Lbm ,Lxy ,Lpow ,Lpq ,L4s ,Lhalf ,L≤c ,Lmon ,L≤t ,L<≤ ,L≤< ,Ltot ,↑∈𝕄 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ18 Prime factors of the central binomial coefficient
A prime power dividing \(\binom{2n}{n}\), \(p^e\), is at most \(2n\) (from the form \(\Phi\) of Legendre's formula).
Lvp …
\(p \in \mathbb{P} , n , e \in \mathbb{M} , 1 \le n , p ^ e \mid ( n + n ) \mathrm{C} n \Longrightarrow p ^ e \le n + n\) \(\blacktriangleleft\) ℙ.' ,Lclm ,Lcy ,Lpw ,Lpmn ,Lbf ,Lc∈ ,Lℙ ,L≤t ,L≤⋅ ,↑∈𝕄 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,AxℤLw0 …
\(p \in \mathbb{P} , n \in \mathbb{M} , 3 \le n , p \le n , n + n < ( p + p ) + p \Longrightarrow \neg p \mid ( n + n ) \mathrm{C} n\) \(\blacktriangleleft\) Lbase ,Lphi ,Lcy ,Lcmp ,Lmon ,Lx2 ,Lc∈ ,Lℙ ,∣M ,L<≤ ,L≤< ,L≤t ,↑0X ,↑∈𝕄 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ19 Locations of the prime factors of the central binomial coefficient
\(\binom{2n}{n} \ne 0\). Its prime factors \(p\) are at most \(2n\). If there is no prime in \(n < p \le 2n\), then \(p \le n\), and moreover \(3p \le 2n\).
20 Estimates for the parts separated by division
E3a …
\(n , v , x , A , B \in \mathbb{M} , 3 \le n , \neg \exists q \in \mathbb{P} . n < q , q \le n + n , 1 \le n , n + n < ( v + 1 ) \cdot ( v + 1 ) , ( x + x ) + x \le n + n , n + n < ( ( x + x ) + x ) + 3 , ( n + n ) \mathrm{C} n = A \cdot B , A \neq 0 , B \neq 0 , \forall p \in \mathbb{P} . ( p \mid A \Longrightarrow p \le v ) , \forall p \in \mathbb{P} . ( p \mid B \Longrightarrow v < p ) \Longrightarrow ( n + n ) \mathrm{C} n \le ( ( n + n ) ^ v ) \cdot ( 4 ^ x )\) \(\blacktriangleleft\) Lmm ,E3iii ,E3iv ,Lc∈ ,↑∈𝕄 ,+𝕄:2 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ21 Collecting into an inequality of powers of 4
From \(\binom{2n}{n} \le (2n)^v 4^x\) and \(3x \le 2n\), we get \(4^n \le (2n)^{3(v+1)}\) (take the cube of \(4^n \le 2n \binom{2n}{n}\) and divide by \(4^{3x} \le 4^{2n}\)).
E3b …
\(n , v , x \in \mathbb{M} , 1 \le n , ( n + n ) \mathrm{C} n \le ( ( n + n ) ^ v ) \cdot ( 4 ^ x ) , ( x + x ) + x \le n + n \Longrightarrow 4 ^ n \le ( n + n ) ^ { ( ( v + 1 ) + ( v + 1 ) ) + ( v + 1 ) }\) \(\blacktriangleleft\) L4lo ,L4m ,L4z ,L4a ,Lpow ,LC3 ,Lx2 ,L⋅≤ ,L≤t ,Lc∈ ,↑∈𝕄 ,↑s𝕄 ,↑0X ,𝕄0-' ,𝕄0' ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,AxℤLmain1 …
\(n , v , x , A , B \in \mathbb{M} , 3 \le n , \neg \exists q \in \mathbb{P} . n < q , q \le n + n , 1 \le n , n + n < ( v + 1 ) \cdot ( v + 1 ) , ( x + x ) + x \le n + n , n + n < ( ( x + x ) + x ) + 3 , ( n + n ) \mathrm{C} n = A \cdot B , A \neq 0 , B \neq 0 , \forall p \in \mathbb{P} . ( p \mid A \Longrightarrow p \le v ) , \forall p \in \mathbb{P} . ( p \mid B \Longrightarrow v < p ) , v \cdot v \le n + n \Longrightarrow 4 ^ n \le ( n + n ) ^ { ( ( v + 1 ) + ( v + 1 ) ) + ( v + 1 ) }\) \(\blacktriangleleft\) E3a ,E3b ,Lc∈ ,+𝕄:2 ,\(\mathbb{W}.\) ,Axℤ22 Integer part of a square root
For any \(N\), \(w^2 \le N < (w+1)^2\) holds for some \(w\) (by induction on \(N\)).
23 Bertrand's postulate (for large n)
Suppose \(n \ge 3\) and there is no prime in \(n < p \le 2n\), and let \(v^2 \le 2n < (v+1)^2\) with \(50 \le v\); then we get a contradiction.
Lmain2 …
\(n , v , x \in \mathbb{M} , 3 \le n , \neg \exists q \in \mathbb{P} . n < q , q \le n + n , ( ( 3 \cdot 10 ) + 7 ) \le v , v \cdot v \le n + n , n + n < ( v + 1 ) \cdot ( v + 1 ) , ( x + x ) + x \le n + n , n + n < ( ( x + x ) + x ) + 3 \Longrightarrow {\perp}\) \(\blacktriangleleft\) Lmain1 ,Lnum ,Lsplit ,LC0 ,Lc∈ ,+𝕄:2 ,↑s𝕄 ,↑0X ,↑∈𝕄 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,AxℤLmain …
\(n , v \in \mathbb{M} , 3 \le n , \neg \exists q \in \mathbb{P} . n < q , q \le n + n , ( ( 3 \cdot 10 ) + 7 ) \le v , v \cdot v \le n + n , n + n < ( v + 1 ) \cdot ( v + 1 ) \Longrightarrow {\perp}\) \(\blacktriangleleft\) Lmain2 ,Ldiv ,Lx3 ,Lpm ,+𝕄:2 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ24 Bertrand's postulate (n ≥ 703)
If \(n \ge 703\), there is a prime in the range \(n < p \le 2n\), call it \(p\) (Erdős's proof). \(703 = 37 \cdot 19\): since \(2n \ge 37 \cdot 38 \ge 37^2\), for \(v^2 \le 2n < (v+1)^2\), \(v\) is at least \(37\).
Bertrand703 …
\(n \in \mathbb{M} , ( ( ( 3 \cdot 10 ) + 7 ) \cdot ( ( 1 \cdot 10 ) + 9 ) ) \le n \Longrightarrow \exists p \in \mathbb{P} . n < p , p \le n + n\) \(\blacktriangleleft\) Lmain ,𝕄⋅≠0 ,Lmon ,Lle1 ,L⋅+ ,L⋅≤ ,Lsqrt ,Lmm ,L≤⋅ ,L≤t ,L≤< ,L<≤ ,Ltot ,L+1≤ ,+𝕄:2 ,⋅𝕄:D ,⋅0X ,\(\mathbb{W}.\) ,Axℤ25 Checking small primes (trial division and Landau's sequence of primes)
A decimal number \(a b c \ldots\) is written in Horner form \(((a \cdot 10 + b) \cdot 10 + c) \ldots\) (the digits in the DB go up to 10). A prime \(P\) is checked by \(P < (B+1)^2\) and, for each \(2 \le d \le B\), \(d\), by \(d \nmid P\) (digit-by-digit division for each \(d\): from \(N = dQ + r\), \(10N + c = d(10Q + e) + s\)).
26 Checking small primes (trial division)
A number with 3 or more digits is written in decimal form \(((a \cdot 10 + b) \cdot 10 + c) \ldots\). From \(N = dQ + r\) and \(10 r + c = d e + s\), we get \(10 N + c = d (10 Q + e) + s\) (digit-by-digit division).
Pr3 …
\(3 \in \mathbb{P}\) \(\blacktriangleleft\) Lfin ,Lnd3 ,Lnlt ,Lbase1 ,Lstep ,Ldg ,Lle1 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤPr5 …
\(5 \in \mathbb{P}\) \(\blacktriangleleft\) Lfin ,Lnd3 ,Lnlt ,Lbase1 ,Lstep ,Ldg ,Lle1 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤPr7 …
\(7 \in \mathbb{P}\) \(\blacktriangleleft\) Lfin ,Lnd3 ,Lnlt ,Lbase1 ,Lstep ,Ldg ,Lle1 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤPr13 …
\(( 1 \cdot 10 + 3 ) \in \mathbb{P}\) \(\blacktriangleleft\) Lfin ,Lnd3 ,Lnlt ,Lbase1 ,Lstep ,Ldg ,Lle1 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤPr23 …
\(( 2 \cdot 10 + 3 ) \in \mathbb{P}\) \(\blacktriangleleft\) Lfin ,Lnd3 ,Lnlt ,Lbase1 ,Lstep ,Ldg ,Lle1 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤPr43 …
\(( 4 \cdot 10 + 3 ) \in \mathbb{P}\) \(\blacktriangleleft\) Lfin ,Lnd3 ,Lnlt ,Lbase1 ,Lstep ,Ldg ,Lle1 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤPr83 …
\(( 8 \cdot 10 + 3 ) \in \mathbb{P}\) \(\blacktriangleleft\) Lfin ,Lnd3 ,Lnlt ,Lbase1 ,Lstep ,Ldg ,Lle1 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤPr163 …
\(( ( 1 \cdot 10 + 6 ) \cdot 10 + 3 ) \in \mathbb{P}\) \(\blacktriangleleft\) Lfin ,Lnd3 ,Lnlt ,Lbase1 ,Lstep ,Ldg ,Lle1 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤPr317 …
\(( ( 3 \cdot 10 + 1 ) \cdot 10 + 7 ) \in \mathbb{P}\) \(\blacktriangleleft\) Lfin ,Lnd3 ,Lnlt ,Lbase1 ,Lstep ,Ldg ,Lle1 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤPr631 …
\(( ( 6 \cdot 10 + 3 ) \cdot 10 + 1 ) \in \mathbb{P}\) \(\blacktriangleleft\) Lfin ,Lnd3 ,Lnlt ,Lbase1 ,Lstep ,Ldg ,Lle1 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤPr709 …
\(( ( 7 \cdot 10 + 0 ) \cdot 10 + 9 ) \in \mathbb{P}\) \(\blacktriangleleft\) Lfin ,Lnd3 ,Lnlt ,Lbase1 ,Lstep ,Ldg ,Lle1 ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤLstep2 …
\(n , q , m \in \mathbb{M} , q \le n , n < m , m \le q + q \Longrightarrow n < m , m \le n + n\) \(\blacktriangleleft\) Lmon ,L≤t ,\(\mathbb{W}.\) ,AxℤLland …
\(n \in \mathbb{M} , 1 \le n , n < ( ( 7 \cdot 10 + 0 ) \cdot 10 + 9 ) \Longrightarrow \exists p \in \mathbb{P} . n < p , p \le n + n\) \(\blacktriangleleft\) Lstep2 ,Lle1 ,L2ℙ ,Pr3 ,Pr5 ,Pr7 ,Pr13 ,Pr23 ,Pr43 ,Pr83 ,Pr163 ,Pr317 ,Pr631 ,Pr709 ,Ltot ,L+1≤ ,L≤anti ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤNz …
\(( ( 7 \cdot 10 + 0 ) \cdot 10 + 9 ) = ( ( ( 3 \cdot 10 ) + 7 ) \cdot ( ( 1 \cdot 10 ) + 9 ) ) + 6\) \(\blacktriangleleft\) Ldg ,Ldig ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤBertrand's postulate (main theorem): for \(n \ge 1\), there is a prime in the range \(n < p \le 2n\), call it \(p\).
BertrandP …
\(\forall n \in \mathbb{M} ^{\times} . \exists p \in \mathbb{P} . n < p , p \le n + n\) \(\blacktriangleleft\) Bertrand ,L1≤ ,^×. ,\(\mathbb{W}.\) ,Axℤ