MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  1arith Structured version   Visualization version   GIF version

Theorem 1arith 16363
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 𝑅 = {𝑒 ∈ (ℕ0m ℙ) ∣ (𝑒 “ ℕ) ∈ 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 16118 . . . . . 6 ℙ ∈ V
21mptex 6996 . . . . 5 (𝑝 ∈ ℙ ↦ (𝑝 pCnt 𝑛)) ∈ V
3 1arith.1 . . . . 5 𝑀 = (𝑛 ∈ ℕ ↦ (𝑝 ∈ ℙ ↦ (𝑝 pCnt 𝑛)))
42, 3fnmpti 6480 . . . 4 𝑀 Fn ℕ
531arithlem3 16361 . . . . . . 7 (𝑥 ∈ ℕ → (𝑀𝑥):ℙ⟶ℕ0)
6 nn0ex 11982 . . . . . . . 8 0 ∈ V
76, 1elmap 8481 . . . . . . 7 ((𝑀𝑥) ∈ (ℕ0m ℙ) ↔ (𝑀𝑥):ℙ⟶ℕ0)
85, 7sylibr 237 . . . . . 6 (𝑥 ∈ ℕ → (𝑀𝑥) ∈ (ℕ0m ℙ))
9 fzfi 13431 . . . . . . 7 (1...𝑥) ∈ Fin
10 ffn 6504 . . . . . . . . . 10 ((𝑀𝑥):ℙ⟶ℕ0 → (𝑀𝑥) Fn ℙ)
11 elpreima 6835 . . . . . . . . . 10 ((𝑀𝑥) Fn ℙ → (𝑞 ∈ ((𝑀𝑥) “ ℕ) ↔ (𝑞 ∈ ℙ ∧ ((𝑀𝑥)‘𝑞) ∈ ℕ)))
125, 10, 113syl 18 . . . . . . . . 9 (𝑥 ∈ ℕ → (𝑞 ∈ ((𝑀𝑥) “ ℕ) ↔ (𝑞 ∈ ℙ ∧ ((𝑀𝑥)‘𝑞) ∈ ℕ)))
1331arithlem2 16360 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑀𝑥)‘𝑞) = (𝑞 pCnt 𝑥))
1413eleq1d 2817 . . . . . . . . . . 11 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (((𝑀𝑥)‘𝑞) ∈ ℕ ↔ (𝑞 pCnt 𝑥) ∈ ℕ))
15 prmz 16116 . . . . . . . . . . . . 13 (𝑞 ∈ ℙ → 𝑞 ∈ ℤ)
16 id 22 . . . . . . . . . . . . 13 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ)
17 dvdsle 15755 . . . . . . . . . . . . 13 ((𝑞 ∈ ℤ ∧ 𝑥 ∈ ℕ) → (𝑞𝑥𝑞𝑥))
1815, 16, 17syl2anr 600 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (𝑞𝑥𝑞𝑥))
19 pcelnn 16306 . . . . . . . . . . . . 13 ((𝑞 ∈ ℙ ∧ 𝑥 ∈ ℕ) → ((𝑞 pCnt 𝑥) ∈ ℕ ↔ 𝑞𝑥))
2019ancoms 462 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑞 pCnt 𝑥) ∈ ℕ ↔ 𝑞𝑥))
21 prmnn 16115 . . . . . . . . . . . . . 14 (𝑞 ∈ ℙ → 𝑞 ∈ ℕ)
22 nnuz 12363 . . . . . . . . . . . . . 14 ℕ = (ℤ‘1)
2321, 22eleqtrdi 2843 . . . . . . . . . . . . 13 (𝑞 ∈ ℙ → 𝑞 ∈ (ℤ‘1))
24 nnz 12085 . . . . . . . . . . . . 13 (𝑥 ∈ ℕ → 𝑥 ∈ ℤ)
25 elfz5 12990 . . . . . . . . . . . . 13 ((𝑞 ∈ (ℤ‘1) ∧ 𝑥 ∈ ℤ) → (𝑞 ∈ (1...𝑥) ↔ 𝑞𝑥))
2623, 24, 25syl2anr 600 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (𝑞 ∈ (1...𝑥) ↔ 𝑞𝑥))
2718, 20, 263imtr4d 297 . . . . . . . . . . 11 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑞 pCnt 𝑥) ∈ ℕ → 𝑞 ∈ (1...𝑥)))
2814, 27sylbid 243 . . . . . . . . . 10 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (((𝑀𝑥)‘𝑞) ∈ ℕ → 𝑞 ∈ (1...𝑥)))
2928expimpd 457 . . . . . . . . 9 (𝑥 ∈ ℕ → ((𝑞 ∈ ℙ ∧ ((𝑀𝑥)‘𝑞) ∈ ℕ) → 𝑞 ∈ (1...𝑥)))
3012, 29sylbid 243 . . . . . . . 8 (𝑥 ∈ ℕ → (𝑞 ∈ ((𝑀𝑥) “ ℕ) → 𝑞 ∈ (1...𝑥)))
3130ssrdv 3883 . . . . . . 7 (𝑥 ∈ ℕ → ((𝑀𝑥) “ ℕ) ⊆ (1...𝑥))
32 ssfi 8772 . . . . . . 7 (((1...𝑥) ∈ Fin ∧ ((𝑀𝑥) “ ℕ) ⊆ (1...𝑥)) → ((𝑀𝑥) “ ℕ) ∈ Fin)
339, 31, 32sylancr 590 . . . . . 6 (𝑥 ∈ ℕ → ((𝑀𝑥) “ ℕ) ∈ Fin)
34 cnveq 5716 . . . . . . . . 9 (𝑒 = (𝑀𝑥) → 𝑒 = (𝑀𝑥))
3534imaeq1d 5902 . . . . . . . 8 (𝑒 = (𝑀𝑥) → (𝑒 “ ℕ) = ((𝑀𝑥) “ ℕ))
3635eleq1d 2817 . . . . . . 7 (𝑒 = (𝑀𝑥) → ((𝑒 “ ℕ) ∈ Fin ↔ ((𝑀𝑥) “ ℕ) ∈ Fin))
37 1arith.2 . . . . . . 7 𝑅 = {𝑒 ∈ (ℕ0m ℙ) ∣ (𝑒 “ ℕ) ∈ Fin}
3836, 37elrab2 3591 . . . . . 6 ((𝑀𝑥) ∈ 𝑅 ↔ ((𝑀𝑥) ∈ (ℕ0m ℙ) ∧ ((𝑀𝑥) “ ℕ) ∈ Fin))
398, 33, 38sylanbrc 586 . . . . 5 (𝑥 ∈ ℕ → (𝑀𝑥) ∈ 𝑅)
4039rgen 3063 . . . 4 𝑥 ∈ ℕ (𝑀𝑥) ∈ 𝑅
41 ffnfv 6892 . . . 4 (𝑀:ℕ⟶𝑅 ↔ (𝑀 Fn ℕ ∧ ∀𝑥 ∈ ℕ (𝑀𝑥) ∈ 𝑅))
424, 40, 41mpbir2an 711 . . 3 𝑀:ℕ⟶𝑅
4313adantlr 715 . . . . . . . 8 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑞 ∈ ℙ) → ((𝑀𝑥)‘𝑞) = (𝑞 pCnt 𝑥))
4431arithlem2 16360 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑀𝑦)‘𝑞) = (𝑞 pCnt 𝑦))
4544adantll 714 . . . . . . . 8 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑞 ∈ ℙ) → ((𝑀𝑦)‘𝑞) = (𝑞 pCnt 𝑦))
4643, 45eqeq12d 2754 . . . . . . 7 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑞 ∈ ℙ) → (((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞) ↔ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
4746ralbidva 3108 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (∀𝑞 ∈ ℙ ((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞) ↔ ∀𝑞 ∈ ℙ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
4831arithlem3 16361 . . . . . . 7 (𝑦 ∈ ℕ → (𝑀𝑦):ℙ⟶ℕ0)
49 ffn 6504 . . . . . . . 8 ((𝑀𝑦):ℙ⟶ℕ0 → (𝑀𝑦) Fn ℙ)
50 eqfnfv 6809 . . . . . . . 8 (((𝑀𝑥) Fn ℙ ∧ (𝑀𝑦) Fn ℙ) → ((𝑀𝑥) = (𝑀𝑦) ↔ ∀𝑞 ∈ ℙ ((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞)))
5110, 49, 50syl2an 599 . . . . . . 7 (((𝑀𝑥):ℙ⟶ℕ0 ∧ (𝑀𝑦):ℙ⟶ℕ0) → ((𝑀𝑥) = (𝑀𝑦) ↔ ∀𝑞 ∈ ℙ ((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞)))
525, 48, 51syl2an 599 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑀𝑥) = (𝑀𝑦) ↔ ∀𝑞 ∈ ℙ ((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞)))
53 nnnn0 11983 . . . . . . 7 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ0)
54 nnnn0 11983 . . . . . . 7 (𝑦 ∈ ℕ → 𝑦 ∈ ℕ0)
55 pc11 16316 . . . . . . 7 ((𝑥 ∈ ℕ0𝑦 ∈ ℕ0) → (𝑥 = 𝑦 ↔ ∀𝑞 ∈ ℙ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
5653, 54, 55syl2an 599 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥 = 𝑦 ↔ ∀𝑞 ∈ ℙ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
5747, 52, 563bitr4d 314 . . . . 5 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑀𝑥) = (𝑀𝑦) ↔ 𝑥 = 𝑦))
5857biimpd 232 . . . 4 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑀𝑥) = (𝑀𝑦) → 𝑥 = 𝑦))
5958rgen2 3115 . . 3 𝑥 ∈ ℕ ∀𝑦 ∈ ℕ ((𝑀𝑥) = (𝑀𝑦) → 𝑥 = 𝑦)
60 dff13 7024 . . 3 (𝑀:ℕ–1-1𝑅 ↔ (𝑀:ℕ⟶𝑅 ∧ ∀𝑥 ∈ ℕ ∀𝑦 ∈ ℕ ((𝑀𝑥) = (𝑀𝑦) → 𝑥 = 𝑦)))
6142, 59, 60mpbir2an 711 . 2 𝑀:ℕ–1-1𝑅
62 eqid 2738 . . . . . 6 (𝑔 ∈ ℕ ↦ if(𝑔 ∈ ℙ, (𝑔↑(𝑓𝑔)), 1)) = (𝑔 ∈ ℕ ↦ if(𝑔 ∈ ℙ, (𝑔↑(𝑓𝑔)), 1))
63 cnveq 5716 . . . . . . . . . . . 12 (𝑒 = 𝑓𝑒 = 𝑓)
6463imaeq1d 5902 . . . . . . . . . . 11 (𝑒 = 𝑓 → (𝑒 “ ℕ) = (𝑓 “ ℕ))
6564eleq1d 2817 . . . . . . . . . 10 (𝑒 = 𝑓 → ((𝑒 “ ℕ) ∈ Fin ↔ (𝑓 “ ℕ) ∈ Fin))
6665, 37elrab2 3591 . . . . . . . . 9 (𝑓𝑅 ↔ (𝑓 ∈ (ℕ0m ℙ) ∧ (𝑓 “ ℕ) ∈ Fin))
6766simplbi 501 . . . . . . . 8 (𝑓𝑅𝑓 ∈ (ℕ0m ℙ))
686, 1elmap 8481 . . . . . . . 8 (𝑓 ∈ (ℕ0m ℙ) ↔ 𝑓:ℙ⟶ℕ0)
6967, 68sylib 221 . . . . . . 7 (𝑓𝑅𝑓:ℙ⟶ℕ0)
7069ad2antrr 726 . . . . . 6 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → 𝑓:ℙ⟶ℕ0)
71 simplr 769 . . . . . . . . 9 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → 𝑦 ∈ ℝ)
72 0re 10721 . . . . . . . . 9 0 ∈ ℝ
73 ifcl 4459 . . . . . . . . 9 ((𝑦 ∈ ℝ ∧ 0 ∈ ℝ) → if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ)
7471, 72, 73sylancl 589 . . . . . . . 8 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ)
75 max1 12661 . . . . . . . . 9 ((0 ∈ ℝ ∧ 𝑦 ∈ ℝ) → 0 ≤ if(0 ≤ 𝑦, 𝑦, 0))
7672, 71, 75sylancr 590 . . . . . . . 8 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → 0 ≤ if(0 ≤ 𝑦, 𝑦, 0))
77 flge0nn0 13281 . . . . . . . 8 ((if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ ∧ 0 ≤ if(0 ≤ 𝑦, 𝑦, 0)) → (⌊‘if(0 ≤ 𝑦, 𝑦, 0)) ∈ ℕ0)
7874, 76, 77syl2anc 587 . . . . . . 7 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → (⌊‘if(0 ≤ 𝑦, 𝑦, 0)) ∈ ℕ0)
79 nn0p1nn 12015 . . . . . . 7 ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) ∈ ℕ0 → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ∈ ℕ)
8078, 79syl 17 . . . . . 6 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ∈ ℕ)
8171adantr 484 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑦 ∈ ℝ)
8280adantr 484 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ∈ ℕ)
8382nnred 11731 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ∈ ℝ)
8415ssriv 3881 . . . . . . . . . . . 12 ℙ ⊆ ℤ
85 zssre 12069 . . . . . . . . . . . 12 ℤ ⊆ ℝ
8684, 85sstri 3886 . . . . . . . . . . 11 ℙ ⊆ ℝ
87 simprl 771 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑞 ∈ ℙ)
8886, 87sseldi 3875 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑞 ∈ ℝ)
8974adantr 484 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ)
90 max2 12663 . . . . . . . . . . . 12 ((0 ∈ ℝ ∧ 𝑦 ∈ ℝ) → 𝑦 ≤ if(0 ≤ 𝑦, 𝑦, 0))
9172, 81, 90sylancr 590 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑦 ≤ if(0 ≤ 𝑦, 𝑦, 0))
92 flltp1 13261 . . . . . . . . . . . 12 (if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ → if(0 ≤ 𝑦, 𝑦, 0) < ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1))
9389, 92syl 17 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → if(0 ≤ 𝑦, 𝑦, 0) < ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1))
9481, 89, 83, 91, 93lelttrd 10876 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑦 < ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1))
95 simprr 773 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)
9681, 83, 88, 94, 95ltletrd 10878 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑦 < 𝑞)
9781, 88ltnled 10865 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑦 < 𝑞 ↔ ¬ 𝑞𝑦))
9896, 97mpbid 235 . . . . . . . 8 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ¬ 𝑞𝑦)
9987biantrurd 536 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((𝑓𝑞) ∈ ℕ ↔ (𝑞 ∈ ℙ ∧ (𝑓𝑞) ∈ ℕ)))
10070adantr 484 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑓:ℙ⟶ℕ0)
101 ffn 6504 . . . . . . . . . . 11 (𝑓:ℙ⟶ℕ0𝑓 Fn ℙ)
102 elpreima 6835 . . . . . . . . . . 11 (𝑓 Fn ℙ → (𝑞 ∈ (𝑓 “ ℕ) ↔ (𝑞 ∈ ℙ ∧ (𝑓𝑞) ∈ ℕ)))
103100, 101, 1023syl 18 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑞 ∈ (𝑓 “ ℕ) ↔ (𝑞 ∈ ℙ ∧ (𝑓𝑞) ∈ ℕ)))
10499, 103bitr4d 285 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((𝑓𝑞) ∈ ℕ ↔ 𝑞 ∈ (𝑓 “ ℕ)))
105 simplr 769 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦)
106 breq1 5033 . . . . . . . . . . 11 (𝑘 = 𝑞 → (𝑘𝑦𝑞𝑦))
107106rspccv 3523 . . . . . . . . . 10 (∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦 → (𝑞 ∈ (𝑓 “ ℕ) → 𝑞𝑦))
108105, 107syl 17 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑞 ∈ (𝑓 “ ℕ) → 𝑞𝑦))
109104, 108sylbid 243 . . . . . . . 8 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((𝑓𝑞) ∈ ℕ → 𝑞𝑦))
11098, 109mtod 201 . . . . . . 7 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ¬ (𝑓𝑞) ∈ ℕ)
111100, 87ffvelrnd 6862 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑓𝑞) ∈ ℕ0)
112 elnn0 11978 . . . . . . . . 9 ((𝑓𝑞) ∈ ℕ0 ↔ ((𝑓𝑞) ∈ ℕ ∨ (𝑓𝑞) = 0))
113111, 112sylib 221 . . . . . . . 8 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((𝑓𝑞) ∈ ℕ ∨ (𝑓𝑞) = 0))
114113ord 863 . . . . . . 7 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (¬ (𝑓𝑞) ∈ ℕ → (𝑓𝑞) = 0))
115110, 114mpd 15 . . . . . 6 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑓𝑞) = 0)
1163, 62, 70, 80, 1151arithlem4 16362 . . . . 5 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → ∃𝑥 ∈ ℕ 𝑓 = (𝑀𝑥))
117 cnvimass 5923 . . . . . . 7 (𝑓 “ ℕ) ⊆ dom 𝑓
11869fdmd 6515 . . . . . . . 8 (𝑓𝑅 → dom 𝑓 = ℙ)
119118, 86eqsstrdi 3931 . . . . . . 7 (𝑓𝑅 → dom 𝑓 ⊆ ℝ)
120117, 119sstrid 3888 . . . . . 6 (𝑓𝑅 → (𝑓 “ ℕ) ⊆ ℝ)
12166simprbi 500 . . . . . 6 (𝑓𝑅 → (𝑓 “ ℕ) ∈ Fin)
122 fimaxre2 11663 . . . . . 6 (((𝑓 “ ℕ) ⊆ ℝ ∧ (𝑓 “ ℕ) ∈ Fin) → ∃𝑦 ∈ ℝ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦)
123120, 121, 122syl2anc 587 . . . . 5 (𝑓𝑅 → ∃𝑦 ∈ ℝ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦)
124116, 123r19.29a 3199 . . . 4 (𝑓𝑅 → ∃𝑥 ∈ ℕ 𝑓 = (𝑀𝑥))
125124rgen 3063 . . 3 𝑓𝑅𝑥 ∈ ℕ 𝑓 = (𝑀𝑥)
126 dffo3 6878 . . 3 (𝑀:ℕ–onto𝑅 ↔ (𝑀:ℕ⟶𝑅 ∧ ∀𝑓𝑅𝑥 ∈ ℕ 𝑓 = (𝑀𝑥)))
12742, 125, 126mpbir2an 711 . 2 𝑀:ℕ–onto𝑅
128 df-f1o 6346 . 2 (𝑀:ℕ–1-1-onto𝑅 ↔ (𝑀:ℕ–1-1𝑅𝑀:ℕ–onto𝑅))
12961, 127, 128mpbir2an 711 1 𝑀:ℕ–1-1-onto𝑅
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 846   = wceq 1542  wcel 2114  wral 3053  wrex 3054  {crab 3057  wss 3843  ifcif 4414   class class class wbr 5030  cmpt 5110  ccnv 5524  dom cdm 5525  cima 5528   Fn wfn 6334  wf 6335  1-1wf1 6336  ontowfo 6337  1-1-ontowf1o 6338  cfv 6339  (class class class)co 7170  m cmap 8437  Fincfn 8555  cr 10614  0cc0 10615  1c1 10616   + caddc 10618   < clt 10753  cle 10754  cn 11716  0cn0 11976  cz 12062  cuz 12324  ...cfz 12981  cfl 13251  cexp 13521  cdvds 15699  cprime 16112   pCnt cpc 16273
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2020  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2162  ax-12 2179  ax-ext 2710  ax-rep 5154  ax-sep 5167  ax-nul 5174  ax-pow 5232  ax-pr 5296  ax-un 7479  ax-cnex 10671  ax-resscn 10672  ax-1cn 10673  ax-icn 10674  ax-addcl 10675  ax-addrcl 10676  ax-mulcl 10677  ax-mulrcl 10678  ax-mulcom 10679  ax-addass 10680  ax-mulass 10681  ax-distr 10682  ax-i2m1 10683  ax-1ne0 10684  ax-1rid 10685  ax-rnegex 10686  ax-rrecex 10687  ax-cnre 10688  ax-pre-lttri 10689  ax-pre-lttrn 10690  ax-pre-ltadd 10691  ax-pre-mulgt0 10692  ax-pre-sup 10693
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2075  df-mo 2540  df-eu 2570  df-clab 2717  df-cleq 2730  df-clel 2811  df-nfc 2881  df-ne 2935  df-nel 3039  df-ral 3058  df-rex 3059  df-reu 3060  df-rmo 3061  df-rab 3062  df-v 3400  df-sbc 3681  df-csb 3791  df-dif 3846  df-un 3848  df-in 3850  df-ss 3860  df-pss 3862  df-nul 4212  df-if 4415  df-pw 4490  df-sn 4517  df-pr 4519  df-tp 4521  df-op 4523  df-uni 4797  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5429  df-eprel 5434  df-po 5442  df-so 5443  df-fr 5483  df-we 5485  df-xp 5531  df-rel 5532  df-cnv 5533  df-co 5534  df-dm 5535  df-rn 5536  df-res 5537  df-ima 5538  df-pred 6129  df-ord 6175  df-on 6176  df-lim 6177  df-suc 6178  df-iota 6297  df-fun 6341  df-fn 6342  df-f 6343  df-f1 6344  df-fo 6345  df-f1o 6346  df-fv 6347  df-riota 7127  df-ov 7173  df-oprab 7174  df-mpo 7175  df-om 7600  df-1st 7714  df-2nd 7715  df-wrecs 7976  df-recs 8037  df-rdg 8075  df-1o 8131  df-2o 8132  df-er 8320  df-map 8439  df-en 8556  df-dom 8557  df-sdom 8558  df-fin 8559  df-sup 8979  df-inf 8980  df-pnf 10755  df-mnf 10756  df-xr 10757  df-ltxr 10758  df-le 10759  df-sub 10950  df-neg 10951  df-div 11376  df-nn 11717  df-2 11779  df-3 11780  df-n0 11977  df-z 12063  df-uz 12325  df-q 12431  df-rp 12473  df-fz 12982  df-fl 13253  df-mod 13329  df-seq 13461  df-exp 13522  df-cj 14548  df-re 14549  df-im 14550  df-sqrt 14684  df-abs 14685  df-dvds 15700  df-gcd 15938  df-prm 16113  df-pc 16274
This theorem is referenced by:  1arith2  16364  sqff1o  25919
  Copyright terms: Public domain W3C validator