MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  lcmf0val Structured version   Visualization version   GIF version

Theorem lcmf0val 16255
Description: The value, by convention, of the least common multiple for a set containing 0 is 0. (Contributed by AV, 21-Apr-2020.) (Proof shortened by AV, 16-Sep-2020.)
Assertion
Ref Expression
lcmf0val ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → (lcm𝑍) = 0)

Proof of Theorem lcmf0val
Dummy variables 𝑚 𝑛 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-lcmf 16224 . 2 lcm = (𝑧 ∈ 𝒫 ℤ ↦ if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < )))
2 eleq2 2827 . . . 4 (𝑧 = 𝑍 → (0 ∈ 𝑧 ↔ 0 ∈ 𝑍))
3 raleq 3333 . . . . . 6 (𝑧 = 𝑍 → (∀𝑚𝑧 𝑚𝑛 ↔ ∀𝑚𝑍 𝑚𝑛))
43rabbidv 3404 . . . . 5 (𝑧 = 𝑍 → {𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛} = {𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛})
54infeq1d 9166 . . . 4 (𝑧 = 𝑍 → inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < ) = inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < ))
62, 5ifbieq2d 4482 . . 3 (𝑧 = 𝑍 → if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < )) = if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < )))
7 iftrue 4462 . . . 4 (0 ∈ 𝑍 → if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < )) = 0)
87adantl 481 . . 3 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < )) = 0)
96, 8sylan9eqr 2801 . 2 (((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) ∧ 𝑧 = 𝑍) → if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < )) = 0)
10 zex 12258 . . . . . 6 ℤ ∈ V
1110ssex 5240 . . . . 5 (𝑍 ⊆ ℤ → 𝑍 ∈ V)
12 elpwg 4533 . . . . 5 (𝑍 ∈ V → (𝑍 ∈ 𝒫 ℤ ↔ 𝑍 ⊆ ℤ))
1311, 12syl 17 . . . 4 (𝑍 ⊆ ℤ → (𝑍 ∈ 𝒫 ℤ ↔ 𝑍 ⊆ ℤ))
1413ibir 267 . . 3 (𝑍 ⊆ ℤ → 𝑍 ∈ 𝒫 ℤ)
1514adantr 480 . 2 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → 𝑍 ∈ 𝒫 ℤ)
16 simpr 484 . 2 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → 0 ∈ 𝑍)
171, 9, 15, 16fvmptd2 6865 1 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → (lcm𝑍) = 0)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wral 3063  {crab 3067  Vcvv 3422  wss 3883  ifcif 4456  𝒫 cpw 4530   class class class wbr 5070  cfv 6418  infcinf 9130  cr 10801  0cc0 10802   < clt 10940  cn 11903  cz 12249  cdvds 15891  lcmclcmf 16222
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-cnex 10858  ax-resscn 10859
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-iota 6376  df-fun 6420  df-fv 6426  df-ov 7258  df-sup 9131  df-inf 9132  df-neg 11138  df-z 12250  df-lcmf 16224
This theorem is referenced by:  lcmfcl  16261  lcmfeq0b  16263  dvdslcmf  16264  lcmftp  16269  lcmfunsnlem2  16273
  Copyright terms: Public domain W3C validator