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

Theorem lcmf0val 15956
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 15925 . 2 lcm = (𝑧 ∈ 𝒫 ℤ ↦ if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < )))
2 eleq2 2878 . . . 4 (𝑧 = 𝑍 → (0 ∈ 𝑧 ↔ 0 ∈ 𝑍))
3 raleq 3358 . . . . . 6 (𝑧 = 𝑍 → (∀𝑚𝑧 𝑚𝑛 ↔ ∀𝑚𝑍 𝑚𝑛))
43rabbidv 3427 . . . . 5 (𝑧 = 𝑍 → {𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛} = {𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛})
54infeq1d 8925 . . . 4 (𝑧 = 𝑍 → inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < ) = inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < ))
62, 5ifbieq2d 4450 . . 3 (𝑧 = 𝑍 → if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < )) = if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < )))
7 iftrue 4431 . . . 4 (0 ∈ 𝑍 → if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < )) = 0)
87adantl 485 . . 3 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < )) = 0)
96, 8sylan9eqr 2855 . 2 (((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) ∧ 𝑧 = 𝑍) → if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < )) = 0)
10 zex 11978 . . . . . 6 ℤ ∈ V
1110ssex 5189 . . . . 5 (𝑍 ⊆ ℤ → 𝑍 ∈ V)
12 elpwg 4500 . . . . 5 (𝑍 ∈ V → (𝑍 ∈ 𝒫 ℤ ↔ 𝑍 ⊆ ℤ))
1311, 12syl 17 . . . 4 (𝑍 ⊆ ℤ → (𝑍 ∈ 𝒫 ℤ ↔ 𝑍 ⊆ ℤ))
1413ibir 271 . . 3 (𝑍 ⊆ ℤ → 𝑍 ∈ 𝒫 ℤ)
1514adantr 484 . 2 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → 𝑍 ∈ 𝒫 ℤ)
16 simpr 488 . 2 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → 0 ∈ 𝑍)
171, 9, 15, 16fvmptd2 6753 1 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → (lcm𝑍) = 0)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1538  wcel 2111  wral 3106  {crab 3110  Vcvv 3441  wss 3881  ifcif 4425  𝒫 cpw 4497   class class class wbr 5030  cfv 6324  infcinf 8889  cr 10525  0cc0 10526   < clt 10664  cn 11625  cz 11969  cdvds 15599  lcmclcmf 15923
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pr 5295  ax-cnex 10582  ax-resscn 10583
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ral 3111  df-rex 3112  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4801  df-br 5031  df-opab 5093  df-mpt 5111  df-id 5425  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-iota 6283  df-fun 6326  df-fv 6332  df-ov 7138  df-sup 8890  df-inf 8891  df-neg 10862  df-z 11970  df-lcmf 15925
This theorem is referenced by:  lcmfcl  15962  lcmfeq0b  15964  dvdslcmf  15965  lcmftp  15970  lcmfunsnlem2  15974
  Copyright terms: Public domain W3C validator