Proof of Theorem lcmf
Step | Hyp | Ref
| Expression |
1 | | dvdslcmf 16336 |
. . . . . 6
⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin) →
∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍)) |
2 | 1 | 3adant3 1131 |
. . . . 5
⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍) → ∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍)) |
3 | | lcmfledvds 16337 |
. . . . . . 7
⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍) → ((𝑘 ∈ ℕ ∧
∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘) → (lcm‘𝑍) ≤ 𝑘)) |
4 | 3 | expdimp 453 |
. . . . . 6
⊢ (((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍) ∧ 𝑘 ∈ ℕ) → (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → (lcm‘𝑍) ≤ 𝑘)) |
5 | 4 | ralrimiva 3103 |
. . . . 5
⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍) → ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → (lcm‘𝑍) ≤ 𝑘)) |
6 | 2, 5 | jca 512 |
. . . 4
⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍) → (∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍) ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → (lcm‘𝑍) ≤ 𝑘))) |
7 | 6 | adantl 482 |
. . 3
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → (∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍) ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → (lcm‘𝑍) ≤ 𝑘))) |
8 | | breq2 5078 |
. . . . 5
⊢ (𝐾 = (lcm‘𝑍) → (𝑚 ∥ 𝐾 ↔ 𝑚 ∥ (lcm‘𝑍))) |
9 | 8 | ralbidv 3112 |
. . . 4
⊢ (𝐾 = (lcm‘𝑍) → (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ↔ ∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍))) |
10 | | breq1 5077 |
. . . . . 6
⊢ (𝐾 = (lcm‘𝑍) → (𝐾 ≤ 𝑘 ↔ (lcm‘𝑍) ≤ 𝑘)) |
11 | 10 | imbi2d 341 |
. . . . 5
⊢ (𝐾 = (lcm‘𝑍) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘) ↔ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → (lcm‘𝑍) ≤ 𝑘))) |
12 | 11 | ralbidv 3112 |
. . . 4
⊢ (𝐾 = (lcm‘𝑍) → (∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘) ↔ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → (lcm‘𝑍) ≤ 𝑘))) |
13 | 9, 12 | anbi12d 631 |
. . 3
⊢ (𝐾 = (lcm‘𝑍) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)) ↔ (∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍) ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → (lcm‘𝑍) ≤ 𝑘)))) |
14 | 7, 13 | syl5ibrcom 246 |
. 2
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → (𝐾 = (lcm‘𝑍) → (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)))) |
15 | | lcmfn0cl 16331 |
. . . . . 6
⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍) →
(lcm‘𝑍) ∈
ℕ) |
16 | 15 | adantl 482 |
. . . . 5
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) →
(lcm‘𝑍) ∈
ℕ) |
17 | | breq2 5078 |
. . . . . . . 8
⊢ (𝑘 = (lcm‘𝑍) → (𝑚 ∥ 𝑘 ↔ 𝑚 ∥ (lcm‘𝑍))) |
18 | 17 | ralbidv 3112 |
. . . . . . 7
⊢ (𝑘 = (lcm‘𝑍) → (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 ↔ ∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍))) |
19 | | breq2 5078 |
. . . . . . 7
⊢ (𝑘 = (lcm‘𝑍) → (𝐾 ≤ 𝑘 ↔ 𝐾 ≤ (lcm‘𝑍))) |
20 | 18, 19 | imbi12d 345 |
. . . . . 6
⊢ (𝑘 = (lcm‘𝑍) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘) ↔ (∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍) → 𝐾 ≤ (lcm‘𝑍)))) |
21 | 20 | rspcv 3557 |
. . . . 5
⊢
((lcm‘𝑍) ∈ ℕ → (∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘) → (∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍) → 𝐾 ≤ (lcm‘𝑍)))) |
22 | 16, 21 | syl 17 |
. . . 4
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → (∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘) → (∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍) → 𝐾 ≤ (lcm‘𝑍)))) |
23 | 22 | adantld 491 |
. . 3
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)) → (∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍) → 𝐾 ≤ (lcm‘𝑍)))) |
24 | 2 | adantl 482 |
. . . . 5
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → ∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍)) |
25 | | nnre 11980 |
. . . . . . 7
⊢ (𝐾 ∈ ℕ → 𝐾 ∈
ℝ) |
26 | 15 | nnred 11988 |
. . . . . . 7
⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍) →
(lcm‘𝑍) ∈
ℝ) |
27 | | leloe 11061 |
. . . . . . 7
⊢ ((𝐾 ∈ ℝ ∧
(lcm‘𝑍) ∈
ℝ) → (𝐾 ≤
(lcm‘𝑍) ↔
(𝐾 <
(lcm‘𝑍) ∨
𝐾 = (lcm‘𝑍)))) |
28 | 25, 26, 27 | syl2an 596 |
. . . . . 6
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → (𝐾 ≤ (lcm‘𝑍) ↔ (𝐾 < (lcm‘𝑍) ∨ 𝐾 = (lcm‘𝑍)))) |
29 | | lcmfledvds 16337 |
. . . . . . . . . . . . 13
⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍) → ((𝐾 ∈ ℕ ∧
∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾) → (lcm‘𝑍) ≤ 𝐾)) |
30 | 29 | expd 416 |
. . . . . . . . . . . 12
⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍) → (𝐾 ∈ ℕ →
(∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 → (lcm‘𝑍) ≤ 𝐾))) |
31 | 30 | impcom 408 |
. . . . . . . . . . 11
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 → (lcm‘𝑍) ≤ 𝐾)) |
32 | | lenlt 11053 |
. . . . . . . . . . . . 13
⊢
(((lcm‘𝑍) ∈ ℝ ∧ 𝐾 ∈ ℝ) →
((lcm‘𝑍) ≤
𝐾 ↔ ¬ 𝐾 < (lcm‘𝑍))) |
33 | 26, 25, 32 | syl2anr 597 |
. . . . . . . . . . . 12
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) →
((lcm‘𝑍) ≤
𝐾 ↔ ¬ 𝐾 < (lcm‘𝑍))) |
34 | | pm2.21 123 |
. . . . . . . . . . . 12
⊢ (¬
𝐾 <
(lcm‘𝑍) →
(𝐾 <
(lcm‘𝑍) →
𝐾 = (lcm‘𝑍))) |
35 | 33, 34 | syl6bi 252 |
. . . . . . . . . . 11
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) →
((lcm‘𝑍) ≤
𝐾 → (𝐾 < (lcm‘𝑍) → 𝐾 = (lcm‘𝑍)))) |
36 | 31, 35 | syldc 48 |
. . . . . . . . . 10
⊢
(∀𝑚 ∈
𝑍 𝑚 ∥ 𝐾 → ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉ 𝑍)) → (𝐾 < (lcm‘𝑍) → 𝐾 = (lcm‘𝑍)))) |
37 | 36 | adantr 481 |
. . . . . . . . 9
⊢
((∀𝑚 ∈
𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)) → ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉ 𝑍)) → (𝐾 < (lcm‘𝑍) → 𝐾 = (lcm‘𝑍)))) |
38 | 37 | com13 88 |
. . . . . . . 8
⊢ (𝐾 < (lcm‘𝑍) → ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉ 𝑍)) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)) → 𝐾 = (lcm‘𝑍)))) |
39 | | 2a1 28 |
. . . . . . . 8
⊢ (𝐾 = (lcm‘𝑍) → ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉ 𝑍)) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)) → 𝐾 = (lcm‘𝑍)))) |
40 | 38, 39 | jaoi 854 |
. . . . . . 7
⊢ ((𝐾 < (lcm‘𝑍) ∨ 𝐾 = (lcm‘𝑍)) → ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉ 𝑍)) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)) → 𝐾 = (lcm‘𝑍)))) |
41 | 40 | com12 32 |
. . . . . 6
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → ((𝐾 < (lcm‘𝑍) ∨ 𝐾 = (lcm‘𝑍)) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)) → 𝐾 = (lcm‘𝑍)))) |
42 | 28, 41 | sylbid 239 |
. . . . 5
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → (𝐾 ≤ (lcm‘𝑍) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)) → 𝐾 = (lcm‘𝑍)))) |
43 | 24, 42 | embantd 59 |
. . . 4
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍) → 𝐾 ≤ (lcm‘𝑍)) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)) → 𝐾 = (lcm‘𝑍)))) |
44 | 43 | com23 86 |
. . 3
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ (lcm‘𝑍) → 𝐾 ≤ (lcm‘𝑍)) → 𝐾 = (lcm‘𝑍)))) |
45 | 23, 44 | mpdd 43 |
. 2
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → ((∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)) → 𝐾 = (lcm‘𝑍))) |
46 | 14, 45 | impbid 211 |
1
⊢ ((𝐾 ∈ ℕ ∧ (𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉
𝑍)) → (𝐾 = (lcm‘𝑍) ↔ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝐾 ∧ ∀𝑘 ∈ ℕ (∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑘 → 𝐾 ≤ 𝑘)))) |