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

Theorem lcmf0val 16327
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 16296 . 2 lcm = (𝑧 ∈ 𝒫 ℤ ↦ if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < )))
2 eleq2 2827 . . . 4 (𝑧 = 𝑍 → (0 ∈ 𝑧 ↔ 0 ∈ 𝑍))
3 raleq 3342 . . . . . 6 (𝑧 = 𝑍 → (∀𝑚𝑧 𝑚𝑛 ↔ ∀𝑚𝑍 𝑚𝑛))
43rabbidv 3414 . . . . 5 (𝑧 = 𝑍 → {𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛} = {𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛})
54infeq1d 9236 . . . 4 (𝑧 = 𝑍 → inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < ) = inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < ))
62, 5ifbieq2d 4485 . . 3 (𝑧 = 𝑍 → if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < )) = if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < )))
7 iftrue 4465 . . . 4 (0 ∈ 𝑍 → if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < )) = 0)
87adantl 482 . . 3 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < )) = 0)
96, 8sylan9eqr 2800 . 2 (((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) ∧ 𝑧 = 𝑍) → if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < )) = 0)
10 zex 12328 . . . . . 6 ℤ ∈ V
1110ssex 5245 . . . . 5 (𝑍 ⊆ ℤ → 𝑍 ∈ V)
12 elpwg 4536 . . . . 5 (𝑍 ∈ V → (𝑍 ∈ 𝒫 ℤ ↔ 𝑍 ⊆ ℤ))
1311, 12syl 17 . . . 4 (𝑍 ⊆ ℤ → (𝑍 ∈ 𝒫 ℤ ↔ 𝑍 ⊆ ℤ))
1413ibir 267 . . 3 (𝑍 ⊆ ℤ → 𝑍 ∈ 𝒫 ℤ)
1514adantr 481 . 2 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → 𝑍 ∈ 𝒫 ℤ)
16 simpr 485 . 2 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → 0 ∈ 𝑍)
171, 9, 15, 16fvmptd2 6883 1 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → (lcm𝑍) = 0)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wcel 2106  wral 3064  {crab 3068  Vcvv 3432  wss 3887  ifcif 4459  𝒫 cpw 4533   class class class wbr 5074  cfv 6433  infcinf 9200  cr 10870  0cc0 10871   < clt 11009  cn 11973  cz 12319  cdvds 15963  lcmclcmf 16294
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-cnex 10927  ax-resscn 10928
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-iota 6391  df-fun 6435  df-fv 6441  df-ov 7278  df-sup 9201  df-inf 9202  df-neg 11208  df-z 12320  df-lcmf 16296
This theorem is referenced by:  lcmfcl  16333  lcmfeq0b  16335  dvdslcmf  16336  lcmftp  16341  lcmfunsnlem2  16345
  Copyright terms: Public domain W3C validator