ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  1arith GIF version

Theorem 1arith 12402
Description: 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.)
Hypotheses
Ref Expression
1arith.1 𝑀 = (𝑛 ∈ ℕ ↦ (𝑝 ∈ ℙ ↦ (𝑝 pCnt 𝑛)))
1arith.2 𝑅 = {𝑒 ∈ (ℕ0𝑚 ℙ) ∣ (𝑒 “ ℕ) ∈ Fin}
Assertion
Ref Expression
1arith 𝑀:ℕ–1-1-onto𝑅
Distinct variable groups:   𝑒,𝑛,𝑝   𝑒,𝑀   𝑅,𝑛
Allowed substitution hints:   𝑅(𝑒,𝑝)   𝑀(𝑛,𝑝)

Proof of Theorem 1arith
Dummy variables 𝑓 𝑔 𝑘 𝑞 𝑥 𝑦 𝑗 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 prmex 12148 . . . . . 6 ℙ ∈ V
21mptex 5763 . . . . 5 (𝑝 ∈ ℙ ↦ (𝑝 pCnt 𝑛)) ∈ V
3 1arith.1 . . . . 5 𝑀 = (𝑛 ∈ ℕ ↦ (𝑝 ∈ ℙ ↦ (𝑝 pCnt 𝑛)))
42, 3fnmpti 5363 . . . 4 𝑀 Fn ℕ
531arithlem3 12400 . . . . . . 7 (𝑥 ∈ ℕ → (𝑀𝑥):ℙ⟶ℕ0)
6 nn0ex 9213 . . . . . . . 8 0 ∈ V
76, 1elmap 6704 . . . . . . 7 ((𝑀𝑥) ∈ (ℕ0𝑚 ℙ) ↔ (𝑀𝑥):ℙ⟶ℕ0)
85, 7sylibr 134 . . . . . 6 (𝑥 ∈ ℕ → (𝑀𝑥) ∈ (ℕ0𝑚 ℙ))
9 1zzd 9311 . . . . . . . 8 (𝑥 ∈ ℕ → 1 ∈ ℤ)
10 nnz 9303 . . . . . . . 8 (𝑥 ∈ ℕ → 𝑥 ∈ ℤ)
119, 10fzfigd 10464 . . . . . . 7 (𝑥 ∈ ℕ → (1...𝑥) ∈ Fin)
12 ffn 5384 . . . . . . . . . 10 ((𝑀𝑥):ℙ⟶ℕ0 → (𝑀𝑥) Fn ℙ)
13 elpreima 5656 . . . . . . . . . 10 ((𝑀𝑥) Fn ℙ → (𝑞 ∈ ((𝑀𝑥) “ ℕ) ↔ (𝑞 ∈ ℙ ∧ ((𝑀𝑥)‘𝑞) ∈ ℕ)))
145, 12, 133syl 17 . . . . . . . . 9 (𝑥 ∈ ℕ → (𝑞 ∈ ((𝑀𝑥) “ ℕ) ↔ (𝑞 ∈ ℙ ∧ ((𝑀𝑥)‘𝑞) ∈ ℕ)))
1531arithlem2 12399 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑀𝑥)‘𝑞) = (𝑞 pCnt 𝑥))
1615eleq1d 2258 . . . . . . . . . . 11 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (((𝑀𝑥)‘𝑞) ∈ ℕ ↔ (𝑞 pCnt 𝑥) ∈ ℕ))
17 prmz 12146 . . . . . . . . . . . . 13 (𝑞 ∈ ℙ → 𝑞 ∈ ℤ)
18 id 19 . . . . . . . . . . . . 13 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ)
19 dvdsle 11885 . . . . . . . . . . . . 13 ((𝑞 ∈ ℤ ∧ 𝑥 ∈ ℕ) → (𝑞𝑥𝑞𝑥))
2017, 18, 19syl2anr 290 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (𝑞𝑥𝑞𝑥))
21 pcelnn 12356 . . . . . . . . . . . . 13 ((𝑞 ∈ ℙ ∧ 𝑥 ∈ ℕ) → ((𝑞 pCnt 𝑥) ∈ ℕ ↔ 𝑞𝑥))
2221ancoms 268 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑞 pCnt 𝑥) ∈ ℕ ↔ 𝑞𝑥))
23 prmnn 12145 . . . . . . . . . . . . . 14 (𝑞 ∈ ℙ → 𝑞 ∈ ℕ)
24 nnuz 9595 . . . . . . . . . . . . . 14 ℕ = (ℤ‘1)
2523, 24eleqtrdi 2282 . . . . . . . . . . . . 13 (𝑞 ∈ ℙ → 𝑞 ∈ (ℤ‘1))
26 elfz5 10049 . . . . . . . . . . . . 13 ((𝑞 ∈ (ℤ‘1) ∧ 𝑥 ∈ ℤ) → (𝑞 ∈ (1...𝑥) ↔ 𝑞𝑥))
2725, 10, 26syl2anr 290 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (𝑞 ∈ (1...𝑥) ↔ 𝑞𝑥))
2820, 22, 273imtr4d 203 . . . . . . . . . . 11 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑞 pCnt 𝑥) ∈ ℕ → 𝑞 ∈ (1...𝑥)))
2916, 28sylbid 150 . . . . . . . . . 10 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (((𝑀𝑥)‘𝑞) ∈ ℕ → 𝑞 ∈ (1...𝑥)))
3029expimpd 363 . . . . . . . . 9 (𝑥 ∈ ℕ → ((𝑞 ∈ ℙ ∧ ((𝑀𝑥)‘𝑞) ∈ ℕ) → 𝑞 ∈ (1...𝑥)))
3114, 30sylbid 150 . . . . . . . 8 (𝑥 ∈ ℕ → (𝑞 ∈ ((𝑀𝑥) “ ℕ) → 𝑞 ∈ (1...𝑥)))
3231ssrdv 3176 . . . . . . 7 (𝑥 ∈ ℕ → ((𝑀𝑥) “ ℕ) ⊆ (1...𝑥))
33 elfznn 10086 . . . . . . . . . . . . . 14 (𝑗 ∈ (1...𝑥) → 𝑗 ∈ ℕ)
3433adantl 277 . . . . . . . . . . . . 13 ((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) → 𝑗 ∈ ℕ)
35 prmdc 12165 . . . . . . . . . . . . 13 (𝑗 ∈ ℕ → DECID 𝑗 ∈ ℙ)
3634, 35syl 14 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) → DECID 𝑗 ∈ ℙ)
3736adantr 276 . . . . . . . . . . 11 (((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) ∧ 𝑗 ∈ ℙ) → DECID 𝑗 ∈ ℙ)
385ad2antrr 488 . . . . . . . . . . . . . 14 (((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) ∧ 𝑗 ∈ ℙ) → (𝑀𝑥):ℙ⟶ℕ0)
39 simpr 110 . . . . . . . . . . . . . 14 (((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) ∧ 𝑗 ∈ ℙ) → 𝑗 ∈ ℙ)
4038, 39ffvelcdmd 5673 . . . . . . . . . . . . 13 (((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) ∧ 𝑗 ∈ ℙ) → ((𝑀𝑥)‘𝑗) ∈ ℕ0)
4140nn0zd 9404 . . . . . . . . . . . 12 (((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) ∧ 𝑗 ∈ ℙ) → ((𝑀𝑥)‘𝑗) ∈ ℤ)
42 elnndc 9644 . . . . . . . . . . . 12 (((𝑀𝑥)‘𝑗) ∈ ℤ → DECID ((𝑀𝑥)‘𝑗) ∈ ℕ)
4341, 42syl 14 . . . . . . . . . . 11 (((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) ∧ 𝑗 ∈ ℙ) → DECID ((𝑀𝑥)‘𝑗) ∈ ℕ)
44 dcan2 936 . . . . . . . . . . 11 (DECID 𝑗 ∈ ℙ → (DECID ((𝑀𝑥)‘𝑗) ∈ ℕ → DECID (𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ)))
4537, 43, 44sylc 62 . . . . . . . . . 10 (((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) ∧ 𝑗 ∈ ℙ) → DECID (𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ))
46 simpr 110 . . . . . . . . . . . . 13 (((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) ∧ ¬ 𝑗 ∈ ℙ) → ¬ 𝑗 ∈ ℙ)
4746intnanrd 933 . . . . . . . . . . . 12 (((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) ∧ ¬ 𝑗 ∈ ℙ) → ¬ (𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ))
4847olcd 735 . . . . . . . . . . 11 (((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) ∧ ¬ 𝑗 ∈ ℙ) → ((𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ) ∨ ¬ (𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ)))
49 df-dc 836 . . . . . . . . . . 11 (DECID (𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ) ↔ ((𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ) ∨ ¬ (𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ)))
5048, 49sylibr 134 . . . . . . . . . 10 (((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) ∧ ¬ 𝑗 ∈ ℙ) → DECID (𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ))
51 exmiddc 837 . . . . . . . . . . 11 (DECID 𝑗 ∈ ℙ → (𝑗 ∈ ℙ ∨ ¬ 𝑗 ∈ ℙ))
5236, 51syl 14 . . . . . . . . . 10 ((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) → (𝑗 ∈ ℙ ∨ ¬ 𝑗 ∈ ℙ))
5345, 50, 52mpjaodan 799 . . . . . . . . 9 ((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) → DECID (𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ))
54 elpreima 5656 . . . . . . . . . . . 12 ((𝑀𝑥) Fn ℙ → (𝑗 ∈ ((𝑀𝑥) “ ℕ) ↔ (𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ)))
555, 12, 543syl 17 . . . . . . . . . . 11 (𝑥 ∈ ℕ → (𝑗 ∈ ((𝑀𝑥) “ ℕ) ↔ (𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ)))
5655dcbid 839 . . . . . . . . . 10 (𝑥 ∈ ℕ → (DECID 𝑗 ∈ ((𝑀𝑥) “ ℕ) ↔ DECID (𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ)))
5756adantr 276 . . . . . . . . 9 ((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) → (DECID 𝑗 ∈ ((𝑀𝑥) “ ℕ) ↔ DECID (𝑗 ∈ ℙ ∧ ((𝑀𝑥)‘𝑗) ∈ ℕ)))
5853, 57mpbird 167 . . . . . . . 8 ((𝑥 ∈ ℕ ∧ 𝑗 ∈ (1...𝑥)) → DECID 𝑗 ∈ ((𝑀𝑥) “ ℕ))
5958ralrimiva 2563 . . . . . . 7 (𝑥 ∈ ℕ → ∀𝑗 ∈ (1...𝑥)DECID 𝑗 ∈ ((𝑀𝑥) “ ℕ))
60 ssfidc 6964 . . . . . . 7 (((1...𝑥) ∈ Fin ∧ ((𝑀𝑥) “ ℕ) ⊆ (1...𝑥) ∧ ∀𝑗 ∈ (1...𝑥)DECID 𝑗 ∈ ((𝑀𝑥) “ ℕ)) → ((𝑀𝑥) “ ℕ) ∈ Fin)
6111, 32, 59, 60syl3anc 1249 . . . . . 6 (𝑥 ∈ ℕ → ((𝑀𝑥) “ ℕ) ∈ Fin)
62 cnveq 4819 . . . . . . . . 9 (𝑒 = (𝑀𝑥) → 𝑒 = (𝑀𝑥))
6362imaeq1d 4987 . . . . . . . 8 (𝑒 = (𝑀𝑥) → (𝑒 “ ℕ) = ((𝑀𝑥) “ ℕ))
6463eleq1d 2258 . . . . . . 7 (𝑒 = (𝑀𝑥) → ((𝑒 “ ℕ) ∈ Fin ↔ ((𝑀𝑥) “ ℕ) ∈ Fin))
65 1arith.2 . . . . . . 7 𝑅 = {𝑒 ∈ (ℕ0𝑚 ℙ) ∣ (𝑒 “ ℕ) ∈ Fin}
6664, 65elrab2 2911 . . . . . 6 ((𝑀𝑥) ∈ 𝑅 ↔ ((𝑀𝑥) ∈ (ℕ0𝑚 ℙ) ∧ ((𝑀𝑥) “ ℕ) ∈ Fin))
678, 61, 66sylanbrc 417 . . . . 5 (𝑥 ∈ ℕ → (𝑀𝑥) ∈ 𝑅)
6867rgen 2543 . . . 4 𝑥 ∈ ℕ (𝑀𝑥) ∈ 𝑅
69 ffnfv 5695 . . . 4 (𝑀:ℕ⟶𝑅 ↔ (𝑀 Fn ℕ ∧ ∀𝑥 ∈ ℕ (𝑀𝑥) ∈ 𝑅))
704, 68, 69mpbir2an 944 . . 3 𝑀:ℕ⟶𝑅
7115adantlr 477 . . . . . . . 8 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑞 ∈ ℙ) → ((𝑀𝑥)‘𝑞) = (𝑞 pCnt 𝑥))
7231arithlem2 12399 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑀𝑦)‘𝑞) = (𝑞 pCnt 𝑦))
7372adantll 476 . . . . . . . 8 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑞 ∈ ℙ) → ((𝑀𝑦)‘𝑞) = (𝑞 pCnt 𝑦))
7471, 73eqeq12d 2204 . . . . . . 7 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑞 ∈ ℙ) → (((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞) ↔ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
7574ralbidva 2486 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (∀𝑞 ∈ ℙ ((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞) ↔ ∀𝑞 ∈ ℙ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
7631arithlem3 12400 . . . . . . 7 (𝑦 ∈ ℕ → (𝑀𝑦):ℙ⟶ℕ0)
77 ffn 5384 . . . . . . . 8 ((𝑀𝑦):ℙ⟶ℕ0 → (𝑀𝑦) Fn ℙ)
78 eqfnfv 5634 . . . . . . . 8 (((𝑀𝑥) Fn ℙ ∧ (𝑀𝑦) Fn ℙ) → ((𝑀𝑥) = (𝑀𝑦) ↔ ∀𝑞 ∈ ℙ ((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞)))
7912, 77, 78syl2an 289 . . . . . . 7 (((𝑀𝑥):ℙ⟶ℕ0 ∧ (𝑀𝑦):ℙ⟶ℕ0) → ((𝑀𝑥) = (𝑀𝑦) ↔ ∀𝑞 ∈ ℙ ((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞)))
805, 76, 79syl2an 289 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑀𝑥) = (𝑀𝑦) ↔ ∀𝑞 ∈ ℙ ((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞)))
81 nnnn0 9214 . . . . . . 7 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ0)
82 nnnn0 9214 . . . . . . 7 (𝑦 ∈ ℕ → 𝑦 ∈ ℕ0)
83 pc11 12366 . . . . . . 7 ((𝑥 ∈ ℕ0𝑦 ∈ ℕ0) → (𝑥 = 𝑦 ↔ ∀𝑞 ∈ ℙ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
8481, 82, 83syl2an 289 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥 = 𝑦 ↔ ∀𝑞 ∈ ℙ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
8575, 80, 843bitr4d 220 . . . . 5 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑀𝑥) = (𝑀𝑦) ↔ 𝑥 = 𝑦))
8685biimpd 144 . . . 4 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑀𝑥) = (𝑀𝑦) → 𝑥 = 𝑦))
8786rgen2 2576 . . 3 𝑥 ∈ ℕ ∀𝑦 ∈ ℕ ((𝑀𝑥) = (𝑀𝑦) → 𝑥 = 𝑦)
88 dff13 5790 . . 3 (𝑀:ℕ–1-1𝑅 ↔ (𝑀:ℕ⟶𝑅 ∧ ∀𝑥 ∈ ℕ ∀𝑦 ∈ ℕ ((𝑀𝑥) = (𝑀𝑦) → 𝑥 = 𝑦)))
8970, 87, 88mpbir2an 944 . 2 𝑀:ℕ–1-1𝑅
90 eqid 2189 . . . . . 6 (𝑔 ∈ ℕ ↦ if(𝑔 ∈ ℙ, (𝑔↑(𝑓𝑔)), 1)) = (𝑔 ∈ ℕ ↦ if(𝑔 ∈ ℙ, (𝑔↑(𝑓𝑔)), 1))
91 cnveq 4819 . . . . . . . . . . . 12 (𝑒 = 𝑓𝑒 = 𝑓)
9291imaeq1d 4987 . . . . . . . . . . 11 (𝑒 = 𝑓 → (𝑒 “ ℕ) = (𝑓 “ ℕ))
9392eleq1d 2258 . . . . . . . . . 10 (𝑒 = 𝑓 → ((𝑒 “ ℕ) ∈ Fin ↔ (𝑓 “ ℕ) ∈ Fin))
9493, 65elrab2 2911 . . . . . . . . 9 (𝑓𝑅 ↔ (𝑓 ∈ (ℕ0𝑚 ℙ) ∧ (𝑓 “ ℕ) ∈ Fin))
9594simplbi 274 . . . . . . . 8 (𝑓𝑅𝑓 ∈ (ℕ0𝑚 ℙ))
966, 1elmap 6704 . . . . . . . 8 (𝑓 ∈ (ℕ0𝑚 ℙ) ↔ 𝑓:ℙ⟶ℕ0)
9795, 96sylib 122 . . . . . . 7 (𝑓𝑅𝑓:ℙ⟶ℕ0)
9897ad2antrr 488 . . . . . 6 (((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → 𝑓:ℙ⟶ℕ0)
99 simplr 528 . . . . . . 7 (((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → 𝑦 ∈ ℕ)
10099peano2nnd 8965 . . . . . 6 (((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → (𝑦 + 1) ∈ ℕ)
10199adantr 276 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → 𝑦 ∈ ℕ)
102101nnred 8963 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → 𝑦 ∈ ℝ)
103 peano2re 8124 . . . . . . . . . . 11 (𝑦 ∈ ℝ → (𝑦 + 1) ∈ ℝ)
104102, 103syl 14 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → (𝑦 + 1) ∈ ℝ)
10523ad2antrl 490 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → 𝑞 ∈ ℕ)
106105nnred 8963 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → 𝑞 ∈ ℝ)
107102ltp1d 8918 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → 𝑦 < (𝑦 + 1))
108 simprr 531 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → (𝑦 + 1) ≤ 𝑞)
109102, 104, 106, 107, 108ltletrd 8411 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → 𝑦 < 𝑞)
110101nnzd 9405 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → 𝑦 ∈ ℤ)
11117ad2antrl 490 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → 𝑞 ∈ ℤ)
112 zltnle 9330 . . . . . . . . . 10 ((𝑦 ∈ ℤ ∧ 𝑞 ∈ ℤ) → (𝑦 < 𝑞 ↔ ¬ 𝑞𝑦))
113110, 111, 112syl2anc 411 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → (𝑦 < 𝑞 ↔ ¬ 𝑞𝑦))
114109, 113mpbid 147 . . . . . . . 8 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → ¬ 𝑞𝑦)
115 simprl 529 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → 𝑞 ∈ ℙ)
116115biantrurd 305 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → ((𝑓𝑞) ∈ ℕ ↔ (𝑞 ∈ ℙ ∧ (𝑓𝑞) ∈ ℕ)))
11797ad3antrrr 492 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → 𝑓:ℙ⟶ℕ0)
118 ffn 5384 . . . . . . . . . . 11 (𝑓:ℙ⟶ℕ0𝑓 Fn ℙ)
119 elpreima 5656 . . . . . . . . . . 11 (𝑓 Fn ℙ → (𝑞 ∈ (𝑓 “ ℕ) ↔ (𝑞 ∈ ℙ ∧ (𝑓𝑞) ∈ ℕ)))
120117, 118, 1193syl 17 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → (𝑞 ∈ (𝑓 “ ℕ) ↔ (𝑞 ∈ ℙ ∧ (𝑓𝑞) ∈ ℕ)))
121116, 120bitr4d 191 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → ((𝑓𝑞) ∈ ℕ ↔ 𝑞 ∈ (𝑓 “ ℕ)))
122 breq1 4021 . . . . . . . . . . 11 (𝑘 = 𝑞 → (𝑘𝑦𝑞𝑦))
123122rspccv 2853 . . . . . . . . . 10 (∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦 → (𝑞 ∈ (𝑓 “ ℕ) → 𝑞𝑦))
124123ad2antlr 489 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → (𝑞 ∈ (𝑓 “ ℕ) → 𝑞𝑦))
125121, 124sylbid 150 . . . . . . . 8 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → ((𝑓𝑞) ∈ ℕ → 𝑞𝑦))
126114, 125mtod 664 . . . . . . 7 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → ¬ (𝑓𝑞) ∈ ℕ)
127117, 115ffvelcdmd 5673 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → (𝑓𝑞) ∈ ℕ0)
128 elnn0 9209 . . . . . . . . 9 ((𝑓𝑞) ∈ ℕ0 ↔ ((𝑓𝑞) ∈ ℕ ∨ (𝑓𝑞) = 0))
129127, 128sylib 122 . . . . . . . 8 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → ((𝑓𝑞) ∈ ℕ ∨ (𝑓𝑞) = 0))
130129ord 725 . . . . . . 7 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → (¬ (𝑓𝑞) ∈ ℕ → (𝑓𝑞) = 0))
131126, 130mpd 13 . . . . . 6 ((((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ (𝑦 + 1) ≤ 𝑞)) → (𝑓𝑞) = 0)
1323, 90, 98, 100, 1311arithlem4 12401 . . . . 5 (((𝑓𝑅𝑦 ∈ ℕ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → ∃𝑥 ∈ ℕ 𝑓 = (𝑀𝑥))
133 cnvimass 5009 . . . . . . 7 (𝑓 “ ℕ) ⊆ dom 𝑓
13497fdmd 5391 . . . . . . . 8 (𝑓𝑅 → dom 𝑓 = ℙ)
135 prmssnn 12147 . . . . . . . 8 ℙ ⊆ ℕ
136134, 135eqsstrdi 3222 . . . . . . 7 (𝑓𝑅 → dom 𝑓 ⊆ ℕ)
137133, 136sstrid 3181 . . . . . 6 (𝑓𝑅 → (𝑓 “ ℕ) ⊆ ℕ)
13894simprbi 275 . . . . . 6 (𝑓𝑅 → (𝑓 “ ℕ) ∈ Fin)
139 fiubnn 10845 . . . . . 6 (((𝑓 “ ℕ) ⊆ ℕ ∧ (𝑓 “ ℕ) ∈ Fin) → ∃𝑦 ∈ ℕ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦)
140137, 138, 139syl2anc 411 . . . . 5 (𝑓𝑅 → ∃𝑦 ∈ ℕ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦)
141132, 140r19.29a 2633 . . . 4 (𝑓𝑅 → ∃𝑥 ∈ ℕ 𝑓 = (𝑀𝑥))
142141rgen 2543 . . 3 𝑓𝑅𝑥 ∈ ℕ 𝑓 = (𝑀𝑥)
143 dffo3 5684 . . 3 (𝑀:ℕ–onto𝑅 ↔ (𝑀:ℕ⟶𝑅 ∧ ∀𝑓𝑅𝑥 ∈ ℕ 𝑓 = (𝑀𝑥)))
14470, 142, 143mpbir2an 944 . 2 𝑀:ℕ–onto𝑅
145 df-f1o 5242 . 2 (𝑀:ℕ–1-1-onto𝑅 ↔ (𝑀:ℕ–1-1𝑅𝑀:ℕ–onto𝑅))
14689, 144, 145mpbir2an 944 1 𝑀:ℕ–1-1-onto𝑅
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 104  wb 105  wo 709  DECID wdc 835   = wceq 1364  wcel 2160  wral 2468  wrex 2469  {crab 2472  wss 3144  ifcif 3549   class class class wbr 4018  cmpt 4079  ccnv 4643  dom cdm 4644  cima 4647   Fn wfn 5230  wf 5231  1-1wf1 5232  ontowfo 5233  1-1-ontowf1o 5234  cfv 5235  (class class class)co 5897  𝑚 cmap 6675  Fincfn 6767  cr 7841  0cc0 7842  1c1 7843   + caddc 7845   < clt 8023  cle 8024  cn 8950  0cn0 9207  cz 9284  cuz 9559  ...cfz 10040  cexp 10553  cdvds 11829  cprime 12142   pCnt cpc 12319
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 615  ax-in2 616  ax-io 710  ax-5 1458  ax-7 1459  ax-gen 1460  ax-ie1 1504  ax-ie2 1505  ax-8 1515  ax-10 1516  ax-11 1517  ax-i12 1518  ax-bndl 1520  ax-4 1521  ax-17 1537  ax-i9 1541  ax-ial 1545  ax-i5r 1546  ax-13 2162  ax-14 2163  ax-ext 2171  ax-coll 4133  ax-sep 4136  ax-nul 4144  ax-pow 4192  ax-pr 4227  ax-un 4451  ax-setind 4554  ax-iinf 4605  ax-cnex 7933  ax-resscn 7934  ax-1cn 7935  ax-1re 7936  ax-icn 7937  ax-addcl 7938  ax-addrcl 7939  ax-mulcl 7940  ax-mulrcl 7941  ax-addcom 7942  ax-mulcom 7943  ax-addass 7944  ax-mulass 7945  ax-distr 7946  ax-i2m1 7947  ax-0lt1 7948  ax-1rid 7949  ax-0id 7950  ax-rnegex 7951  ax-precex 7952  ax-cnre 7953  ax-pre-ltirr 7954  ax-pre-ltwlin 7955  ax-pre-lttrn 7956  ax-pre-apti 7957  ax-pre-ltadd 7958  ax-pre-mulgt0 7959  ax-pre-mulext 7960  ax-arch 7961  ax-caucvg 7962
This theorem depends on definitions:  df-bi 117  df-stab 832  df-dc 836  df-3or 981  df-3an 982  df-tru 1367  df-fal 1370  df-nf 1472  df-sb 1774  df-eu 2041  df-mo 2042  df-clab 2176  df-cleq 2182  df-clel 2185  df-nfc 2321  df-ne 2361  df-nel 2456  df-ral 2473  df-rex 2474  df-reu 2475  df-rmo 2476  df-rab 2477  df-v 2754  df-sbc 2978  df-csb 3073  df-dif 3146  df-un 3148  df-in 3150  df-ss 3157  df-nul 3438  df-if 3550  df-pw 3592  df-sn 3613  df-pr 3614  df-op 3616  df-uni 3825  df-int 3860  df-iun 3903  df-br 4019  df-opab 4080  df-mpt 4081  df-tr 4117  df-id 4311  df-po 4314  df-iso 4315  df-iord 4384  df-on 4386  df-ilim 4387  df-suc 4389  df-iom 4608  df-xp 4650  df-rel 4651  df-cnv 4652  df-co 4653  df-dm 4654  df-rn 4655  df-res 4656  df-ima 4657  df-iota 5196  df-fun 5237  df-fn 5238  df-f 5239  df-f1 5240  df-fo 5241  df-f1o 5242  df-fv 5243  df-isom 5244  df-riota 5852  df-ov 5900  df-oprab 5901  df-mpo 5902  df-1st 6166  df-2nd 6167  df-recs 6331  df-frec 6417  df-1o 6442  df-2o 6443  df-er 6560  df-map 6677  df-en 6768  df-fin 6770  df-sup 7014  df-inf 7015  df-pnf 8025  df-mnf 8026  df-xr 8027  df-ltxr 8028  df-le 8029  df-sub 8161  df-neg 8162  df-reap 8563  df-ap 8570  df-div 8661  df-inn 8951  df-2 9009  df-3 9010  df-4 9011  df-n0 9208  df-xnn0 9271  df-z 9285  df-uz 9560  df-q 9652  df-rp 9686  df-fz 10041  df-fzo 10175  df-fl 10303  df-mod 10356  df-seqfrec 10479  df-exp 10554  df-cj 10886  df-re 10887  df-im 10888  df-rsqrt 11042  df-abs 11043  df-dvds 11830  df-gcd 11979  df-prm 12143  df-pc 12320
This theorem is referenced by:  1arith2  12403
  Copyright terms: Public domain W3C validator