5 #80 Prime factorization forget
A natural number at least 2 can be written as a product of an ascending sequence of primes (existence), and the way of writing it is unique (uniqueness). The product is given by the sequence of partial products \(P\) (\(P(0) = 1\), \(P(i+1) = P(i) \cdot f(i+1)\)), and we write \(n = P(k)\).
5.1 Existence
Among the divisors of \(n \ge 2\) there is a smallest one that is at least 2 (strong induction). It is prime.
Lmin …
\(n \in \mathbb{M} , 2 \le n \Longrightarrow \exists p \in \mathbb{M} . 2 \le p , p \mid n , \forall e \in \mathbb{M} . ( 2 \le e , e \mid n \Longrightarrow p \le e )\) \(\blacktriangleleft\) ∣R ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤLmp …
\(n , p \in \mathbb{M} , 2 \le p , p \mid n , \forall e \in \mathbb{M} . ( 2 \le e , e \mid n \Longrightarrow p \le e ) \Longrightarrow p \in \mathbb{P}\) \(\blacktriangleleft\) ∣T ,∣≤ ,Lge2 ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤWe take as an axiom of this section that there is a sequence obtained by adding one term at the head of a sequence (SEQ, SEQ0).
SEQ0 …
\(p \in \mathbb{P} \Longrightarrow \exists g \, \exists Q \, ( g ( 1 ) = p , Q ( 0 ) = 1 , Q ( 1 ) = p , \forall i \in \mathbb{M} . Q ( i + 1 ) = Q ( i ) \cdot g ( i + 1 ) )\) SEQ …
\(\exists g \, \exists Q \, ( g ( 1 ) = p , Q ( 0 ) = 1 , \forall i \in \mathbb{M} . Q ( i + 1 ) = p \cdot P ( i ) , \forall i \in \mathbb{M} ^{\times} . g ( i + 1 ) = f ( i ) )\) Taking only the first \(j\) terms still gives an ascending sequence of primes (\(j \le l\)). Each term divides the product of the sequence.
If the first \(k+1\) terms form an ascending sequence of primes, then \(P(k+1) = P(k) \cdot f(k+1)\), and both the product and the terms are natural numbers.
Sstep …
\(K \in \mathbb{M} , P ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le K \Longrightarrow P ( i + 1 ) = P ( i ) \cdot f ( i + 1 ) ) , k \in \mathbb{M} , k + 1 \le K , f \mathbb{P}{\rm asc} ( k + 1 ) \Longrightarrow P ( k ) \in \mathbb{M} , f ( k + 1 ) \in \mathbb{M} , P ( k + 1 ) = P ( k ) \cdot f ( k + 1 )\) \(\blacktriangleleft\) SΠ ,Sres ,SPH ,L≤1 ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤThe \(i\)-th term of the sequence divides the product of the first \(k\) terms, \(P(k)\) (\(i \le k\)).
Sdiv …
\(K \in \mathbb{M} , P ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le K \Longrightarrow P ( i + 1 ) = P ( i ) \cdot f ( i + 1 ) ) , i \in \mathbb{M} ^{\times} \Longrightarrow \forall k \in \mathbb{M} . ( ( k \le K , f \mathbb{P}{\rm asc} k , i \le k ) \Longrightarrow f ( i ) \mid P ( k ) )\) \(\blacktriangleleft\) Sstep ,SPH ,∣M ,∣⋅R ,ℙasc. ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤAdding the smallest prime \(p\) at the head keeps it ascending (\(p \le f(1)\)).
Sasc …
\(p \in \mathbb{P} , k \in \mathbb{M} , f \mathbb{P}{\rm asc} k , ( 1 \le k \Longrightarrow p \le f ( 1 ) ) , g ( 1 ) = p , \forall i \in \mathbb{M} ^{\times} . g ( i + 1 ) = f ( i ) \Longrightarrow g \mathbb{P}{\rm asc} ( k + 1 )\) \(\blacktriangleleft\) ℙasc. ,Lℙ ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤIf \(n = pu\) (\(p \ge 2\), \(u \neq 0\)) then \(u < n\). Dividing by the smallest divisor \(p\) gives a smaller number.
Eb …
\(p , u , n \in \mathbb{M} , 2 \le p , u \neq 0 , n = p \cdot u \Longrightarrow u < n\) \(\blacktriangleleft\) Lz0 ,L<+k ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤA single prime \(p\) is the product of an ascending sequence of primes of length 1.
Ep1 …
\(p \in \mathbb{P} \Longrightarrow \exists k \in \mathbb{M} . \exists f \, \exists P \, ( f \mathbb{P}{\rm asc} k , P ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le k \Longrightarrow P ( i + 1 ) = P ( i ) \cdot f ( i + 1 ) ) , p = P ( k ) )\) \(\blacktriangleleft\) SEQ0 ,Lo1 ,ℙasc. ,Lℙ ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤThe smallest divisor \(p\) is at most a prime factor of \(u = P(k)\) (\(\mid n\)). Build a sequence by adding \(p\) at the head.
Ed …
\(p \in \mathbb{P} , k , u , n \in \mathbb{M} , f \mathbb{P}{\rm asc} k , P ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le k \Longrightarrow P ( i + 1 ) = P ( i ) \cdot f ( i + 1 ) ) , u = P ( k ) , n = p \cdot u , \forall e \in \mathbb{M} . ( 2 \le e , e \mid n \Longrightarrow p \le e ) \Longrightarrow \exists k \in \mathbb{M} . \exists f \, \exists P \, ( f \mathbb{P}{\rm asc} k , P ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le k \Longrightarrow P ( i + 1 ) = P ( i ) \cdot f ( i + 1 ) ) , n = P ( k ) )\) \(\blacktriangleleft\) SEQ ,Sstep ,Sdiv ,Sasc ,SPH ,∣T ,∣⋅R ,Lℙ ,ℙasc. ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤFor \(n\) at least 2: if every number from 2 up to below \(n\) is a product of an ascending sequence of primes, so is \(n\). With the smallest divisor \(p\) (a prime), \(n = pu\) and \(u < n\).
Estep …
\(n \in \mathbb{M} , \forall z \in \mathbb{M} . ( z < n \Longrightarrow ( 2 \le z \Longrightarrow \exists k \in \mathbb{M} . \exists f \, \exists P \, ( f \mathbb{P}{\rm asc} k , P ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le k \Longrightarrow P ( i + 1 ) = P ( i ) \cdot f ( i + 1 ) ) , z = P ( k ) ) ) ) , 2 \le n \Longrightarrow \exists k \in \mathbb{M} . \exists f \, \exists P \, ( f \mathbb{P}{\rm asc} k , P ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le k \Longrightarrow P ( i + 1 ) = P ( i ) \cdot f ( i + 1 ) ) , n = P ( k ) )\) \(\blacktriangleleft\) Lmin ,Lmp ,Eb ,Ed ,Ep1 ,Lge2 ,ℙasc. ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤA natural number at least 2 can be written as a product of an ascending sequence of primes (strong induction on \(n\)).
Exist …
\(n \in \mathbb{M} , 2 \le n \Longrightarrow \exists k \in \mathbb{M} . \exists f \, \exists P \, ( f \mathbb{P}{\rm asc} k , P ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le k \Longrightarrow P ( i + 1 ) = P ( i ) \cdot f ( i + 1 ) ) , n = P ( k ) )\) \(\blacktriangleleft\) Estep ,ℙasc. ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,Axℤ5.2 Uniqueness
If the products of ascending sequences of primes \(f\) (length \(k\)) and \(g\) (length \(l\)) are equal, then the lengths and the terms are equal.
The divisibility relation between primes is equality. A product of primes is not 1. Later terms are larger.
If the products of ascending sequences of primes \(f\) (length \(k\)) and \(g\) (length \(l\)) are equal, then the lengths and the terms are equal.
The divisibility relation between primes is equality. A product of primes is not 1. Later terms are larger.
UMono …
\(l \in \mathbb{M} , f \mathbb{P}{\rm asc} ( l + 1 ) , j \in \mathbb{M} ^{\times} , j \le l + 1 \Longrightarrow f ( j ) \le f ( l + 1 )\) \(\blacktriangleleft\) SMono ,SPH ,ℙasc. ,ℙ.' ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤThe last term \(a = f(K+1)\) divides the product of \(g\), so it equals some term of \(g\) and is at most \(g(L+1)\). Likewise \(g(L+1) \le f(K+1)\).
Ule …
\(K , L \in \mathbb{M} , f \mathbb{P}{\rm asc} ( K + 1 ) , g \mathbb{P}{\rm asc} ( L + 1 ) , P ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le ( K + 1 ) \Longrightarrow P ( i + 1 ) = P ( i ) \cdot f ( i + 1 ) ) , Q ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le ( L + 1 ) \Longrightarrow Q ( i + 1 ) = Q ( i ) \cdot g ( i + 1 ) ) , P ( K + 1 ) = Q ( L + 1 ) \Longrightarrow f ( K + 1 ) \le g ( L + 1 )\) \(\blacktriangleleft\) Sdiv ,SEuclid ,Lℙ ,UMono ,SPH ,ℙasc. ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤSince the last terms are equal, they can be cancelled from the products (\(a \neq 0\)).
Ustep …
\(K , L \in \mathbb{M} , f \mathbb{P}{\rm asc} ( K + 1 ) , g \mathbb{P}{\rm asc} ( L + 1 ) , P ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le ( K + 1 ) \Longrightarrow P ( i + 1 ) = P ( i ) \cdot f ( i + 1 ) ) , Q ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le ( L + 1 ) \Longrightarrow Q ( i + 1 ) = Q ( i ) \cdot g ( i + 1 ) ) , P ( K + 1 ) = Q ( L + 1 ) \Longrightarrow f ( K + 1 ) = g ( L + 1 ) , P ( K ) = Q ( L )\) \(\blacktriangleleft\) Ule ,Sstep ,SPH ,Lcl ,Lℙ ,ℙasc. ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤInduction on the length \(k\).
Uniq …
\(k , l \in \mathbb{M} , f \mathbb{P}{\rm asc} k , g \mathbb{P}{\rm asc} l , P ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le k \Longrightarrow P ( i + 1 ) = P ( i ) \cdot f ( i + 1 ) ) , Q ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le l \Longrightarrow Q ( i + 1 ) = Q ( i ) \cdot g ( i + 1 ) ) , P ( k ) = Q ( l ) \Longrightarrow k = l , \forall i \in \mathbb{M} ^{\times} . ( i \le k \Longrightarrow f ( i ) = g ( i ) )\) \(\blacktriangleleft\) Ustep ,Une1 ,Sres ,Sstep ,SPH ,ℙasc. ,Lℙ ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤFundamental theorem of arithmetic: a natural number at least 2 can be written as a product of an ascending sequence of primes, and that sequence is unique (both length and terms).
\(n \in \mathbb{M} , 2 \le n \Longrightarrow \exists k \in \mathbb{M} . \exists f \, \exists P \, ( f \mathbb{P}{\rm asc} k , P ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le k \Longrightarrow P ( i + 1 ) = P ( i ) \cdot f ( i + 1 ) ) , n = P ( k ) , \forall l \in \mathbb{M} . \forall g \, \forall Q \, ( ( g \mathbb{P}{\rm asc} l , Q ( 0 ) = 1 , \forall i \in \mathbb{M} . ( i + 1 \le l \Longrightarrow Q ( i + 1 ) = Q ( i ) \cdot g ( i + 1 ) ) , n = Q ( l ) ) \Longrightarrow k = l , \forall i \in \mathbb{M} ^{\times} . ( i \le k \Longrightarrow f ( i ) = g ( i ) ) ) )\) \(\blacktriangleleft\) Exist ,Uniq ,ℙasc. ,ℙ.' ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,Axℤ