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

Theorem lcmf0val 15960
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 15929 . 2 lcm = (𝑧 ∈ 𝒫 ℤ ↦ if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < )))
2 eleq2 2901 . . . 4 (𝑧 = 𝑍 → (0 ∈ 𝑧 ↔ 0 ∈ 𝑍))
3 raleq 3405 . . . . . 6 (𝑧 = 𝑍 → (∀𝑚𝑧 𝑚𝑛 ↔ ∀𝑚𝑍 𝑚𝑛))
43rabbidv 3480 . . . . 5 (𝑧 = 𝑍 → {𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛} = {𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛})
54infeq1d 8935 . . . 4 (𝑧 = 𝑍 → inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < ) = inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < ))
62, 5ifbieq2d 4491 . . 3 (𝑧 = 𝑍 → if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < )) = if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < )))
7 iftrue 4472 . . . 4 (0 ∈ 𝑍 → if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < )) = 0)
87adantl 484 . . 3 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → if(0 ∈ 𝑍, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑍 𝑚𝑛}, ℝ, < )) = 0)
96, 8sylan9eqr 2878 . 2 (((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) ∧ 𝑧 = 𝑍) → if(0 ∈ 𝑧, 0, inf({𝑛 ∈ ℕ ∣ ∀𝑚𝑧 𝑚𝑛}, ℝ, < )) = 0)
10 zex 11984 . . . . . 6 ℤ ∈ V
1110ssex 5217 . . . . 5 (𝑍 ⊆ ℤ → 𝑍 ∈ V)
12 elpwg 4544 . . . . 5 (𝑍 ∈ V → (𝑍 ∈ 𝒫 ℤ ↔ 𝑍 ⊆ ℤ))
1311, 12syl 17 . . . 4 (𝑍 ⊆ ℤ → (𝑍 ∈ 𝒫 ℤ ↔ 𝑍 ⊆ ℤ))
1413ibir 270 . . 3 (𝑍 ⊆ ℤ → 𝑍 ∈ 𝒫 ℤ)
1514adantr 483 . 2 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → 𝑍 ∈ 𝒫 ℤ)
16 simpr 487 . 2 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → 0 ∈ 𝑍)
171, 9, 15, 16fvmptd2 6770 1 ((𝑍 ⊆ ℤ ∧ 0 ∈ 𝑍) → (lcm𝑍) = 0)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1533  wcel 2110  wral 3138  {crab 3142  Vcvv 3494  wss 3935  ifcif 4466  𝒫 cpw 4538   class class class wbr 5058  cfv 6349  infcinf 8899  cr 10530  0cc0 10531   < clt 10669  cn 11632  cz 11975  cdvds 15601  lcmclcmf 15927
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5195  ax-nul 5202  ax-pr 5321  ax-cnex 10587  ax-resscn 10588
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3772  df-csb 3883  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-pw 4540  df-sn 4561  df-pr 4563  df-op 4567  df-uni 4832  df-br 5059  df-opab 5121  df-mpt 5139  df-id 5454  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-iota 6308  df-fun 6351  df-fv 6357  df-ov 7153  df-sup 8900  df-inf 8901  df-neg 10867  df-z 11976  df-lcmf 15929
This theorem is referenced by:  lcmfcl  15966  lcmfeq0b  15968  dvdslcmf  15969  lcmftp  15974  lcmfunsnlem2  15978
  Copyright terms: Public domain W3C validator