Step | Hyp | Ref
| Expression |
1 | | fmtnorn 44986 |
. 2
⊢ (𝐹 ∈ ran FermatNo ↔
∃𝑛 ∈
ℕ0 (FermatNo‘𝑛) = 𝐹) |
2 | | fmtnorn 44986 |
. 2
⊢ (𝐺 ∈ ran FermatNo ↔
∃𝑚 ∈
ℕ0 (FermatNo‘𝑚) = 𝐺) |
3 | | 2a1 28 |
. . . . . . . 8
⊢ (𝐹 = 𝐺 → ((FermatNo‘𝑛) = 𝐹 → ((𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → 𝐹 = 𝐺))) |
4 | 3 | 2a1d 26 |
. . . . . . 7
⊢ (𝐹 = 𝐺 → ((𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0)
→ ((FermatNo‘𝑚)
= 𝐺 →
((FermatNo‘𝑛) = 𝐹 → ((𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → 𝐹 = 𝐺))))) |
5 | | fmtnonn 44983 |
. . . . . . . . . . . 12
⊢ (𝑛 ∈ ℕ0
→ (FermatNo‘𝑛)
∈ ℕ) |
6 | 5 | ad2antrl 725 |
. . . . . . . . . . 11
⊢ ((¬
𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0))
→ (FermatNo‘𝑛)
∈ ℕ) |
7 | 6 | adantr 481 |
. . . . . . . . . 10
⊢ (((¬
𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0))
∧ ((FermatNo‘𝑚) =
𝐺 ∧
(FermatNo‘𝑛) = 𝐹)) → (FermatNo‘𝑛) ∈
ℕ) |
8 | | eleq1 2826 |
. . . . . . . . . . 11
⊢
((FermatNo‘𝑛)
= 𝐹 →
((FermatNo‘𝑛) ∈
ℕ ↔ 𝐹 ∈
ℕ)) |
9 | 8 | ad2antll 726 |
. . . . . . . . . 10
⊢ (((¬
𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0))
∧ ((FermatNo‘𝑚) =
𝐺 ∧
(FermatNo‘𝑛) = 𝐹)) → ((FermatNo‘𝑛) ∈ ℕ ↔ 𝐹 ∈
ℕ)) |
10 | 7, 9 | mpbid 231 |
. . . . . . . . 9
⊢ (((¬
𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0))
∧ ((FermatNo‘𝑚) =
𝐺 ∧
(FermatNo‘𝑛) = 𝐹)) → 𝐹 ∈ ℕ) |
11 | | fmtnonn 44983 |
. . . . . . . . . . . 12
⊢ (𝑚 ∈ ℕ0
→ (FermatNo‘𝑚)
∈ ℕ) |
12 | 11 | ad2antll 726 |
. . . . . . . . . . 11
⊢ ((¬
𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0))
→ (FermatNo‘𝑚)
∈ ℕ) |
13 | 12 | adantr 481 |
. . . . . . . . . 10
⊢ (((¬
𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0))
∧ ((FermatNo‘𝑚) =
𝐺 ∧
(FermatNo‘𝑛) = 𝐹)) → (FermatNo‘𝑚) ∈
ℕ) |
14 | | eleq1 2826 |
. . . . . . . . . . 11
⊢
((FermatNo‘𝑚)
= 𝐺 →
((FermatNo‘𝑚) ∈
ℕ ↔ 𝐺 ∈
ℕ)) |
15 | 14 | ad2antrl 725 |
. . . . . . . . . 10
⊢ (((¬
𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0))
∧ ((FermatNo‘𝑚) =
𝐺 ∧
(FermatNo‘𝑛) = 𝐹)) → ((FermatNo‘𝑚) ∈ ℕ ↔ 𝐺 ∈
ℕ)) |
16 | 13, 15 | mpbid 231 |
. . . . . . . . 9
⊢ (((¬
𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0))
∧ ((FermatNo‘𝑚) =
𝐺 ∧
(FermatNo‘𝑛) = 𝐹)) → 𝐺 ∈ ℕ) |
17 | | simpll 764 |
. . . . . . . . . . . . . . 15
⊢ (((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) ∧ ¬ (FermatNo‘𝑛) = (FermatNo‘𝑚)) → 𝑛 ∈ ℕ0) |
18 | | simplr 766 |
. . . . . . . . . . . . . . 15
⊢ (((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) ∧ ¬ (FermatNo‘𝑛) = (FermatNo‘𝑚)) → 𝑚 ∈ ℕ0) |
19 | | fveq2 6774 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑛 = 𝑚 → (FermatNo‘𝑛) = (FermatNo‘𝑚)) |
20 | 19 | con3i 154 |
. . . . . . . . . . . . . . . . 17
⊢ (¬
(FermatNo‘𝑛) =
(FermatNo‘𝑚) →
¬ 𝑛 = 𝑚) |
21 | 20 | adantl 482 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) ∧ ¬ (FermatNo‘𝑛) = (FermatNo‘𝑚)) → ¬ 𝑛 = 𝑚) |
22 | 21 | neqned 2950 |
. . . . . . . . . . . . . . 15
⊢ (((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) ∧ ¬ (FermatNo‘𝑛) = (FermatNo‘𝑚)) → 𝑛 ≠ 𝑚) |
23 | | goldbachth 44999 |
. . . . . . . . . . . . . . 15
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0 ∧ 𝑛
≠ 𝑚) →
((FermatNo‘𝑛) gcd
(FermatNo‘𝑚)) =
1) |
24 | 17, 18, 22, 23 | syl3anc 1370 |
. . . . . . . . . . . . . 14
⊢ (((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) ∧ ¬ (FermatNo‘𝑛) = (FermatNo‘𝑚)) → ((FermatNo‘𝑛) gcd (FermatNo‘𝑚)) = 1) |
25 | 24 | ex 413 |
. . . . . . . . . . . . 13
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (¬ (FermatNo‘𝑛) = (FermatNo‘𝑚) → ((FermatNo‘𝑛) gcd (FermatNo‘𝑚)) = 1)) |
26 | | eqeq12 2755 |
. . . . . . . . . . . . . . . 16
⊢
(((FermatNo‘𝑛)
= 𝐹 ∧
(FermatNo‘𝑚) = 𝐺) → ((FermatNo‘𝑛) = (FermatNo‘𝑚) ↔ 𝐹 = 𝐺)) |
27 | 26 | notbid 318 |
. . . . . . . . . . . . . . 15
⊢
(((FermatNo‘𝑛)
= 𝐹 ∧
(FermatNo‘𝑚) = 𝐺) → (¬
(FermatNo‘𝑛) =
(FermatNo‘𝑚) ↔
¬ 𝐹 = 𝐺)) |
28 | | oveq12 7284 |
. . . . . . . . . . . . . . . 16
⊢
(((FermatNo‘𝑛)
= 𝐹 ∧
(FermatNo‘𝑚) = 𝐺) → ((FermatNo‘𝑛) gcd (FermatNo‘𝑚)) = (𝐹 gcd 𝐺)) |
29 | 28 | eqeq1d 2740 |
. . . . . . . . . . . . . . 15
⊢
(((FermatNo‘𝑛)
= 𝐹 ∧
(FermatNo‘𝑚) = 𝐺) → (((FermatNo‘𝑛) gcd (FermatNo‘𝑚)) = 1 ↔ (𝐹 gcd 𝐺) = 1)) |
30 | 27, 29 | imbi12d 345 |
. . . . . . . . . . . . . 14
⊢
(((FermatNo‘𝑛)
= 𝐹 ∧
(FermatNo‘𝑚) = 𝐺) → ((¬
(FermatNo‘𝑛) =
(FermatNo‘𝑚) →
((FermatNo‘𝑛) gcd
(FermatNo‘𝑚)) = 1)
↔ (¬ 𝐹 = 𝐺 → (𝐹 gcd 𝐺) = 1))) |
31 | 30 | ancoms 459 |
. . . . . . . . . . . . 13
⊢
(((FermatNo‘𝑚)
= 𝐺 ∧
(FermatNo‘𝑛) = 𝐹) → ((¬
(FermatNo‘𝑛) =
(FermatNo‘𝑚) →
((FermatNo‘𝑛) gcd
(FermatNo‘𝑚)) = 1)
↔ (¬ 𝐹 = 𝐺 → (𝐹 gcd 𝐺) = 1))) |
32 | 25, 31 | syl5ibcom 244 |
. . . . . . . . . . . 12
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹) → (¬ 𝐹 = 𝐺 → (𝐹 gcd 𝐺) = 1))) |
33 | 32 | com23 86 |
. . . . . . . . . . 11
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (¬ 𝐹 = 𝐺 → (((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹) → (𝐹 gcd 𝐺) = 1))) |
34 | 33 | impcom 408 |
. . . . . . . . . 10
⊢ ((¬
𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0))
→ (((FermatNo‘𝑚)
= 𝐺 ∧
(FermatNo‘𝑛) = 𝐹) → (𝐹 gcd 𝐺) = 1)) |
35 | 34 | imp 407 |
. . . . . . . . 9
⊢ (((¬
𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0))
∧ ((FermatNo‘𝑚) =
𝐺 ∧
(FermatNo‘𝑛) = 𝐹)) → (𝐹 gcd 𝐺) = 1) |
36 | | prmnn 16379 |
. . . . . . . . . . . 12
⊢ (𝐼 ∈ ℙ → 𝐼 ∈
ℕ) |
37 | | coprmdvds1 16357 |
. . . . . . . . . . . . 13
⊢ ((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) → ((𝐼 ∈ ℕ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → 𝐼 = 1)) |
38 | 37 | imp 407 |
. . . . . . . . . . . 12
⊢ (((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) ∧ (𝐼 ∈ ℕ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺)) → 𝐼 = 1) |
39 | 36, 38 | syl3anr1 1415 |
. . . . . . . . . . 11
⊢ (((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) ∧ (𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺)) → 𝐼 = 1) |
40 | | eleq1 2826 |
. . . . . . . . . . . . . . . 16
⊢ (𝐼 = 1 → (𝐼 ∈ ℙ ↔ 1 ∈
ℙ)) |
41 | | 1nprm 16384 |
. . . . . . . . . . . . . . . . 17
⊢ ¬ 1
∈ ℙ |
42 | 41 | pm2.21i 119 |
. . . . . . . . . . . . . . . 16
⊢ (1 ∈
ℙ → 𝐹 = 𝐺) |
43 | 40, 42 | syl6bi 252 |
. . . . . . . . . . . . . . 15
⊢ (𝐼 = 1 → (𝐼 ∈ ℙ → 𝐹 = 𝐺)) |
44 | 43 | com12 32 |
. . . . . . . . . . . . . 14
⊢ (𝐼 ∈ ℙ → (𝐼 = 1 → 𝐹 = 𝐺)) |
45 | 44 | a1d 25 |
. . . . . . . . . . . . 13
⊢ (𝐼 ∈ ℙ → ((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) → (𝐼 = 1 → 𝐹 = 𝐺))) |
46 | 45 | 3ad2ant1 1132 |
. . . . . . . . . . . 12
⊢ ((𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → ((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) → (𝐼 = 1 → 𝐹 = 𝐺))) |
47 | 46 | impcom 408 |
. . . . . . . . . . 11
⊢ (((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) ∧ (𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺)) → (𝐼 = 1 → 𝐹 = 𝐺)) |
48 | 39, 47 | mpd 15 |
. . . . . . . . . 10
⊢ (((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) ∧ (𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺)) → 𝐹 = 𝐺) |
49 | 48 | ex 413 |
. . . . . . . . 9
⊢ ((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) → ((𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → 𝐹 = 𝐺)) |
50 | 10, 16, 35, 49 | syl3anc 1370 |
. . . . . . . 8
⊢ (((¬
𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0))
∧ ((FermatNo‘𝑚) =
𝐺 ∧
(FermatNo‘𝑛) = 𝐹)) → ((𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → 𝐹 = 𝐺)) |
51 | 50 | exp43 437 |
. . . . . . 7
⊢ (¬
𝐹 = 𝐺 → ((𝑛 ∈ ℕ0 ∧ 𝑚 ∈ ℕ0)
→ ((FermatNo‘𝑚)
= 𝐺 →
((FermatNo‘𝑛) = 𝐹 → ((𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → 𝐹 = 𝐺))))) |
52 | 4, 51 | pm2.61i 182 |
. . . . . 6
⊢ ((𝑛 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → ((FermatNo‘𝑚) = 𝐺 → ((FermatNo‘𝑛) = 𝐹 → ((𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → 𝐹 = 𝐺)))) |
53 | 52 | rexlimdva 3213 |
. . . . 5
⊢ (𝑛 ∈ ℕ0
→ (∃𝑚 ∈
ℕ0 (FermatNo‘𝑚) = 𝐺 → ((FermatNo‘𝑛) = 𝐹 → ((𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → 𝐹 = 𝐺)))) |
54 | 53 | com23 86 |
. . . 4
⊢ (𝑛 ∈ ℕ0
→ ((FermatNo‘𝑛)
= 𝐹 → (∃𝑚 ∈ ℕ0
(FermatNo‘𝑚) = 𝐺 → ((𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → 𝐹 = 𝐺)))) |
55 | 54 | rexlimiv 3209 |
. . 3
⊢
(∃𝑛 ∈
ℕ0 (FermatNo‘𝑛) = 𝐹 → (∃𝑚 ∈ ℕ0
(FermatNo‘𝑚) = 𝐺 → ((𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → 𝐹 = 𝐺))) |
56 | 55 | imp 407 |
. 2
⊢
((∃𝑛 ∈
ℕ0 (FermatNo‘𝑛) = 𝐹 ∧ ∃𝑚 ∈ ℕ0
(FermatNo‘𝑚) = 𝐺) → ((𝐼 ∈ ℙ ∧ 𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → 𝐹 = 𝐺)) |
57 | 1, 2, 56 | syl2anb 598 |
1
⊢ ((𝐹 ∈ ran FermatNo ∧ 𝐺 ∈ ran FermatNo) →
((𝐼 ∈ ℙ ∧
𝐼 ∥ 𝐹 ∧ 𝐼 ∥ 𝐺) → 𝐹 = 𝐺)) |