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

Theorem 1arith 17066
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 ↑m ℙ) ∣ (◡𝑒 “ ℕ) ∈ 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 16814 . . . . . 6 ℙ ∈ V
21mptex 7217 . . . . 5 (𝑝 ∈ ℙ ↦ (𝑝 pCnt 𝑛)) ∈ V
3 1arith.1 . . . . 5 𝑀 = (𝑛 ∈ ℕ ↦ (𝑝 ∈ ℙ ↦ (𝑝 pCnt 𝑛)))
42, 3fnmpti 6670 . . . 4 𝑀 Fn ℕ
531arithlem3 17064 . . . . . . 7 (𝑥 ∈ ℕ → (𝑀‘𝑥):ℙ⟶ℕ0)
6 nn0ex 12581 . . . . . . . 8 ℕ0 ∈ V
76, 1elmap 8877 . . . . . . 7 ((𝑀‘𝑥) ∈ (ℕ0 ↑m ℙ) ↔ (𝑀‘𝑥):ℙ⟶ℕ0)
85, 7sylibr 237 . . . . . 6 (𝑥 ∈ ℕ → (𝑀‘𝑥) ∈ (ℕ0 ↑m ℙ))
9 fzfi 14083 . . . . . . 7 (1...𝑥) ∈ Fin
10 ffn 6697 . . . . . . . . . 10 ((𝑀‘𝑥):ℙ⟶ℕ0 → (𝑀‘𝑥) Fn ℙ)
11 elpreima 7045 . . . . . . . . . 10 ((𝑀‘𝑥) Fn ℙ → (𝑞 ∈ (◡(𝑀‘𝑥) “ ℕ) ↔ (𝑞 ∈ ℙ ∧ ((𝑀‘𝑥)‘𝑞) ∈ ℕ)))
125, 10, 113syl 19 . . . . . . . . 9 (𝑥 ∈ ℕ → (𝑞 ∈ (◡(𝑀‘𝑥) “ ℕ) ↔ (𝑞 ∈ ℙ ∧ ((𝑀‘𝑥)‘𝑞) ∈ ℕ)))
1331arithlem2 17063 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑀‘𝑥)‘𝑞) = (𝑞 pCnt 𝑥))
1413eleq1d 2845 . . . . . . . . . . 11 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (((𝑀‘𝑥)‘𝑞) ∈ ℕ ↔ (𝑞 pCnt 𝑥) ∈ ℕ))
15 prmz 16812 . . . . . . . . . . . . 13 (𝑞 ∈ ℙ → 𝑞 ∈ ℤ)
16 id 23 . . . . . . . . . . . . 13 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ)
17 dvdsle 16447 . . . . . . . . . . . . 13 ((𝑞 ∈ ℤ ∧ 𝑥 ∈ ℕ) → (𝑞 ∥ 𝑥 → 𝑞 ≤ 𝑥))
1815, 16, 17syl2anr 609 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (𝑞 ∥ 𝑥 → 𝑞 ≤ 𝑥))
19 pcelnn 17009 . . . . . . . . . . . . 13 ((𝑞 ∈ ℙ ∧ 𝑥 ∈ ℕ) → ((𝑞 pCnt 𝑥) ∈ ℕ ↔ 𝑞 ∥ 𝑥))
2019ancoms 464 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑞 pCnt 𝑥) ∈ ℕ ↔ 𝑞 ∥ 𝑥))
21 prmnn 16811 . . . . . . . . . . . . . 14 (𝑞 ∈ ℙ → 𝑞 ∈ ℕ)
22 nnuz 12973 . . . . . . . . . . . . . 14 ℕ = (ℤ≥‘1)
2321, 22eleqtrdi 2870 . . . . . . . . . . . . 13 (𝑞 ∈ ℙ → 𝑞 ∈ (ℤ≥‘1))
24 nnz 12683 . . . . . . . . . . . . 13 (𝑥 ∈ ℕ → 𝑥 ∈ ℤ)
25 elfz5 13617 . . . . . . . . . . . . 13 ((𝑞 ∈ (ℤ≥‘1) ∧ 𝑥 ∈ ℤ) → (𝑞 ∈ (1...𝑥) ↔ 𝑞 ≤ 𝑥))
2623, 24, 25syl2anr 609 . . . . . . . . . . . 12 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (𝑞 ∈ (1...𝑥) ↔ 𝑞 ≤ 𝑥))
2718, 20, 263imtr4d 297 . . . . . . . . . . 11 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑞 pCnt 𝑥) ∈ ℕ → 𝑞 ∈ (1...𝑥)))
2814, 27sylbid 243 . . . . . . . . . 10 ((𝑥 ∈ ℕ ∧ 𝑞 ∈ ℙ) → (((𝑀‘𝑥)‘𝑞) ∈ ℕ → 𝑞 ∈ (1...𝑥)))
2928expimpd 459 . . . . . . . . 9 (𝑥 ∈ ℕ → ((𝑞 ∈ ℙ ∧ ((𝑀‘𝑥)‘𝑞) ∈ ℕ) → 𝑞 ∈ (1...𝑥)))
3012, 29sylbid 243 . . . . . . . 8 (𝑥 ∈ ℕ → (𝑞 ∈ (◡(𝑀‘𝑥) “ ℕ) → 𝑞 ∈ (1...𝑥)))
3130ssrdv 3936 . . . . . . 7 (𝑥 ∈ ℕ → (◡(𝑀‘𝑥) “ ℕ) ⊆ (1...𝑥))
32 ssfi 9166 . . . . . . 7 (((1...𝑥) ∈ Fin ∧ (◡(𝑀‘𝑥) “ ℕ) ⊆ (1...𝑥)) → (◡(𝑀‘𝑥) “ ℕ) ∈ Fin)
339, 31, 32sylancr 599 . . . . . 6 (𝑥 ∈ ℕ → (◡(𝑀‘𝑥) “ ℕ) ∈ Fin)
34 cnveq 5847 . . . . . . . . 9 (𝑒 = (𝑀‘𝑥) → ◡𝑒 = ◡(𝑀‘𝑥))
3534imaeq1d 6049 . . . . . . . 8 (𝑒 = (𝑀‘𝑥) → (◡𝑒 “ ℕ) = (◡(𝑀‘𝑥) “ ℕ))
3635eleq1d 2845 . . . . . . 7 (𝑒 = (𝑀‘𝑥) → ((◡𝑒 “ ℕ) ∈ Fin ↔ (◡(𝑀‘𝑥) “ ℕ) ∈ Fin))
37 1arith.2 . . . . . . 7 𝑅 = {𝑒 ∈ (ℕ0 ↑m ℙ) ∣ (◡𝑒 “ ℕ) ∈ Fin}
3836, 37elrab2 3648 . . . . . 6 ((𝑀‘𝑥) ∈ 𝑅 ↔ ((𝑀‘𝑥) ∈ (ℕ0 ↑m ℙ) ∧ (◡(𝑀‘𝑥) “ ℕ) ∈ Fin))
398, 33, 38sylanbrc 595 . . . . 5 (𝑥 ∈ ℕ → (𝑀‘𝑥) ∈ 𝑅)
4039rgen 3078 . . . 4 ∀𝑥 ∈ ℕ (𝑀‘𝑥) ∈ 𝑅
41 ffnfv 7107 . . . 4 (𝑀:ℕ⟶𝑅 ↔ (𝑀 Fn ℕ ∧ ∀𝑥 ∈ ℕ (𝑀‘𝑥) ∈ 𝑅))
424, 40, 41mpbir2an 724 . . 3 𝑀:ℕ⟶𝑅
4313adantlr 728 . . . . . . . 8 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑞 ∈ ℙ) → ((𝑀‘𝑥)‘𝑞) = (𝑞 pCnt 𝑥))
4431arithlem2 17063 . . . . . . . . 9 ((𝑦 ∈ ℕ ∧ 𝑞 ∈ ℙ) → ((𝑀‘𝑦)‘𝑞) = (𝑞 pCnt 𝑦))
4544adantll 727 . . . . . . . 8 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑞 ∈ ℙ) → ((𝑀‘𝑦)‘𝑞) = (𝑞 pCnt 𝑦))
4643, 45eqeq12d 2776 . . . . . . 7 (((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) ∧ 𝑞 ∈ ℙ) → (((𝑀‘𝑥)‘𝑞) = ((𝑀‘𝑦)‘𝑞) ↔ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
4746ralbidva 3183 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (∀𝑞 ∈ ℙ ((𝑀‘𝑥)‘𝑞) = ((𝑀‘𝑦)‘𝑞) ↔ ∀𝑞 ∈ ℙ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
4831arithlem3 17064 . . . . . . 7 (𝑦 ∈ ℕ → (𝑀‘𝑦):ℙ⟶ℕ0)
49 ffn 6697 . . . . . . . 8 ((𝑀‘𝑦):ℙ⟶ℕ0 → (𝑀‘𝑦) Fn ℙ)
50 eqfnfv 7017 . . . . . . . 8 (((𝑀‘𝑥) Fn ℙ ∧ (𝑀‘𝑦) Fn ℙ) → ((𝑀‘𝑥) = (𝑀‘𝑦) ↔ ∀𝑞 ∈ ℙ ((𝑀‘𝑥)‘𝑞) = ((𝑀‘𝑦)‘𝑞)))
5110, 49, 50syl2an 608 . . . . . . 7 (((𝑀‘𝑥):ℙ⟶ℕ0 ∧ (𝑀‘𝑦):ℙ⟶ℕ0) → ((𝑀‘𝑥) = (𝑀‘𝑦) ↔ ∀𝑞 ∈ ℙ ((𝑀‘𝑥)‘𝑞) = ((𝑀‘𝑦)‘𝑞)))
525, 48, 51syl2an 608 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑀‘𝑥) = (𝑀‘𝑦) ↔ ∀𝑞 ∈ ℙ ((𝑀‘𝑥)‘𝑞) = ((𝑀‘𝑦)‘𝑞)))
53 nnnn0 12582 . . . . . . 7 (𝑥 ∈ ℕ → 𝑥 ∈ ℕ0)
54 nnnn0 12582 . . . . . . 7 (𝑦 ∈ ℕ → 𝑦 ∈ ℕ0)
55 pc11 17019 . . . . . . 7 ((𝑥 ∈ ℕ0 ∧ 𝑦 ∈ ℕ0) → (𝑥 = 𝑦 ↔ ∀𝑞 ∈ ℙ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
5653, 54, 55syl2an 608 . . . . . 6 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → (𝑥 = 𝑦 ↔ ∀𝑞 ∈ ℙ (𝑞 pCnt 𝑥) = (𝑞 pCnt 𝑦)))
5747, 52, 563bitr4d 314 . . . . 5 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑀‘𝑥) = (𝑀‘𝑦) ↔ 𝑥 = 𝑦))
5857biimpd 232 . . . 4 ((𝑥 ∈ ℕ ∧ 𝑦 ∈ ℕ) → ((𝑀‘𝑥) = (𝑀‘𝑦) → 𝑥 = 𝑦))
5958rgen2 3202 . . 3 ∀𝑥 ∈ ℕ ∀𝑦 ∈ ℕ ((𝑀‘𝑥) = (𝑀‘𝑦) → 𝑥 = 𝑦)
60 dff13 7246 . . 3 (𝑀:ℕ–1-1→𝑅 ↔ (𝑀:ℕ⟶𝑅 ∧ ∀𝑥 ∈ ℕ ∀𝑦 ∈ ℕ ((𝑀‘𝑥) = (𝑀‘𝑦) → 𝑥 = 𝑦)))
6142, 59, 60mpbir2an 724 . 2 𝑀:ℕ–1-1→𝑅
62 eqid 2760 . . . . . 6 (𝑔 ∈ ℕ ↦ if(𝑔 ∈ ℙ, (𝑔↑(𝑓‘𝑔)), 1)) = (𝑔 ∈ ℕ ↦ if(𝑔 ∈ ℙ, (𝑔↑(𝑓‘𝑔)), 1))
63 cnveq 5847 . . . . . . . . . . . 12 (𝑒 = 𝑓 → ◡𝑒 = ◡𝑓)
6463imaeq1d 6049 . . . . . . . . . . 11 (𝑒 = 𝑓 → (◡𝑒 “ ℕ) = (◡𝑓 “ ℕ))
6564eleq1d 2845 . . . . . . . . . 10 (𝑒 = 𝑓 → ((◡𝑒 “ ℕ) ∈ Fin ↔ (◡𝑓 “ ℕ) ∈ Fin))
6665, 37elrab2 3648 . . . . . . . . 9 (𝑓 ∈ 𝑅 ↔ (𝑓 ∈ (ℕ0 ↑m ℙ) ∧ (◡𝑓 “ ℕ) ∈ Fin))
6766simplbi 502 . . . . . . . 8 (𝑓 ∈ 𝑅 → 𝑓 ∈ (ℕ0 ↑m ℙ))
686, 1elmap 8877 . . . . . . . 8 (𝑓 ∈ (ℕ0 ↑m ℙ) ↔ 𝑓:ℙ⟶ℕ0)
6967, 68sylib 221 . . . . . . 7 (𝑓 ∈ 𝑅 → 𝑓:ℙ⟶ℕ0)
7069ad2antrr 739 . . . . . 6 (((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) → 𝑓:ℙ⟶ℕ0)
71 simplr 781 . . . . . . . . 9 (((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) → 𝑦 ∈ ℝ)
72 0re 11281 . . . . . . . . 9 0 ∈ ℝ
73 ifcl 4527 . . . . . . . . 9 ((𝑦 ∈ ℝ ∧ 0 ∈ ℝ) → if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ)
7471, 72, 73sylancl 598 . . . . . . . 8 (((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) → if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ)
75 max1 13284 . . . . . . . . 9 ((0 ∈ ℝ ∧ 𝑦 ∈ ℝ) → 0 ≤ if(0 ≤ 𝑦, 𝑦, 0))
7672, 71, 75sylancr 599 . . . . . . . 8 (((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) → 0 ≤ if(0 ≤ 𝑦, 𝑦, 0))
77 flge0nn0 13928 . . . . . . . 8 ((if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ ∧ 0 ≤ if(0 ≤ 𝑦, 𝑦, 0)) → (⌊‘if(0 ≤ 𝑦, 𝑦, 0)) ∈ ℕ0)
7874, 76, 77syl2anc 596 . . . . . . 7 (((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) → (⌊‘if(0 ≤ 𝑦, 𝑦, 0)) ∈ ℕ0)
79 nn0p1nn 12614 . . . . . . 7 ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) ∈ ℕ0 → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ∈ ℕ)
8078, 79syl 18 . . . . . 6 (((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ∈ ℕ)
8171adantr 486 . . . . . . . . . 10 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑦 ∈ ℝ)
8280adantr 486 . . . . . . . . . . 11 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ∈ ℕ)
8382nnred 12319 . . . . . . . . . 10 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ∈ ℝ)
8415ssriv 3934 . . . . . . . . . . . 12 ℙ ⊆ ℤ
85 zssre 12669 . . . . . . . . . . . 12 ℤ ⊆ ℝ
8684, 85sstri 3939 . . . . . . . . . . 11 ℙ ⊆ ℝ
87 simprl 783 . . . . . . . . . . 11 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑞 ∈ ℙ)
8886, 87sselid 3928 . . . . . . . . . 10 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑞 ∈ ℝ)
8974adantr 486 . . . . . . . . . . 11 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ)
90 max2 13286 . . . . . . . . . . . 12 ((0 ∈ ℝ ∧ 𝑦 ∈ ℝ) → 𝑦 ≤ if(0 ≤ 𝑦, 𝑦, 0))
9172, 81, 90sylancr 599 . . . . . . . . . . 11 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑦 ≤ if(0 ≤ 𝑦, 𝑦, 0))
92 flltp1 13908 . . . . . . . . . . . 12 (if(0 ≤ 𝑦, 𝑦, 0) ∈ ℝ → if(0 ≤ 𝑦, 𝑦, 0) < ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1))
9389, 92syl 18 . . . . . . . . . . 11 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → if(0 ≤ 𝑦, 𝑦, 0) < ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1))
9481, 89, 83, 91, 93lelttrd 11439 . . . . . . . . . 10 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑦 < ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1))
95 simprr 785 . . . . . . . . . 10 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)
9681, 83, 88, 94, 95ltletrd 11441 . . . . . . . . 9 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑦 < 𝑞)
9781, 88ltnled 11428 . . . . . . . . 9 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑦 < 𝑞 ↔ ¬ 𝑞 ≤ 𝑦))
9896, 97mpbid 235 . . . . . . . 8 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ¬ 𝑞 ≤ 𝑦)
9987biantrurd 542 . . . . . . . . . 10 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((𝑓‘𝑞) ∈ ℕ ↔ (𝑞 ∈ ℙ ∧ (𝑓‘𝑞) ∈ ℕ)))
10070adantr 486 . . . . . . . . . . 11 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → 𝑓:ℙ⟶ℕ0)
101 ffn 6697 . . . . . . . . . . 11 (𝑓:ℙ⟶ℕ0 → 𝑓 Fn ℙ)
102 elpreima 7045 . . . . . . . . . . 11 (𝑓 Fn ℙ → (𝑞 ∈ (◡𝑓 “ ℕ) ↔ (𝑞 ∈ ℙ ∧ (𝑓‘𝑞) ∈ ℕ)))
103100, 101, 1023syl 19 . . . . . . . . . 10 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑞 ∈ (◡𝑓 “ ℕ) ↔ (𝑞 ∈ ℙ ∧ (𝑓‘𝑞) ∈ ℕ)))
10499, 103bitr4d 285 . . . . . . . . 9 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((𝑓‘𝑞) ∈ ℕ ↔ 𝑞 ∈ (◡𝑓 “ ℕ)))
105 simplr 781 . . . . . . . . . 10 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦)
106 breq1 5105 . . . . . . . . . . 11 (𝑘 = 𝑞 → (𝑘 ≤ 𝑦 ↔ 𝑞 ≤ 𝑦))
107106rspccv 3573 . . . . . . . . . 10 (∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦 → (𝑞 ∈ (◡𝑓 “ ℕ) → 𝑞 ≤ 𝑦))
108105, 107syl 18 . . . . . . . . 9 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑞 ∈ (◡𝑓 “ ℕ) → 𝑞 ≤ 𝑦))
109104, 108sylbid 243 . . . . . . . 8 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((𝑓‘𝑞) ∈ ℕ → 𝑞 ≤ 𝑦))
11098, 109mtod 201 . . . . . . 7 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ¬ (𝑓‘𝑞) ∈ ℕ)
111100, 87ffvelcdmd 7073 . . . . . . . . 9 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑓‘𝑞) ∈ ℕ0)
112 elnn0 12577 . . . . . . . . 9 ((𝑓‘𝑞) ∈ ℕ0 ↔ ((𝑓‘𝑞) ∈ ℕ ∨ (𝑓‘𝑞) = 0))
113111, 112sylib 221 . . . . . . . 8 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → ((𝑓‘𝑞) ∈ ℕ ∨ (𝑓‘𝑞) = 0))
114113ord 878 . . . . . . 7 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (¬ (𝑓‘𝑞) ∈ ℕ → (𝑓‘𝑞) = 0))
115110, 114mpd 16 . . . . . 6 ((((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) ∧ (𝑞 ∈ ℙ ∧ ((⌊‘if(0 ≤ 𝑦, 𝑦, 0)) + 1) ≤ 𝑞)) → (𝑓‘𝑞) = 0)
1163, 62, 70, 80, 1151arithlem4 17065 . . . . 5 (((𝑓 ∈ 𝑅 ∧ 𝑦 ∈ ℝ) ∧ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦) → ∃𝑥 ∈ ℕ 𝑓 = (𝑀‘𝑥))
117 cnvimass 6072 . . . . . . 7 (◡𝑓 “ ℕ) ⊆ dom 𝑓
11869fdmd 6708 . . . . . . . 8 (𝑓 ∈ 𝑅 → dom 𝑓 = ℙ)
119118, 86eqsstrdi 3974 . . . . . . 7 (𝑓 ∈ 𝑅 → dom 𝑓 ⊆ ℝ)
120117, 119sstrid 3941 . . . . . 6 (𝑓 ∈ 𝑅 → (◡𝑓 “ ℕ) ⊆ ℝ)
12166simprbi 503 . . . . . 6 (𝑓 ∈ 𝑅 → (◡𝑓 “ ℕ) ∈ Fin)
122 fimaxre2 12231 . . . . . 6 (((◡𝑓 “ ℕ) ⊆ ℝ ∧ (◡𝑓 “ ℕ) ∈ Fin) → ∃𝑦 ∈ ℝ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦)
123120, 121, 122syl2anc 596 . . . . 5 (𝑓 ∈ 𝑅 → ∃𝑦 ∈ ℝ ∀𝑘 ∈ (◡𝑓 “ ℕ)𝑘 ≤ 𝑦)
124116, 123r19.29a 3170 . . . 4 (𝑓 ∈ 𝑅 → ∃𝑥 ∈ ℕ 𝑓 = (𝑀‘𝑥))
125124rgen 3078 . . 3 ∀𝑓 ∈ 𝑅 ∃𝑥 ∈ ℕ 𝑓 = (𝑀‘𝑥)
126 dffo3 7090 . . 3 (𝑀:ℕ–onto→𝑅 ↔ (𝑀:ℕ⟶𝑅 ∧ ∀𝑓 ∈ 𝑅 ∃𝑥 ∈ ℕ 𝑓 = (𝑀‘𝑥)))
12742, 125, 126mpbir2an 724 . 2 𝑀:ℕ–onto→𝑅
128 df-f1o 6534 . 2 (𝑀:ℕ–1-1-onto→𝑅 ↔ (𝑀:ℕ–1-1→𝑅 ∧ 𝑀:ℕ–onto→𝑅))
12961, 127, 128mpbir2an 724 1 𝑀:ℕ–1-1-onto→𝑅
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   = wceq 1570   ∈ wcel 2145  ∀wral 3076  ∃wrex 3086  {crab 3412   ⊆ wss 3898  ifcif 4481   class class class wbr 5102   ↦ cmpt 5185  ◡ccnv 5646  dom cdm 5647   “ cima 5650   Fn wfn 6522  ⟶wf 6523  –1-1→wf1 6524  –onto→wfo 6525  –1-1-onto→wf1o 6526  ‘cfv 6527  (class class class)co 7408   ↑m cmap 8825  Fincfn 8951  ℝcr 11170  0cc0 11171  1c1 11172   + caddc 11174   < clt 11314   ≤ cle 11315  ℕcn 12304  ℕ0cn0 12575  ℤcz 12662  ℤ≥cuz 12934  ...cfz 13608  ⌊cfl 13898  ↑cexp 14172   ∥ cdvds 16389  ℙcprime 16808   pCnt cpc 16975
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7734  ax-cnex 11227  ax-resscn 11228  ax-1cn 11229  ax-icn 11230  ax-addcl 11231  ax-addrcl 11232  ax-mulcl 11233  ax-mulrcl 11234  ax-mulcom 11235  ax-addass 11236  ax-mulass 11237  ax-distr 11238  ax-i2m1 11239  ax-1ne0 11240  ax-1rid 11241  ax-rnegex 11242  ax-rrecex 11243  ax-cnre 11244  ax-pre-lttri 11245  ax-pre-lttrn 11246  ax-pre-ltadd 11247  ax-pre-mulgt0 11248  ax-pre-sup 11249
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-nel 3062  df-ral 3077  df-rex 3087  df-rmo 3365  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-pss 3918  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-op 4590  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5542  df-eprel 5547  df-po 5555  df-so 5556  df-fr 5600  df-we 5602  df-xp 5653  df-rel 5654  df-cnv 5655  df-co 5656  df-dm 5657  df-rn 5658  df-res 5659  df-ima 5660  df-pred 6293  df-ord 6354  df-on 6355  df-lim 6356  df-suc 6357  df-iota 6483  df-fun 6529  df-fn 6530  df-f 6531  df-f1 6532  df-fo 6533  df-f1o 6534  df-fv 6535  df-riota 7365  df-ov 7411  df-oprab 7412  df-mpo 7413  df-om 7861  df-1st 7984  df-2nd 7985  df-frecs 8277  df-wrecs 8308  df-recs 8357  df-rdg 8396  df-1o 8454  df-2o 8455  df-er 8695  df-map 8827  df-en 8952  df-dom 8953  df-sdom 8954  df-fin 8955  df-sup 9412  df-inf 9413  df-pnf 11316  df-mnf 11317  df-xr 11318  df-ltxr 11319  df-le 11320  df-sub 11514  df-neg 11515  df-div 11943  df-nn 12305  df-2 12374  df-3 12375  df-n0 12576  df-z 12663  df-uz 12935  df-q 13045  df-rp 13090  df-fz 13609  df-fl 13900  df-mod 13978  df-seq 14113  df-exp 14173  df-cj 15233  df-re 15234  df-im 15235  df-sqrt 15369  df-abs 15370  df-dvds 16390  df-gcd 16632  df-prm 16809  df-pc 16976
This theorem is used by:  1arith2  17067  sqff1o  27472
  Copyright terms: Public domain W3C validator