Step | Hyp | Ref
| Expression |
1 | | df-fmtno 44932 |
. . 3
⊢ FermatNo
= (𝑛 ∈
ℕ0 ↦ ((2↑(2↑𝑛)) + 1)) |
2 | | 2nn 12029 |
. . . . . 6
⊢ 2 ∈
ℕ |
3 | 2 | a1i 11 |
. . . . 5
⊢ (𝑛 ∈ ℕ0
→ 2 ∈ ℕ) |
4 | | 2nn0 12233 |
. . . . . . 7
⊢ 2 ∈
ℕ0 |
5 | 4 | a1i 11 |
. . . . . 6
⊢ (𝑛 ∈ ℕ0
→ 2 ∈ ℕ0) |
6 | | id 22 |
. . . . . 6
⊢ (𝑛 ∈ ℕ0
→ 𝑛 ∈
ℕ0) |
7 | 5, 6 | nn0expcld 13942 |
. . . . 5
⊢ (𝑛 ∈ ℕ0
→ (2↑𝑛) ∈
ℕ0) |
8 | 3, 7 | nnexpcld 13941 |
. . . 4
⊢ (𝑛 ∈ ℕ0
→ (2↑(2↑𝑛))
∈ ℕ) |
9 | 8 | peano2nnd 11973 |
. . 3
⊢ (𝑛 ∈ ℕ0
→ ((2↑(2↑𝑛))
+ 1) ∈ ℕ) |
10 | 1, 9 | fmpti 6980 |
. 2
⊢
FermatNo:ℕ0⟶ℕ |
11 | | fmtno 44933 |
. . . . 5
⊢ (𝑛 ∈ ℕ0
→ (FermatNo‘𝑛) =
((2↑(2↑𝑛)) +
1)) |
12 | | fmtno 44933 |
. . . . 5
⊢ (𝑚 ∈ ℕ0
→ (FermatNo‘𝑚) =
((2↑(2↑𝑚)) +
1)) |
13 | 11, 12 | eqeqan12d 2753 |
. . . 4
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → ((FermatNo‘𝑛) = (FermatNo‘𝑚) ↔ ((2↑(2↑𝑛)) + 1) = ((2↑(2↑𝑚)) + 1))) |
14 | 5, 7 | nn0expcld 13942 |
. . . . . . . . 9
⊢ (𝑛 ∈ ℕ0
→ (2↑(2↑𝑛))
∈ ℕ0) |
15 | 14 | nn0cnd 12278 |
. . . . . . . 8
⊢ (𝑛 ∈ ℕ0
→ (2↑(2↑𝑛))
∈ ℂ) |
16 | 15 | adantr 480 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (2↑(2↑𝑛)) ∈ ℂ) |
17 | 4 | a1i 11 |
. . . . . . . . . 10
⊢ (𝑚 ∈ ℕ0
→ 2 ∈ ℕ0) |
18 | | id 22 |
. . . . . . . . . . 11
⊢ (𝑚 ∈ ℕ0
→ 𝑚 ∈
ℕ0) |
19 | 17, 18 | nn0expcld 13942 |
. . . . . . . . . 10
⊢ (𝑚 ∈ ℕ0
→ (2↑𝑚) ∈
ℕ0) |
20 | 17, 19 | nn0expcld 13942 |
. . . . . . . . 9
⊢ (𝑚 ∈ ℕ0
→ (2↑(2↑𝑚))
∈ ℕ0) |
21 | 20 | nn0cnd 12278 |
. . . . . . . 8
⊢ (𝑚 ∈ ℕ0
→ (2↑(2↑𝑚))
∈ ℂ) |
22 | 21 | adantl 481 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (2↑(2↑𝑚)) ∈ ℂ) |
23 | | 1cnd 10954 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → 1 ∈ ℂ) |
24 | 16, 22, 23 | addcan2d 11162 |
. . . . . 6
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (((2↑(2↑𝑛)) + 1) = ((2↑(2↑𝑚)) + 1) ↔ (2↑(2↑𝑛)) = (2↑(2↑𝑚)))) |
25 | | 2re 12030 |
. . . . . . . 8
⊢ 2 ∈
ℝ |
26 | 25 | a1i 11 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → 2 ∈ ℝ) |
27 | 7 | nn0zd 12406 |
. . . . . . . 8
⊢ (𝑛 ∈ ℕ0
→ (2↑𝑛) ∈
ℤ) |
28 | 27 | adantr 480 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (2↑𝑛) ∈ ℤ) |
29 | 19 | nn0zd 12406 |
. . . . . . . 8
⊢ (𝑚 ∈ ℕ0
→ (2↑𝑚) ∈
ℤ) |
30 | 29 | adantl 481 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (2↑𝑚) ∈ ℤ) |
31 | | 1lt2 12127 |
. . . . . . . 8
⊢ 1 <
2 |
32 | 31 | a1i 11 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → 1 < 2) |
33 | | expcan 13868 |
. . . . . . 7
⊢ (((2
∈ ℝ ∧ (2↑𝑛) ∈ ℤ ∧ (2↑𝑚) ∈ ℤ) ∧ 1 <
2) → ((2↑(2↑𝑛)) = (2↑(2↑𝑚)) ↔ (2↑𝑛) = (2↑𝑚))) |
34 | 26, 28, 30, 32, 33 | syl31anc 1371 |
. . . . . 6
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → ((2↑(2↑𝑛)) = (2↑(2↑𝑚)) ↔ (2↑𝑛) = (2↑𝑚))) |
35 | 24, 34 | bitrd 278 |
. . . . 5
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (((2↑(2↑𝑛)) + 1) = ((2↑(2↑𝑚)) + 1) ↔ (2↑𝑛) = (2↑𝑚))) |
36 | | nn0z 12326 |
. . . . . . 7
⊢ (𝑛 ∈ ℕ0
→ 𝑛 ∈
ℤ) |
37 | 36 | adantr 480 |
. . . . . 6
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → 𝑛 ∈ ℤ) |
38 | | nn0z 12326 |
. . . . . . 7
⊢ (𝑚 ∈ ℕ0
→ 𝑚 ∈
ℤ) |
39 | 38 | adantl 481 |
. . . . . 6
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → 𝑚 ∈ ℤ) |
40 | | expcan 13868 |
. . . . . . 7
⊢ (((2
∈ ℝ ∧ 𝑛
∈ ℤ ∧ 𝑚
∈ ℤ) ∧ 1 < 2) → ((2↑𝑛) = (2↑𝑚) ↔ 𝑛 = 𝑚)) |
41 | 40 | biimpd 228 |
. . . . . 6
⊢ (((2
∈ ℝ ∧ 𝑛
∈ ℤ ∧ 𝑚
∈ ℤ) ∧ 1 < 2) → ((2↑𝑛) = (2↑𝑚) → 𝑛 = 𝑚)) |
42 | 26, 37, 39, 32, 41 | syl31anc 1371 |
. . . . 5
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → ((2↑𝑛) = (2↑𝑚) → 𝑛 = 𝑚)) |
43 | 35, 42 | sylbid 239 |
. . . 4
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (((2↑(2↑𝑛)) + 1) = ((2↑(2↑𝑚)) + 1) → 𝑛 = 𝑚)) |
44 | 13, 43 | sylbid 239 |
. . 3
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → ((FermatNo‘𝑛) = (FermatNo‘𝑚) → 𝑛 = 𝑚)) |
45 | 44 | rgen2 3128 |
. 2
⊢
∀𝑛 ∈
ℕ0 ∀𝑚 ∈ ℕ0
((FermatNo‘𝑛) =
(FermatNo‘𝑚) →
𝑛 = 𝑚) |
46 | | dff13 7122 |
. 2
⊢
(FermatNo:ℕ0–1-1→ℕ ↔
(FermatNo:ℕ0⟶ℕ ∧ ∀𝑛 ∈ ℕ0 ∀𝑚 ∈ ℕ0
((FermatNo‘𝑛) =
(FermatNo‘𝑚) →
𝑛 = 𝑚))) |
47 | 10, 45, 46 | mpbir2an 707 |
1
⊢
FermatNo:ℕ0–1-1→ℕ |