Step | Hyp | Ref
| Expression |
1 | | df-fmtno 44980 |
. . 3
⊢ FermatNo
= (𝑛 ∈
ℕ0 ↦ ((2↑(2↑𝑛)) + 1)) |
2 | | 2nn 12046 |
. . . . . 6
⊢ 2 ∈
ℕ |
3 | 2 | a1i 11 |
. . . . 5
⊢ (𝑛 ∈ ℕ0
→ 2 ∈ ℕ) |
4 | | 2nn0 12250 |
. . . . . . 7
⊢ 2 ∈
ℕ0 |
5 | 4 | a1i 11 |
. . . . . 6
⊢ (𝑛 ∈ ℕ0
→ 2 ∈ ℕ0) |
6 | | id 22 |
. . . . . 6
⊢ (𝑛 ∈ ℕ0
→ 𝑛 ∈
ℕ0) |
7 | 5, 6 | nn0expcld 13961 |
. . . . 5
⊢ (𝑛 ∈ ℕ0
→ (2↑𝑛) ∈
ℕ0) |
8 | 3, 7 | nnexpcld 13960 |
. . . 4
⊢ (𝑛 ∈ ℕ0
→ (2↑(2↑𝑛))
∈ ℕ) |
9 | 8 | peano2nnd 11990 |
. . 3
⊢ (𝑛 ∈ ℕ0
→ ((2↑(2↑𝑛))
+ 1) ∈ ℕ) |
10 | 1, 9 | fmpti 6986 |
. 2
⊢
FermatNo:ℕ0⟶ℕ |
11 | | fmtno 44981 |
. . . . 5
⊢ (𝑛 ∈ ℕ0
→ (FermatNo‘𝑛) =
((2↑(2↑𝑛)) +
1)) |
12 | | fmtno 44981 |
. . . . 5
⊢ (𝑚 ∈ ℕ0
→ (FermatNo‘𝑚) =
((2↑(2↑𝑚)) +
1)) |
13 | 11, 12 | eqeqan12d 2752 |
. . . 4
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → ((FermatNo‘𝑛) = (FermatNo‘𝑚) ↔ ((2↑(2↑𝑛)) + 1) = ((2↑(2↑𝑚)) + 1))) |
14 | 5, 7 | nn0expcld 13961 |
. . . . . . . . 9
⊢ (𝑛 ∈ ℕ0
→ (2↑(2↑𝑛))
∈ ℕ0) |
15 | 14 | nn0cnd 12295 |
. . . . . . . 8
⊢ (𝑛 ∈ ℕ0
→ (2↑(2↑𝑛))
∈ ℂ) |
16 | 15 | adantr 481 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (2↑(2↑𝑛)) ∈ ℂ) |
17 | 4 | a1i 11 |
. . . . . . . . . 10
⊢ (𝑚 ∈ ℕ0
→ 2 ∈ ℕ0) |
18 | | id 22 |
. . . . . . . . . . 11
⊢ (𝑚 ∈ ℕ0
→ 𝑚 ∈
ℕ0) |
19 | 17, 18 | nn0expcld 13961 |
. . . . . . . . . 10
⊢ (𝑚 ∈ ℕ0
→ (2↑𝑚) ∈
ℕ0) |
20 | 17, 19 | nn0expcld 13961 |
. . . . . . . . 9
⊢ (𝑚 ∈ ℕ0
→ (2↑(2↑𝑚))
∈ ℕ0) |
21 | 20 | nn0cnd 12295 |
. . . . . . . 8
⊢ (𝑚 ∈ ℕ0
→ (2↑(2↑𝑚))
∈ ℂ) |
22 | 21 | adantl 482 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (2↑(2↑𝑚)) ∈ ℂ) |
23 | | 1cnd 10970 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → 1 ∈ ℂ) |
24 | 16, 22, 23 | addcan2d 11179 |
. . . . . 6
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (((2↑(2↑𝑛)) + 1) = ((2↑(2↑𝑚)) + 1) ↔ (2↑(2↑𝑛)) = (2↑(2↑𝑚)))) |
25 | | 2re 12047 |
. . . . . . . 8
⊢ 2 ∈
ℝ |
26 | 25 | a1i 11 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → 2 ∈ ℝ) |
27 | 7 | nn0zd 12424 |
. . . . . . . 8
⊢ (𝑛 ∈ ℕ0
→ (2↑𝑛) ∈
ℤ) |
28 | 27 | adantr 481 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (2↑𝑛) ∈ ℤ) |
29 | 19 | nn0zd 12424 |
. . . . . . . 8
⊢ (𝑚 ∈ ℕ0
→ (2↑𝑚) ∈
ℤ) |
30 | 29 | adantl 482 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (2↑𝑚) ∈ ℤ) |
31 | | 1lt2 12144 |
. . . . . . . 8
⊢ 1 <
2 |
32 | 31 | a1i 11 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → 1 < 2) |
33 | | expcan 13887 |
. . . . . . 7
⊢ (((2
∈ ℝ ∧ (2↑𝑛) ∈ ℤ ∧ (2↑𝑚) ∈ ℤ) ∧ 1 <
2) → ((2↑(2↑𝑛)) = (2↑(2↑𝑚)) ↔ (2↑𝑛) = (2↑𝑚))) |
34 | 26, 28, 30, 32, 33 | syl31anc 1372 |
. . . . . 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 12343 |
. . . . . . 7
⊢ (𝑛 ∈ ℕ0
→ 𝑛 ∈
ℤ) |
37 | 36 | adantr 481 |
. . . . . 6
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → 𝑛 ∈ ℤ) |
38 | | nn0z 12343 |
. . . . . . 7
⊢ (𝑚 ∈ ℕ0
→ 𝑚 ∈
ℤ) |
39 | 38 | adantl 482 |
. . . . . 6
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → 𝑚 ∈ ℤ) |
40 | | expcan 13887 |
. . . . . . 7
⊢ (((2
∈ ℝ ∧ 𝑛
∈ ℤ ∧ 𝑚
∈ ℤ) ∧ 1 < 2) → ((2↑𝑛) = (2↑𝑚) ↔ 𝑛 = 𝑚)) |
41 | 40 | biimpd 228 |
. . . . . 6
⊢ (((2
∈ ℝ ∧ 𝑛
∈ ℤ ∧ 𝑚
∈ ℤ) ∧ 1 < 2) → ((2↑𝑛) = (2↑𝑚) → 𝑛 = 𝑚)) |
42 | 26, 37, 39, 32, 41 | syl31anc 1372 |
. . . . 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 3120 |
. 2
⊢
∀𝑛 ∈
ℕ0 ∀𝑚 ∈ ℕ0
((FermatNo‘𝑛) =
(FermatNo‘𝑚) →
𝑛 = 𝑚) |
46 | | dff13 7128 |
. 2
⊢
(FermatNo:ℕ0–1-1→ℕ ↔
(FermatNo:ℕ0⟶ℕ ∧ ∀𝑛 ∈ ℕ0 ∀𝑚 ∈ ℕ0
((FermatNo‘𝑛) =
(FermatNo‘𝑚) →
𝑛 = 𝑚))) |
47 | 10, 45, 46 | mpbir2an 708 |
1
⊢
FermatNo:ℕ0–1-1→ℕ |