Step | Hyp | Ref
| Expression |
1 | | gcdcllem2.2 |
. . . . 5
⊢ 𝑅 = {𝑧 ∈ ℤ ∣ (𝑧 ∥ 𝑀 ∧ 𝑧 ∥ 𝑁)} |
2 | 1 | ssrab3 4011 |
. . . 4
⊢ 𝑅 ⊆
ℤ |
3 | | prssi 4751 |
. . . . . . 7
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → {𝑀, 𝑁} ⊆ ℤ) |
4 | | neorian 3038 |
. . . . . . . 8
⊢ ((𝑀 ≠ 0 ∨ 𝑁 ≠ 0) ↔ ¬ (𝑀 = 0 ∧ 𝑁 = 0)) |
5 | | prid1g 4693 |
. . . . . . . . . . 11
⊢ (𝑀 ∈ ℤ → 𝑀 ∈ {𝑀, 𝑁}) |
6 | | neeq1 3005 |
. . . . . . . . . . . 12
⊢ (𝑛 = 𝑀 → (𝑛 ≠ 0 ↔ 𝑀 ≠ 0)) |
7 | 6 | rspcev 3552 |
. . . . . . . . . . 11
⊢ ((𝑀 ∈ {𝑀, 𝑁} ∧ 𝑀 ≠ 0) → ∃𝑛 ∈ {𝑀, 𝑁}𝑛 ≠ 0) |
8 | 5, 7 | sylan 579 |
. . . . . . . . . 10
⊢ ((𝑀 ∈ ℤ ∧ 𝑀 ≠ 0) → ∃𝑛 ∈ {𝑀, 𝑁}𝑛 ≠ 0) |
9 | 8 | adantlr 711 |
. . . . . . . . 9
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝑀 ≠ 0) → ∃𝑛 ∈ {𝑀, 𝑁}𝑛 ≠ 0) |
10 | | prid2g 4694 |
. . . . . . . . . . 11
⊢ (𝑁 ∈ ℤ → 𝑁 ∈ {𝑀, 𝑁}) |
11 | | neeq1 3005 |
. . . . . . . . . . . 12
⊢ (𝑛 = 𝑁 → (𝑛 ≠ 0 ↔ 𝑁 ≠ 0)) |
12 | 11 | rspcev 3552 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ {𝑀, 𝑁} ∧ 𝑁 ≠ 0) → ∃𝑛 ∈ {𝑀, 𝑁}𝑛 ≠ 0) |
13 | 10, 12 | sylan 579 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → ∃𝑛 ∈ {𝑀, 𝑁}𝑛 ≠ 0) |
14 | 13 | adantll 710 |
. . . . . . . . 9
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝑁 ≠ 0) → ∃𝑛 ∈ {𝑀, 𝑁}𝑛 ≠ 0) |
15 | 9, 14 | jaodan 954 |
. . . . . . . 8
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝑀 ≠ 0 ∨ 𝑁 ≠ 0)) → ∃𝑛 ∈ {𝑀, 𝑁}𝑛 ≠ 0) |
16 | 4, 15 | sylan2br 594 |
. . . . . . 7
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → ∃𝑛 ∈ {𝑀, 𝑁}𝑛 ≠ 0) |
17 | | gcdcllem2.1 |
. . . . . . . 8
⊢ 𝑆 = {𝑧 ∈ ℤ ∣ ∀𝑛 ∈ {𝑀, 𝑁}𝑧 ∥ 𝑛} |
18 | 17 | gcdcllem1 16134 |
. . . . . . 7
⊢ (({𝑀, 𝑁} ⊆ ℤ ∧ ∃𝑛 ∈ {𝑀, 𝑁}𝑛 ≠ 0) → (𝑆 ≠ ∅ ∧ ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑆 𝑦 ≤ 𝑥)) |
19 | 3, 16, 18 | syl2an2r 681 |
. . . . . 6
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → (𝑆 ≠ ∅ ∧ ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑆 𝑦 ≤ 𝑥)) |
20 | 17, 1 | gcdcllem2 16135 |
. . . . . . . 8
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → 𝑅 = 𝑆) |
21 | | neeq1 3005 |
. . . . . . . . 9
⊢ (𝑅 = 𝑆 → (𝑅 ≠ ∅ ↔ 𝑆 ≠ ∅)) |
22 | | raleq 3333 |
. . . . . . . . . 10
⊢ (𝑅 = 𝑆 → (∀𝑦 ∈ 𝑅 𝑦 ≤ 𝑥 ↔ ∀𝑦 ∈ 𝑆 𝑦 ≤ 𝑥)) |
23 | 22 | rexbidv 3225 |
. . . . . . . . 9
⊢ (𝑅 = 𝑆 → (∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑅 𝑦 ≤ 𝑥 ↔ ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑆 𝑦 ≤ 𝑥)) |
24 | 21, 23 | anbi12d 630 |
. . . . . . . 8
⊢ (𝑅 = 𝑆 → ((𝑅 ≠ ∅ ∧ ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑅 𝑦 ≤ 𝑥) ↔ (𝑆 ≠ ∅ ∧ ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑆 𝑦 ≤ 𝑥))) |
25 | 20, 24 | syl 17 |
. . . . . . 7
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑅 ≠ ∅ ∧ ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑅 𝑦 ≤ 𝑥) ↔ (𝑆 ≠ ∅ ∧ ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑆 𝑦 ≤ 𝑥))) |
26 | 25 | adantr 480 |
. . . . . 6
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → ((𝑅 ≠ ∅ ∧ ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑅 𝑦 ≤ 𝑥) ↔ (𝑆 ≠ ∅ ∧ ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑆 𝑦 ≤ 𝑥))) |
27 | 19, 26 | mpbird 256 |
. . . . 5
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → (𝑅 ≠ ∅ ∧ ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑅 𝑦 ≤ 𝑥)) |
28 | | suprzcl2 12607 |
. . . . . 6
⊢ ((𝑅 ⊆ ℤ ∧ 𝑅 ≠ ∅ ∧ ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑅 𝑦 ≤ 𝑥) → sup(𝑅, ℝ, < ) ∈ 𝑅) |
29 | 2, 28 | mp3an1 1446 |
. . . . 5
⊢ ((𝑅 ≠ ∅ ∧ ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑅 𝑦 ≤ 𝑥) → sup(𝑅, ℝ, < ) ∈ 𝑅) |
30 | 27, 29 | syl 17 |
. . . 4
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → sup(𝑅, ℝ, < ) ∈ 𝑅) |
31 | 2, 30 | sselid 3915 |
. . 3
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → sup(𝑅, ℝ, < ) ∈
ℤ) |
32 | 27 | simprd 495 |
. . . 4
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → ∃𝑥 ∈ ℤ ∀𝑦 ∈ 𝑅 𝑦 ≤ 𝑥) |
33 | | 1dvds 15908 |
. . . . . . 7
⊢ (𝑀 ∈ ℤ → 1 ∥
𝑀) |
34 | | 1dvds 15908 |
. . . . . . 7
⊢ (𝑁 ∈ ℤ → 1 ∥
𝑁) |
35 | 33, 34 | anim12i 612 |
. . . . . 6
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (1
∥ 𝑀 ∧ 1 ∥
𝑁)) |
36 | | 1z 12280 |
. . . . . . 7
⊢ 1 ∈
ℤ |
37 | | breq1 5073 |
. . . . . . . . 9
⊢ (𝑧 = 1 → (𝑧 ∥ 𝑀 ↔ 1 ∥ 𝑀)) |
38 | | breq1 5073 |
. . . . . . . . 9
⊢ (𝑧 = 1 → (𝑧 ∥ 𝑁 ↔ 1 ∥ 𝑁)) |
39 | 37, 38 | anbi12d 630 |
. . . . . . . 8
⊢ (𝑧 = 1 → ((𝑧 ∥ 𝑀 ∧ 𝑧 ∥ 𝑁) ↔ (1 ∥ 𝑀 ∧ 1 ∥ 𝑁))) |
40 | 39, 1 | elrab2 3620 |
. . . . . . 7
⊢ (1 ∈
𝑅 ↔ (1 ∈ ℤ
∧ (1 ∥ 𝑀 ∧ 1
∥ 𝑁))) |
41 | 36, 40 | mpbiran 705 |
. . . . . 6
⊢ (1 ∈
𝑅 ↔ (1 ∥ 𝑀 ∧ 1 ∥ 𝑁)) |
42 | 35, 41 | sylibr 233 |
. . . . 5
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → 1 ∈
𝑅) |
43 | 42 | adantr 480 |
. . . 4
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → 1 ∈ 𝑅) |
44 | | suprzub 12608 |
. . . 4
⊢ ((𝑅 ⊆ ℤ ∧
∃𝑥 ∈ ℤ
∀𝑦 ∈ 𝑅 𝑦 ≤ 𝑥 ∧ 1 ∈ 𝑅) → 1 ≤ sup(𝑅, ℝ, < )) |
45 | 2, 32, 43, 44 | mp3an2i 1464 |
. . 3
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → 1 ≤ sup(𝑅, ℝ, <
)) |
46 | | elnnz1 12276 |
. . 3
⊢
(sup(𝑅, ℝ,
< ) ∈ ℕ ↔ (sup(𝑅, ℝ, < ) ∈ ℤ ∧ 1
≤ sup(𝑅, ℝ, <
))) |
47 | 31, 45, 46 | sylanbrc 582 |
. 2
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → sup(𝑅, ℝ, < ) ∈
ℕ) |
48 | | breq1 5073 |
. . . . . 6
⊢ (𝑥 = sup(𝑅, ℝ, < ) → (𝑥 ∥ 𝑀 ↔ sup(𝑅, ℝ, < ) ∥ 𝑀)) |
49 | | breq1 5073 |
. . . . . 6
⊢ (𝑥 = sup(𝑅, ℝ, < ) → (𝑥 ∥ 𝑁 ↔ sup(𝑅, ℝ, < ) ∥ 𝑁)) |
50 | 48, 49 | anbi12d 630 |
. . . . 5
⊢ (𝑥 = sup(𝑅, ℝ, < ) → ((𝑥 ∥ 𝑀 ∧ 𝑥 ∥ 𝑁) ↔ (sup(𝑅, ℝ, < ) ∥ 𝑀 ∧ sup(𝑅, ℝ, < ) ∥ 𝑁))) |
51 | | breq1 5073 |
. . . . . . . 8
⊢ (𝑧 = 𝑥 → (𝑧 ∥ 𝑀 ↔ 𝑥 ∥ 𝑀)) |
52 | | breq1 5073 |
. . . . . . . 8
⊢ (𝑧 = 𝑥 → (𝑧 ∥ 𝑁 ↔ 𝑥 ∥ 𝑁)) |
53 | 51, 52 | anbi12d 630 |
. . . . . . 7
⊢ (𝑧 = 𝑥 → ((𝑧 ∥ 𝑀 ∧ 𝑧 ∥ 𝑁) ↔ (𝑥 ∥ 𝑀 ∧ 𝑥 ∥ 𝑁))) |
54 | 53 | cbvrabv 3416 |
. . . . . 6
⊢ {𝑧 ∈ ℤ ∣ (𝑧 ∥ 𝑀 ∧ 𝑧 ∥ 𝑁)} = {𝑥 ∈ ℤ ∣ (𝑥 ∥ 𝑀 ∧ 𝑥 ∥ 𝑁)} |
55 | 1, 54 | eqtri 2766 |
. . . . 5
⊢ 𝑅 = {𝑥 ∈ ℤ ∣ (𝑥 ∥ 𝑀 ∧ 𝑥 ∥ 𝑁)} |
56 | 50, 55 | elrab2 3620 |
. . . 4
⊢
(sup(𝑅, ℝ,
< ) ∈ 𝑅 ↔
(sup(𝑅, ℝ, < )
∈ ℤ ∧ (sup(𝑅, ℝ, < ) ∥ 𝑀 ∧ sup(𝑅, ℝ, < ) ∥ 𝑁))) |
57 | 30, 56 | sylib 217 |
. . 3
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → (sup(𝑅, ℝ, < ) ∈ ℤ
∧ (sup(𝑅, ℝ, <
) ∥ 𝑀 ∧ sup(𝑅, ℝ, < ) ∥ 𝑁))) |
58 | 57 | simprd 495 |
. 2
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → (sup(𝑅, ℝ, < ) ∥ 𝑀 ∧ sup(𝑅, ℝ, < ) ∥ 𝑁)) |
59 | | breq1 5073 |
. . . . . . 7
⊢ (𝑧 = 𝐾 → (𝑧 ∥ 𝑀 ↔ 𝐾 ∥ 𝑀)) |
60 | | breq1 5073 |
. . . . . . 7
⊢ (𝑧 = 𝐾 → (𝑧 ∥ 𝑁 ↔ 𝐾 ∥ 𝑁)) |
61 | 59, 60 | anbi12d 630 |
. . . . . 6
⊢ (𝑧 = 𝐾 → ((𝑧 ∥ 𝑀 ∧ 𝑧 ∥ 𝑁) ↔ (𝐾 ∥ 𝑀 ∧ 𝐾 ∥ 𝑁))) |
62 | 61, 1 | elrab2 3620 |
. . . . 5
⊢ (𝐾 ∈ 𝑅 ↔ (𝐾 ∈ ℤ ∧ (𝐾 ∥ 𝑀 ∧ 𝐾 ∥ 𝑁))) |
63 | 62 | biimpri 227 |
. . . 4
⊢ ((𝐾 ∈ ℤ ∧ (𝐾 ∥ 𝑀 ∧ 𝐾 ∥ 𝑁)) → 𝐾 ∈ 𝑅) |
64 | 63 | 3impb 1113 |
. . 3
⊢ ((𝐾 ∈ ℤ ∧ 𝐾 ∥ 𝑀 ∧ 𝐾 ∥ 𝑁) → 𝐾 ∈ 𝑅) |
65 | | suprzub 12608 |
. . . . 5
⊢ ((𝑅 ⊆ ℤ ∧
∃𝑥 ∈ ℤ
∀𝑦 ∈ 𝑅 𝑦 ≤ 𝑥 ∧ 𝐾 ∈ 𝑅) → 𝐾 ≤ sup(𝑅, ℝ, < )) |
66 | 65 | 3expia 1119 |
. . . 4
⊢ ((𝑅 ⊆ ℤ ∧
∃𝑥 ∈ ℤ
∀𝑦 ∈ 𝑅 𝑦 ≤ 𝑥) → (𝐾 ∈ 𝑅 → 𝐾 ≤ sup(𝑅, ℝ, < ))) |
67 | 2, 66 | mpan 686 |
. . 3
⊢
(∃𝑥 ∈
ℤ ∀𝑦 ∈
𝑅 𝑦 ≤ 𝑥 → (𝐾 ∈ 𝑅 → 𝐾 ≤ sup(𝑅, ℝ, < ))) |
68 | 32, 64, 67 | syl2im 40 |
. 2
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → ((𝐾 ∈ ℤ ∧ 𝐾 ∥ 𝑀 ∧ 𝐾 ∥ 𝑁) → 𝐾 ≤ sup(𝑅, ℝ, < ))) |
69 | 47, 58, 68 | 3jca 1126 |
1
⊢ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ ¬
(𝑀 = 0 ∧ 𝑁 = 0)) → (sup(𝑅, ℝ, < ) ∈ ℕ
∧ (sup(𝑅, ℝ, <
) ∥ 𝑀 ∧ sup(𝑅, ℝ, < ) ∥ 𝑁) ∧ ((𝐾 ∈ ℤ ∧ 𝐾 ∥ 𝑀 ∧ 𝐾 ∥ 𝑁) → 𝐾 ≤ sup(𝑅, ℝ, < )))) |