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

Theorem 1arith 16628
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 16382 . . . . . 6 ℙ ∈ V
21mptex 7099 . . . . 5 (𝑝 ∈ ℙ ↦ (𝑝 pCnt 𝑛)) ∈ V
3 1arith.1 . . . . 5 𝑀 = (𝑛 ∈ ℕ ↦ (𝑝 ∈ ℙ ↦ (𝑝 pCnt 𝑛)))
42, 3fnmpti 6576 . . . 4 𝑀 Fn ℕ
531arithlem3 16626 . . . . . . 7 (𝑥 ∈ ℕ → (𝑀𝑥):ℙ⟶ℕ0)
6 nn0ex 12239 . . . . . . . 8 0 ∈ V
76, 1elmap 8659 . . . . . . 7 ((𝑀𝑥) ∈ (ℕ0m ℙ) ↔ (𝑀𝑥):ℙ⟶ℕ0)
85, 7sylibr 233 . . . . . 6 (𝑥 ∈ ℕ → (𝑀𝑥) ∈ (ℕ0m ℙ))
9 fzfi 13692 . . . . . . 7 (1...𝑥) ∈ Fin
10 ffn 6600 . . . . . . . . . 10 ((𝑀𝑥):ℙ⟶ℕ0 → (𝑀𝑥) Fn ℙ)
11 elpreima 6935 . . . . . . . . . 10 ((𝑀𝑥) Fn ℙ → (𝑞 ∈ ((𝑀𝑥) “ ℕ) ↔ (𝑞 ∈ ℙ ∧ ((𝑀𝑥)‘𝑞) ∈ ℕ)))
125, 10, 113syl 18 . . . . . . . . 9 (𝑥 ∈ ℕ → (𝑞 ∈ ((𝑀𝑥) “ ℕ) ↔ (𝑞 ∈ ℙ ∧ ((𝑀𝑥)‘𝑞) ∈ ℕ)))
1331arithlem2 16625 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑀𝑥)‘𝑞) = (𝑞 pCnt 𝑥))
1413eleq1d 2823 . . . . . . . . . . 11 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (((𝑀𝑥)‘𝑞) ∈ ℕ ↔ (𝑞 pCnt 𝑥) ∈ ℕ))
15 prmz 16380 . . . . . . . . . . . . 13 (𝑞 ∈ ℙ → 𝑞 ∈ ℤ)
16 id 22 . . . . . . . . . . . . 13 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ)
17 dvdsle 16019 . . . . . . . . . . . . 13 ((𝑞 ∈ ℤ ∧ 𝑥 ∈ ℕ) → (𝑞𝑥𝑞𝑥))
1815, 16, 17syl2anr 597 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (𝑞𝑥𝑞𝑥))
19 pcelnn 16571 . . . . . . . . . . . . 13 ((𝑞 ∈ ℙ ∧ 𝑥 ∈ ℕ) → ((𝑞 pCnt 𝑥) ∈ ℕ ↔ 𝑞𝑥))
2019ancoms 459 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑞 pCnt 𝑥) ∈ ℕ ↔ 𝑞𝑥))
21 prmnn 16379 . . . . . . . . . . . . . 14 (𝑞 ∈ ℙ → 𝑞 ∈ ℕ)
22 nnuz 12621 . . . . . . . . . . . . . 14 ℕ = (ℤ‘1)
2321, 22eleqtrdi 2849 . . . . . . . . . . . . 13 (𝑞 ∈ ℙ → 𝑞 ∈ (ℤ‘1))
24 nnz 12342 . . . . . . . . . . . . 13 (𝑥 ∈ ℕ → 𝑥 ∈ ℤ)
25 elfz5 13248 . . . . . . . . . . . . 13 ((𝑞 ∈ (ℤ‘1) ∧ 𝑥 ∈ ℤ) → (𝑞 ∈ (1...𝑥) ↔ 𝑞𝑥))
2623, 24, 25syl2anr 597 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (𝑞 ∈ (1...𝑥) ↔ 𝑞𝑥))
2718, 20, 263imtr4d 294 . . . . . . . . . . 11 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑞 pCnt 𝑥) ∈ ℕ → 𝑞 ∈ (1...𝑥)))
2814, 27sylbid 239 . . . . . . . . . 10 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (((𝑀𝑥)‘𝑞) ∈ ℕ → 𝑞 ∈ (1...𝑥)))
2928expimpd 454 . . . . . . . . 9 (𝑥 ∈ ℕ → ((𝑞 ∈ ℙ ∧ ((𝑀𝑥)‘𝑞) ∈ ℕ) → 𝑞 ∈ (1...𝑥)))
3012, 29sylbid 239 . . . . . . . 8 (𝑥 ∈ ℕ → (𝑞 ∈ ((𝑀𝑥) “ ℕ) → 𝑞 ∈ (1...𝑥)))
3130ssrdv 3927 . . . . . . 7 (𝑥 ∈ ℕ → ((𝑀𝑥) “ ℕ) ⊆ (1...𝑥))
32 ssfi 8956 . . . . . . 7 (((1...𝑥) ∈ Fin ∧ ((𝑀𝑥) “ ℕ) ⊆ (1...𝑥)) → ((𝑀𝑥) “ ℕ) ∈ Fin)
339, 31, 32sylancr 587 . . . . . 6 (𝑥 ∈ ℕ → ((𝑀𝑥) “ ℕ) ∈ Fin)
34 cnveq 5782 . . . . . . . . 9 (𝑒 = (𝑀𝑥) → 𝑒 = (𝑀𝑥))
3534imaeq1d 5968 . . . . . . . 8 (𝑒 = (𝑀𝑥) → (𝑒 “ ℕ) = ((𝑀𝑥) “ ℕ))
3635eleq1d 2823 . . . . . . 7 (𝑒 = (𝑀𝑥) → ((𝑒 “ ℕ) ∈ Fin ↔ ((𝑀𝑥) “ ℕ) ∈ Fin))
37 1arith.2 . . . . . . 7 𝑅 = {𝑒 ∈ (ℕ0m ℙ) ∣ (𝑒 “ ℕ) ∈ Fin}
3836, 37elrab2 3627 . . . . . 6 ((𝑀𝑥) ∈ 𝑅 ↔ ((𝑀𝑥) ∈ (ℕ0m ℙ) ∧ ((𝑀𝑥) “ ℕ) ∈ Fin))
398, 33, 38sylanbrc 583 . . . . 5 (𝑥 ∈ ℕ → (𝑀𝑥) ∈ 𝑅)
4039rgen 3074 . . . 4 𝑥 ∈ ℕ (𝑀𝑥) ∈ 𝑅
41 ffnfv 6992 . . . 4 (𝑀:ℕ⟶𝑅 ↔ (𝑀 Fn ℕ ∧ ∀𝑥 ∈ ℕ (𝑀𝑥) ∈ 𝑅))
424, 40, 41mpbir2an 708 . . 3 𝑀:ℕ⟶𝑅
4313adantlr 712 . . . . . . . 8 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑞 ∈ ℙ) → ((𝑀𝑥)‘𝑞) = (𝑞 pCnt 𝑥))
4431arithlem2 16625 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑀𝑦)‘𝑞) = (𝑞 pCnt 𝑦))
4544adantll 711 . . . . . . . 8 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑞 ∈ ℙ) → ((𝑀𝑦)‘𝑞) = (𝑞 pCnt 𝑦))
4643, 45eqeq12d 2754 . . . . . . 7 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑞 ∈ ℙ) → (((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞) ↔ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
4746ralbidva 3111 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (∀𝑞 ∈ ℙ ((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞) ↔ ∀𝑞 ∈ ℙ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
4831arithlem3 16626 . . . . . . 7 (𝑦 ∈ ℕ → (𝑀𝑦):ℙ⟶ℕ0)
49 ffn 6600 . . . . . . . 8 ((𝑀𝑦):ℙ⟶ℕ0 → (𝑀𝑦) Fn ℙ)
50 eqfnfv 6909 . . . . . . . 8 (((𝑀𝑥) Fn ℙ ∧ (𝑀𝑦) Fn ℙ) → ((𝑀𝑥) = (𝑀𝑦) ↔ ∀𝑞 ∈ ℙ ((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞)))
5110, 49, 50syl2an 596 . . . . . . 7 (((𝑀𝑥):ℙ⟶ℕ0 ∧ (𝑀𝑦):ℙ⟶ℕ0) → ((𝑀𝑥) = (𝑀𝑦) ↔ ∀𝑞 ∈ ℙ ((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞)))
525, 48, 51syl2an 596 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑀𝑥) = (𝑀𝑦) ↔ ∀𝑞 ∈ ℙ ((𝑀𝑥)‘𝑞) = ((𝑀𝑦)‘𝑞)))
53 nnnn0 12240 . . . . . . 7 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ0)
54 nnnn0 12240 . . . . . . 7 (𝑦 ∈ ℕ → 𝑦 ∈ ℕ0)
55 pc11 16581 . . . . . . 7 ((𝑥 ∈ ℕ0𝑦 ∈ ℕ0) → (𝑥 = 𝑦 ↔ ∀𝑞 ∈ ℙ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
5653, 54, 55syl2an 596 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥 = 𝑦 ↔ ∀𝑞 ∈ ℙ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
5747, 52, 563bitr4d 311 . . . . 5 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑀𝑥) = (𝑀𝑦) ↔ 𝑥 = 𝑦))
5857biimpd 228 . . . 4 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑀𝑥) = (𝑀𝑦) → 𝑥 = 𝑦))
5958rgen2 3120 . . 3 𝑥 ∈ ℕ ∀𝑦 ∈ ℕ ((𝑀𝑥) = (𝑀𝑦) → 𝑥 = 𝑦)
60 dff13 7128 . . 3 (𝑀:ℕ–1-1𝑅 ↔ (𝑀:ℕ⟶𝑅 ∧ ∀𝑥 ∈ ℕ ∀𝑦 ∈ ℕ ((𝑀𝑥) = (𝑀𝑦) → 𝑥 = 𝑦)))
6142, 59, 60mpbir2an 708 . 2 𝑀:ℕ–1-1𝑅
62 eqid 2738 . . . . . 6 (𝑔 ∈ ℕ ↦ if(𝑔 ∈ ℙ, (𝑔↑(𝑓𝑔)), 1)) = (𝑔 ∈ ℕ ↦ if(𝑔 ∈ ℙ, (𝑔↑(𝑓𝑔)), 1))
63 cnveq 5782 . . . . . . . . . . . 12 (𝑒 = 𝑓𝑒 = 𝑓)
6463imaeq1d 5968 . . . . . . . . . . 11 (𝑒 = 𝑓 → (𝑒 “ ℕ) = (𝑓 “ ℕ))
6564eleq1d 2823 . . . . . . . . . 10 (𝑒 = 𝑓 → ((𝑒 “ ℕ) ∈ Fin ↔ (𝑓 “ ℕ) ∈ Fin))
6665, 37elrab2 3627 . . . . . . . . 9 (𝑓𝑅 ↔ (𝑓 ∈ (ℕ0m ℙ) ∧ (𝑓 “ ℕ) ∈ Fin))
6766simplbi 498 . . . . . . . 8 (𝑓𝑅𝑓 ∈ (ℕ0m ℙ))
686, 1elmap 8659 . . . . . . . 8 (𝑓 ∈ (ℕ0m ℙ) ↔ 𝑓:ℙ⟶ℕ0)
6967, 68sylib 217 . . . . . . 7 (𝑓𝑅𝑓:ℙ⟶ℕ0)
7069ad2antrr 723 . . . . . 6 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → 𝑓:ℙ⟶ℕ0)
71 simplr 766 . . . . . . . . 9 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → 𝑦 ∈ ℝ)
72 0re 10977 . . . . . . . . 9 0 ∈ ℝ
73 ifcl 4504 . . . . . . . . 9 ((𝑦 ∈ ℝ ∧ 0 ∈ ℝ) → if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ)
7471, 72, 73sylancl 586 . . . . . . . 8 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ)
75 max1 12919 . . . . . . . . 9 ((0 ∈ ℝ ∧ 𝑦 ∈ ℝ) → 0 ≤ if(0 ≤ 𝑦, 𝑦, 0))
7672, 71, 75sylancr 587 . . . . . . . 8 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → 0 ≤ if(0 ≤ 𝑦, 𝑦, 0))
77 flge0nn0 13540 . . . . . . . 8 ((if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ ∧ 0 ≤ if(0 ≤ 𝑦, 𝑦, 0)) → (⌊‘if(0 ≤ 𝑦, 𝑦, 0)) ∈ ℕ0)
7874, 76, 77syl2anc 584 . . . . . . 7 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → (⌊‘if(0 ≤ 𝑦, 𝑦, 0)) ∈ ℕ0)
79 nn0p1nn 12272 . . . . . . 7 ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) ∈ ℕ0 → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ∈ ℕ)
8078, 79syl 17 . . . . . 6 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ∈ ℕ)
8171adantr 481 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑦 ∈ ℝ)
8280adantr 481 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ∈ ℕ)
8382nnred 11988 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ∈ ℝ)
8415ssriv 3925 . . . . . . . . . . . 12 ℙ ⊆ ℤ
85 zssre 12326 . . . . . . . . . . . 12 ℤ ⊆ ℝ
8684, 85sstri 3930 . . . . . . . . . . 11 ℙ ⊆ ℝ
87 simprl 768 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑞 ∈ ℙ)
8886, 87sselid 3919 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑞 ∈ ℝ)
8974adantr 481 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ)
90 max2 12921 . . . . . . . . . . . 12 ((0 ∈ ℝ ∧ 𝑦 ∈ ℝ) → 𝑦 ≤ if(0 ≤ 𝑦, 𝑦, 0))
9172, 81, 90sylancr 587 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑦 ≤ if(0 ≤ 𝑦, 𝑦, 0))
92 flltp1 13520 . . . . . . . . . . . 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 11133 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑦 < ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1))
95 simprr 770 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)
9681, 83, 88, 94, 95ltletrd 11135 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑦 < 𝑞)
9781, 88ltnled 11122 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑦 < 𝑞 ↔ ¬ 𝑞𝑦))
9896, 97mpbid 231 . . . . . . . 8 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ¬ 𝑞𝑦)
9987biantrurd 533 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((𝑓𝑞) ∈ ℕ ↔ (𝑞 ∈ ℙ ∧ (𝑓𝑞) ∈ ℕ)))
10070adantr 481 . . . . . . . . . . 11 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑓:ℙ⟶ℕ0)
101 ffn 6600 . . . . . . . . . . 11 (𝑓:ℙ⟶ℕ0𝑓 Fn ℙ)
102 elpreima 6935 . . . . . . . . . . 11 (𝑓 Fn ℙ → (𝑞 ∈ (𝑓 “ ℕ) ↔ (𝑞 ∈ ℙ ∧ (𝑓𝑞) ∈ ℕ)))
103100, 101, 1023syl 18 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑞 ∈ (𝑓 “ ℕ) ↔ (𝑞 ∈ ℙ ∧ (𝑓𝑞) ∈ ℕ)))
10499, 103bitr4d 281 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((𝑓𝑞) ∈ ℕ ↔ 𝑞 ∈ (𝑓 “ ℕ)))
105 simplr 766 . . . . . . . . . 10 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦)
106 breq1 5077 . . . . . . . . . . 11 (𝑘 = 𝑞 → (𝑘𝑦𝑞𝑦))
107106rspccv 3558 . . . . . . . . . 10 (∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦 → (𝑞 ∈ (𝑓 “ ℕ) → 𝑞𝑦))
108105, 107syl 17 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑞 ∈ (𝑓 “ ℕ) → 𝑞𝑦))
109104, 108sylbid 239 . . . . . . . 8 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((𝑓𝑞) ∈ ℕ → 𝑞𝑦))
11098, 109mtod 197 . . . . . . 7 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ¬ (𝑓𝑞) ∈ ℕ)
111100, 87ffvelrnd 6962 . . . . . . . . 9 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑓𝑞) ∈ ℕ0)
112 elnn0 12235 . . . . . . . . 9 ((𝑓𝑞) ∈ ℕ0 ↔ ((𝑓𝑞) ∈ ℕ ∨ (𝑓𝑞) = 0))
113111, 112sylib 217 . . . . . . . 8 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((𝑓𝑞) ∈ ℕ ∨ (𝑓𝑞) = 0))
114113ord 861 . . . . . . 7 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (¬ (𝑓𝑞) ∈ ℕ → (𝑓𝑞) = 0))
115110, 114mpd 15 . . . . . 6 ((((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑓𝑞) = 0)
1163, 62, 70, 80, 1151arithlem4 16627 . . . . 5 (((𝑓𝑅𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦) → ∃𝑥 ∈ ℕ 𝑓 = (𝑀𝑥))
117 cnvimass 5989 . . . . . . 7 (𝑓 “ ℕ) ⊆ dom 𝑓
11869fdmd 6611 . . . . . . . 8 (𝑓𝑅 → dom 𝑓 = ℙ)
119118, 86eqsstrdi 3975 . . . . . . 7 (𝑓𝑅 → dom 𝑓 ⊆ ℝ)
120117, 119sstrid 3932 . . . . . 6 (𝑓𝑅 → (𝑓 “ ℕ) ⊆ ℝ)
12166simprbi 497 . . . . . 6 (𝑓𝑅 → (𝑓 “ ℕ) ∈ Fin)
122 fimaxre2 11920 . . . . . 6 (((𝑓 “ ℕ) ⊆ ℝ ∧ (𝑓 “ ℕ) ∈ Fin) → ∃𝑦 ∈ ℝ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦)
123120, 121, 122syl2anc 584 . . . . 5 (𝑓𝑅 → ∃𝑦 ∈ ℝ ∀𝑘 ∈ (𝑓 “ ℕ)𝑘𝑦)
124116, 123r19.29a 3218 . . . 4 (𝑓𝑅 → ∃𝑥 ∈ ℕ 𝑓 = (𝑀𝑥))
125124rgen 3074 . . 3 𝑓𝑅𝑥 ∈ ℕ 𝑓 = (𝑀𝑥)
126 dffo3 6978 . . 3 (𝑀:ℕ–onto𝑅 ↔ (𝑀:ℕ⟶𝑅 ∧ ∀𝑓𝑅𝑥 ∈ ℕ 𝑓 = (𝑀𝑥)))
12742, 125, 126mpbir2an 708 . 2 𝑀:ℕ–onto𝑅
128 df-f1o 6440 . 2 (𝑀:ℕ–1-1-onto𝑅 ↔ (𝑀:ℕ–1-1𝑅𝑀:ℕ–onto𝑅))
12961, 127, 128mpbir2an 708 1 𝑀:ℕ–1-1-onto𝑅
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844   = wceq 1539  wcel 2106  wral 3064  wrex 3065  {crab 3068  wss 3887  ifcif 4459   class class class wbr 5074  cmpt 5157  ccnv 5588  dom cdm 5589  cima 5592   Fn wfn 6428  wf 6429  1-1wf1 6430  ontowfo 6431  1-1-ontowf1o 6432  cfv 6433  (class class class)co 7275  m cmap 8615  Fincfn 8733  cr 10870  0cc0 10871  1c1 10872   + caddc 10874   < clt 11009  cle 11010  cn 11973  0cn0 12233  cz 12319  cuz 12582  ...cfz 13239  cfl 13510  cexp 13782  cdvds 15963  cprime 16376   pCnt cpc 16537
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948  ax-pre-sup 10949
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-1o 8297  df-2o 8298  df-er 8498  df-map 8617  df-en 8734  df-dom 8735  df-sdom 8736  df-fin 8737  df-sup 9201  df-inf 9202  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-div 11633  df-nn 11974  df-2 12036  df-3 12037  df-n0 12234  df-z 12320  df-uz 12583  df-q 12689  df-rp 12731  df-fz 13240  df-fl 13512  df-mod 13590  df-seq 13722  df-exp 13783  df-cj 14810  df-re 14811  df-im 14812  df-sqrt 14946  df-abs 14947  df-dvds 15964  df-gcd 16202  df-prm 16377  df-pc 16538
This theorem is referenced by:  1arith2  16629  sqff1o  26331
  Copyright terms: Public domain W3C validator