![]() |
Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
|
Mirrors > Home > MPE Home > Th. List > lcmfval | Structured version Visualization version GIF version |
Description: Value of the lcm function. (lcm‘𝑍) is the least common multiple of the integers contained in the finite subset of integers 𝑍. If at least one of the elements of 𝑍 is 0, the result is defined conventionally as 0. (Contributed by AV, 21-Apr-2020.) (Revised by AV, 16-Sep-2020.) |
Ref | Expression |
---|---|
lcmfval | ⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin) → (lcm‘𝑍) = if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛}, ℝ, < ))) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | df-lcmf 15790 | . 2 ⊢ lcm = (𝑧 ∈ 𝒫 ℤ ↦ if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑧 𝑚 ∥ 𝑛}, ℝ, < ))) | |
2 | eleq2 2849 | . . 3 ⊢ (𝑧 = 𝑍 → (0 ∈ 𝑧 ↔ 0 ∈ 𝑍)) | |
3 | raleq 3340 | . . . . 5 ⊢ (𝑧 = 𝑍 → (∀𝑚 ∈ 𝑧 𝑚 ∥ 𝑛 ↔ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛)) | |
4 | 3 | rabbidv 3398 | . . . 4 ⊢ (𝑧 = 𝑍 → {𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑧 𝑚 ∥ 𝑛} = {𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛}) |
5 | 4 | infeq1d 8735 | . . 3 ⊢ (𝑧 = 𝑍 → inf({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑧 𝑚 ∥ 𝑛}, ℝ, < ) = inf({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛}, ℝ, < )) |
6 | 2, 5 | ifbieq2d 4370 | . 2 ⊢ (𝑧 = 𝑍 → if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑧 𝑚 ∥ 𝑛}, ℝ, < )) = if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛}, ℝ, < ))) |
7 | zex 11801 | . . . . . 6 ⊢ ℤ ∈ V | |
8 | 7 | ssex 5078 | . . . . 5 ⊢ (𝑍 ⊆ ℤ → 𝑍 ∈ V) |
9 | elpwg 4425 | . . . . 5 ⊢ (𝑍 ∈ V → (𝑍 ∈ 𝒫 ℤ ↔ 𝑍 ⊆ ℤ)) | |
10 | 8, 9 | syl 17 | . . . 4 ⊢ (𝑍 ⊆ ℤ → (𝑍 ∈ 𝒫 ℤ ↔ 𝑍 ⊆ ℤ)) |
11 | 10 | ibir 260 | . . 3 ⊢ (𝑍 ⊆ ℤ → 𝑍 ∈ 𝒫 ℤ) |
12 | 11 | adantr 473 | . 2 ⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin) → 𝑍 ∈ 𝒫 ℤ) |
13 | 0nn0 11723 | . . . 4 ⊢ 0 ∈ ℕ0 | |
14 | 13 | a1i 11 | . . 3 ⊢ (((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin) ∧ 0 ∈ 𝑍) → 0 ∈ ℕ0) |
15 | df-nel 3069 | . . . 4 ⊢ (0 ∉ 𝑍 ↔ ¬ 0 ∈ 𝑍) | |
16 | ssrab2 3941 | . . . . . 6 ⊢ {𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛} ⊆ ℕ | |
17 | nnssnn0 11709 | . . . . . 6 ⊢ ℕ ⊆ ℕ0 | |
18 | 16, 17 | sstri 3862 | . . . . 5 ⊢ {𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛} ⊆ ℕ0 |
19 | nnuz 12094 | . . . . . . 7 ⊢ ℕ = (ℤ≥‘1) | |
20 | 16, 19 | sseqtri 3888 | . . . . . 6 ⊢ {𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛} ⊆ (ℤ≥‘1) |
21 | fissn0dvdsn0 15819 | . . . . . . 7 ⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin ∧ 0 ∉ 𝑍) → {𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛} ≠ ∅) | |
22 | 21 | 3expa 1099 | . . . . . 6 ⊢ (((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin) ∧ 0 ∉ 𝑍) → {𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛} ≠ ∅) |
23 | infssuzcl 12145 | . . . . . 6 ⊢ (({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛} ⊆ (ℤ≥‘1) ∧ {𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛} ≠ ∅) → inf({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛}, ℝ, < ) ∈ {𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛}) | |
24 | 20, 22, 23 | sylancr 579 | . . . . 5 ⊢ (((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin) ∧ 0 ∉ 𝑍) → inf({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛}, ℝ, < ) ∈ {𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛}) |
25 | 18, 24 | sseldi 3851 | . . . 4 ⊢ (((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin) ∧ 0 ∉ 𝑍) → inf({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛}, ℝ, < ) ∈ ℕ0) |
26 | 15, 25 | sylan2br 586 | . . 3 ⊢ (((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin) ∧ ¬ 0 ∈ 𝑍) → inf({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛}, ℝ, < ) ∈ ℕ0) |
27 | 14, 26 | ifclda 4379 | . 2 ⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin) → if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛}, ℝ, < )) ∈ ℕ0) |
28 | 1, 6, 12, 27 | fvmptd3 6616 | 1 ⊢ ((𝑍 ⊆ ℤ ∧ 𝑍 ∈ Fin) → (lcm‘𝑍) = if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚 ∈ 𝑍 𝑚 ∥ 𝑛}, ℝ, < ))) |
Colors of variables: wff setvar class |
Syntax hints: ¬ wn 3 → wi 4 ↔ wb 198 ∧ wa 387 = wceq 1508 ∈ wcel 2051 ≠ wne 2962 ∉ wnel 3068 ∀wral 3083 {crab 3087 Vcvv 3410 ⊆ wss 3824 ∅c0 4173 ifcif 4345 𝒫 cpw 4417 class class class wbr 4926 ‘cfv 6186 Fincfn 8305 infcinf 8699 ℝcr 10333 0cc0 10334 1c1 10335 < clt 10473 ℕcn 11438 ℕ0cn0 11706 ℤcz 11792 ℤ≥cuz 12057 ∥ cdvds 15466 lcmclcmf 15788 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1759 ax-4 1773 ax-5 1870 ax-6 1929 ax-7 1966 ax-8 2053 ax-9 2060 ax-10 2080 ax-11 2094 ax-12 2107 ax-13 2302 ax-ext 2745 ax-rep 5046 ax-sep 5057 ax-nul 5064 ax-pow 5116 ax-pr 5183 ax-un 7278 ax-inf2 8897 ax-cnex 10390 ax-resscn 10391 ax-1cn 10392 ax-icn 10393 ax-addcl 10394 ax-addrcl 10395 ax-mulcl 10396 ax-mulrcl 10397 ax-mulcom 10398 ax-addass 10399 ax-mulass 10400 ax-distr 10401 ax-i2m1 10402 ax-1ne0 10403 ax-1rid 10404 ax-rnegex 10405 ax-rrecex 10406 ax-cnre 10407 ax-pre-lttri 10408 ax-pre-lttrn 10409 ax-pre-ltadd 10410 ax-pre-mulgt0 10411 ax-pre-sup 10412 |
This theorem depends on definitions: df-bi 199 df-an 388 df-or 835 df-3or 1070 df-3an 1071 df-tru 1511 df-fal 1521 df-ex 1744 df-nf 1748 df-sb 2017 df-mo 2548 df-eu 2585 df-clab 2754 df-cleq 2766 df-clel 2841 df-nfc 2913 df-ne 2963 df-nel 3069 df-ral 3088 df-rex 3089 df-reu 3090 df-rmo 3091 df-rab 3092 df-v 3412 df-sbc 3677 df-csb 3782 df-dif 3827 df-un 3829 df-in 3831 df-ss 3838 df-pss 3840 df-nul 4174 df-if 4346 df-pw 4419 df-sn 4437 df-pr 4439 df-tp 4441 df-op 4443 df-uni 4710 df-int 4747 df-iun 4791 df-br 4927 df-opab 4989 df-mpt 5006 df-tr 5028 df-id 5309 df-eprel 5314 df-po 5323 df-so 5324 df-fr 5363 df-se 5364 df-we 5365 df-xp 5410 df-rel 5411 df-cnv 5412 df-co 5413 df-dm 5414 df-rn 5415 df-res 5416 df-ima 5417 df-pred 5984 df-ord 6030 df-on 6031 df-lim 6032 df-suc 6033 df-iota 6150 df-fun 6188 df-fn 6189 df-f 6190 df-f1 6191 df-fo 6192 df-f1o 6193 df-fv 6194 df-isom 6195 df-riota 6936 df-ov 6978 df-oprab 6979 df-mpo 6980 df-om 7396 df-1st 7500 df-2nd 7501 df-wrecs 7749 df-recs 7811 df-rdg 7849 df-1o 7904 df-oadd 7908 df-er 8088 df-en 8306 df-dom 8307 df-sdom 8308 df-fin 8309 df-sup 8700 df-inf 8701 df-oi 8768 df-card 9161 df-pnf 10475 df-mnf 10476 df-xr 10477 df-ltxr 10478 df-le 10479 df-sub 10671 df-neg 10672 df-div 11098 df-nn 11439 df-2 11502 df-3 11503 df-n0 11707 df-z 11793 df-uz 12058 df-rp 12204 df-fz 12708 df-fzo 12849 df-seq 13184 df-exp 13244 df-hash 13505 df-cj 14318 df-re 14319 df-im 14320 df-sqrt 14454 df-abs 14455 df-clim 14705 df-prod 15119 df-dvds 15467 df-lcmf 15790 |
This theorem is referenced by: lcmfn0val 15822 lcmfpr 15826 |
Copyright terms: Public domain | W3C validator |