Step | Hyp | Ref
| Expression |
1 | | ncoprmgcdgt1b 16356 |
. . . 4
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) →
(∃𝑖 ∈
(ℤ≥‘2)(𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵) ↔ 1 < (𝐴 gcd 𝐵))) |
2 | 1 | bicomd 222 |
. . 3
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (1 <
(𝐴 gcd 𝐵) ↔ ∃𝑖 ∈
(ℤ≥‘2)(𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵))) |
3 | 2 | 3adant3 1131 |
. 2
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) → (1 < (𝐴 gcd 𝐵) ↔ ∃𝑖 ∈
(ℤ≥‘2)(𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵))) |
4 | | simp1 1135 |
. . . . . . . . . . . . 13
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) → 𝐴 ∈ ℕ) |
5 | | eluzelz 12592 |
. . . . . . . . . . . . 13
⊢ (𝑖 ∈
(ℤ≥‘2) → 𝑖 ∈ ℤ) |
6 | 4, 5 | anim12ci 614 |
. . . . . . . . . . . 12
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
→ (𝑖 ∈ ℤ
∧ 𝐴 ∈
ℕ)) |
7 | | dvdsle 16019 |
. . . . . . . . . . . 12
⊢ ((𝑖 ∈ ℤ ∧ 𝐴 ∈ ℕ) → (𝑖 ∥ 𝐴 → 𝑖 ≤ 𝐴)) |
8 | 6, 7 | syl 17 |
. . . . . . . . . . 11
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
→ (𝑖 ∥ 𝐴 → 𝑖 ≤ 𝐴)) |
9 | | nnre 11980 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ (𝐴 ∈ ℕ → 𝐴 ∈
ℝ) |
10 | | nnre 11980 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ (𝐵 ∈ ℕ → 𝐵 ∈
ℝ) |
11 | | eluzelre 12593 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ (𝑖 ∈
(ℤ≥‘2) → 𝑖 ∈ ℝ) |
12 | 9, 10, 11 | 3anim123i 1150 |
. . . . . . . . . . . . . . . . . . . 20
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑖 ∈
(ℤ≥‘2)) → (𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ ∧ 𝑖 ∈ ℝ)) |
13 | | 3anrot 1099 |
. . . . . . . . . . . . . . . . . . . 20
⊢ ((𝑖 ∈ ℝ ∧ 𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ) ↔ (𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ ∧ 𝑖 ∈
ℝ)) |
14 | 12, 13 | sylibr 233 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑖 ∈
(ℤ≥‘2)) → (𝑖 ∈ ℝ ∧ 𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ)) |
15 | | lelttr 11065 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑖 ∈ ℝ ∧ 𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ) → ((𝑖 ≤ 𝐴 ∧ 𝐴 < 𝐵) → 𝑖 < 𝐵)) |
16 | 14, 15 | syl 17 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑖 ∈
(ℤ≥‘2)) → ((𝑖 ≤ 𝐴 ∧ 𝐴 < 𝐵) → 𝑖 < 𝐵)) |
17 | 16 | expcomd 417 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝑖 ∈
(ℤ≥‘2)) → (𝐴 < 𝐵 → (𝑖 ≤ 𝐴 → 𝑖 < 𝐵))) |
18 | 17 | 3exp 1118 |
. . . . . . . . . . . . . . . 16
⊢ (𝐴 ∈ ℕ → (𝐵 ∈ ℕ → (𝑖 ∈
(ℤ≥‘2) → (𝐴 < 𝐵 → (𝑖 ≤ 𝐴 → 𝑖 < 𝐵))))) |
19 | 18 | com34 91 |
. . . . . . . . . . . . . . 15
⊢ (𝐴 ∈ ℕ → (𝐵 ∈ ℕ → (𝐴 < 𝐵 → (𝑖 ∈ (ℤ≥‘2)
→ (𝑖 ≤ 𝐴 → 𝑖 < 𝐵))))) |
20 | 19 | 3imp1 1346 |
. . . . . . . . . . . . . 14
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
→ (𝑖 ≤ 𝐴 → 𝑖 < 𝐵)) |
21 | 20 | imp 407 |
. . . . . . . . . . . . 13
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ 𝑖 ≤ 𝐴) → 𝑖 < 𝐵) |
22 | | nnz 12342 |
. . . . . . . . . . . . . . . . 17
⊢ (𝐵 ∈ ℕ → 𝐵 ∈
ℤ) |
23 | 22 | 3ad2ant2 1133 |
. . . . . . . . . . . . . . . 16
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) → 𝐵 ∈ ℤ) |
24 | 23, 5 | anim12ci 614 |
. . . . . . . . . . . . . . 15
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
→ (𝑖 ∈ ℤ
∧ 𝐵 ∈
ℤ)) |
25 | 24 | adantr 481 |
. . . . . . . . . . . . . 14
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ 𝑖 ≤ 𝐴) → (𝑖 ∈ ℤ ∧ 𝐵 ∈ ℤ)) |
26 | | zltlem1 12373 |
. . . . . . . . . . . . . 14
⊢ ((𝑖 ∈ ℤ ∧ 𝐵 ∈ ℤ) → (𝑖 < 𝐵 ↔ 𝑖 ≤ (𝐵 − 1))) |
27 | 25, 26 | syl 17 |
. . . . . . . . . . . . 13
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ 𝑖 ≤ 𝐴) → (𝑖 < 𝐵 ↔ 𝑖 ≤ (𝐵 − 1))) |
28 | 21, 27 | mpbid 231 |
. . . . . . . . . . . 12
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ 𝑖 ≤ 𝐴) → 𝑖 ≤ (𝐵 − 1)) |
29 | 28 | ex 413 |
. . . . . . . . . . 11
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
→ (𝑖 ≤ 𝐴 → 𝑖 ≤ (𝐵 − 1))) |
30 | 8, 29 | syldc 48 |
. . . . . . . . . 10
⊢ (𝑖 ∥ 𝐴 → (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
→ 𝑖 ≤ (𝐵 − 1))) |
31 | 30 | adantr 481 |
. . . . . . . . 9
⊢ ((𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵) → (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
→ 𝑖 ≤ (𝐵 − 1))) |
32 | 31 | impcom 408 |
. . . . . . . 8
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ (𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵)) → 𝑖 ≤ (𝐵 − 1)) |
33 | | peano2zm 12363 |
. . . . . . . . . . . . 13
⊢ (𝐵 ∈ ℤ → (𝐵 − 1) ∈
ℤ) |
34 | 22, 33 | syl 17 |
. . . . . . . . . . . 12
⊢ (𝐵 ∈ ℕ → (𝐵 − 1) ∈
ℤ) |
35 | 34 | 3ad2ant2 1133 |
. . . . . . . . . . 11
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) → (𝐵 − 1) ∈ ℤ) |
36 | 35 | anim1ci 616 |
. . . . . . . . . 10
⊢ (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
→ (𝑖 ∈
(ℤ≥‘2) ∧ (𝐵 − 1) ∈
ℤ)) |
37 | 36 | adantr 481 |
. . . . . . . . 9
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ (𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵)) → (𝑖 ∈ (ℤ≥‘2)
∧ (𝐵 − 1) ∈
ℤ)) |
38 | | elfz5 13248 |
. . . . . . . . 9
⊢ ((𝑖 ∈
(ℤ≥‘2) ∧ (𝐵 − 1) ∈ ℤ) → (𝑖 ∈ (2...(𝐵 − 1)) ↔ 𝑖 ≤ (𝐵 − 1))) |
39 | 37, 38 | syl 17 |
. . . . . . . 8
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ (𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵)) → (𝑖 ∈ (2...(𝐵 − 1)) ↔ 𝑖 ≤ (𝐵 − 1))) |
40 | 32, 39 | mpbird 256 |
. . . . . . 7
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ (𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵)) → 𝑖 ∈ (2...(𝐵 − 1))) |
41 | | breq1 5077 |
. . . . . . . 8
⊢ (𝑗 = 𝑖 → (𝑗 ∥ 𝐵 ↔ 𝑖 ∥ 𝐵)) |
42 | 41 | adantl 482 |
. . . . . . 7
⊢
(((((𝐴 ∈
ℕ ∧ 𝐵 ∈
ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ (𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵)) ∧ 𝑗 = 𝑖) → (𝑗 ∥ 𝐵 ↔ 𝑖 ∥ 𝐵)) |
43 | | simprr 770 |
. . . . . . 7
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ (𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵)) → 𝑖 ∥ 𝐵) |
44 | 40, 42, 43 | rspcedvd 3563 |
. . . . . 6
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ (𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵)) → ∃𝑗 ∈ (2...(𝐵 − 1))𝑗 ∥ 𝐵) |
45 | | rexnal 3169 |
. . . . . . 7
⊢
(∃𝑗 ∈
(2...(𝐵 − 1)) ¬
¬ 𝑗 ∥ 𝐵 ↔ ¬ ∀𝑗 ∈ (2...(𝐵 − 1)) ¬ 𝑗 ∥ 𝐵) |
46 | | notnotb 315 |
. . . . . . . . 9
⊢ (𝑗 ∥ 𝐵 ↔ ¬ ¬ 𝑗 ∥ 𝐵) |
47 | 46 | bicomi 223 |
. . . . . . . 8
⊢ (¬
¬ 𝑗 ∥ 𝐵 ↔ 𝑗 ∥ 𝐵) |
48 | 47 | rexbii 3181 |
. . . . . . 7
⊢
(∃𝑗 ∈
(2...(𝐵 − 1)) ¬
¬ 𝑗 ∥ 𝐵 ↔ ∃𝑗 ∈ (2...(𝐵 − 1))𝑗 ∥ 𝐵) |
49 | 45, 48 | bitr3i 276 |
. . . . . 6
⊢ (¬
∀𝑗 ∈
(2...(𝐵 − 1)) ¬
𝑗 ∥ 𝐵 ↔ ∃𝑗 ∈ (2...(𝐵 − 1))𝑗 ∥ 𝐵) |
50 | 44, 49 | sylibr 233 |
. . . . 5
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ (𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵)) → ¬ ∀𝑗 ∈ (2...(𝐵 − 1)) ¬ 𝑗 ∥ 𝐵) |
51 | 50 | olcd 871 |
. . . 4
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ (𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵)) → (¬ 𝐵 ∈ (ℤ≥‘2)
∨ ¬ ∀𝑗 ∈
(2...(𝐵 − 1)) ¬
𝑗 ∥ 𝐵)) |
52 | | df-nel 3050 |
. . . . 5
⊢ (𝐵 ∉ ℙ ↔ ¬
𝐵 ∈
ℙ) |
53 | | ianor 979 |
. . . . . 6
⊢ (¬
(𝐵 ∈
(ℤ≥‘2) ∧ ∀𝑗 ∈ (2...(𝐵 − 1)) ¬ 𝑗 ∥ 𝐵) ↔ (¬ 𝐵 ∈ (ℤ≥‘2)
∨ ¬ ∀𝑗 ∈
(2...(𝐵 − 1)) ¬
𝑗 ∥ 𝐵)) |
54 | | isprm3 16388 |
. . . . . 6
⊢ (𝐵 ∈ ℙ ↔ (𝐵 ∈
(ℤ≥‘2) ∧ ∀𝑗 ∈ (2...(𝐵 − 1)) ¬ 𝑗 ∥ 𝐵)) |
55 | 53, 54 | xchnxbir 333 |
. . . . 5
⊢ (¬
𝐵 ∈ ℙ ↔
(¬ 𝐵 ∈
(ℤ≥‘2) ∨ ¬ ∀𝑗 ∈ (2...(𝐵 − 1)) ¬ 𝑗 ∥ 𝐵)) |
56 | 52, 55 | bitri 274 |
. . . 4
⊢ (𝐵 ∉ ℙ ↔ (¬
𝐵 ∈
(ℤ≥‘2) ∨ ¬ ∀𝑗 ∈ (2...(𝐵 − 1)) ¬ 𝑗 ∥ 𝐵)) |
57 | 51, 56 | sylibr 233 |
. . 3
⊢ ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) ∧ 𝑖 ∈ (ℤ≥‘2))
∧ (𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵)) → 𝐵 ∉ ℙ) |
58 | 57 | rexlimdva2 3216 |
. 2
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) → (∃𝑖 ∈
(ℤ≥‘2)(𝑖 ∥ 𝐴 ∧ 𝑖 ∥ 𝐵) → 𝐵 ∉ ℙ)) |
59 | 3, 58 | sylbid 239 |
1
⊢ ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐴 < 𝐵) → (1 < (𝐴 gcd 𝐵) → 𝐵 ∉ ℙ)) |