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

Theorem opifismgm 17868
Description: A structure with a group addition operation expressed by a conditional operator is a magma if both values of the conditional operator are contained in the base set. (Contributed by AV, 9-Feb-2020.)
Hypotheses
Ref Expression
opifismgm.b 𝐵 = (Base‘𝑀)
opifismgm.p (+g𝑀) = (𝑥𝐵, 𝑦𝐵 ↦ if(𝜓, 𝐶, 𝐷))
opifismgm.n (𝜑𝐵 ≠ ∅)
opifismgm.c ((𝜑 ∧ (𝑥𝐵𝑦𝐵)) → 𝐶𝐵)
opifismgm.d ((𝜑 ∧ (𝑥𝐵𝑦𝐵)) → 𝐷𝐵)
Assertion
Ref Expression
opifismgm (𝜑𝑀 ∈ Mgm)
Distinct variable groups:   𝑥,𝐵,𝑦   𝑥,𝑀   𝜑,𝑥,𝑦
Allowed substitution hints:   𝜓(𝑥,𝑦)   𝐶(𝑥,𝑦)   𝐷(𝑥,𝑦)   𝑀(𝑦)

Proof of Theorem opifismgm
Dummy variables 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 opifismgm.c . . . . . . 7 ((𝜑 ∧ (𝑥𝐵𝑦𝐵)) → 𝐶𝐵)
2 opifismgm.d . . . . . . 7 ((𝜑 ∧ (𝑥𝐵𝑦𝐵)) → 𝐷𝐵)
31, 2ifcld 4511 . . . . . 6 ((𝜑 ∧ (𝑥𝐵𝑦𝐵)) → if(𝜓, 𝐶, 𝐷) ∈ 𝐵)
43ralrimivva 3191 . . . . 5 (𝜑 → ∀𝑥𝐵𝑦𝐵 if(𝜓, 𝐶, 𝐷) ∈ 𝐵)
54adantr 483 . . . 4 ((𝜑 ∧ (𝑎𝐵𝑏𝐵)) → ∀𝑥𝐵𝑦𝐵 if(𝜓, 𝐶, 𝐷) ∈ 𝐵)
6 simprl 769 . . . 4 ((𝜑 ∧ (𝑎𝐵𝑏𝐵)) → 𝑎𝐵)
7 simprr 771 . . . 4 ((𝜑 ∧ (𝑎𝐵𝑏𝐵)) → 𝑏𝐵)
8 opifismgm.p . . . . 5 (+g𝑀) = (𝑥𝐵, 𝑦𝐵 ↦ if(𝜓, 𝐶, 𝐷))
98ovmpoelrn 7769 . . . 4 ((∀𝑥𝐵𝑦𝐵 if(𝜓, 𝐶, 𝐷) ∈ 𝐵𝑎𝐵𝑏𝐵) → (𝑎(+g𝑀)𝑏) ∈ 𝐵)
105, 6, 7, 9syl3anc 1367 . . 3 ((𝜑 ∧ (𝑎𝐵𝑏𝐵)) → (𝑎(+g𝑀)𝑏) ∈ 𝐵)
1110ralrimivva 3191 . 2 (𝜑 → ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵)
12 opifismgm.n . . 3 (𝜑𝐵 ≠ ∅)
13 n0 4309 . . . 4 (𝐵 ≠ ∅ ↔ ∃𝑥 𝑥𝐵)
14 opifismgm.b . . . . . 6 𝐵 = (Base‘𝑀)
15 eqid 2821 . . . . . 6 (+g𝑀) = (+g𝑀)
1614, 15ismgmn0 17853 . . . . 5 (𝑥𝐵 → (𝑀 ∈ Mgm ↔ ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵))
1716exlimiv 1927 . . . 4 (∃𝑥 𝑥𝐵 → (𝑀 ∈ Mgm ↔ ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵))
1813, 17sylbi 219 . . 3 (𝐵 ≠ ∅ → (𝑀 ∈ Mgm ↔ ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵))
1912, 18syl 17 . 2 (𝜑 → (𝑀 ∈ Mgm ↔ ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵))
2011, 19mpbird 259 1 (𝜑𝑀 ∈ Mgm)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1533  wex 1776  wcel 2110  wne 3016  wral 3138  c0 4290  ifcif 4466  cfv 6354  (class class class)co 7155  cmpo 7157  Basecbs 16482  +gcplusg 16564  Mgmcmgm 17849
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 5202  ax-nul 5209  ax-pow 5265  ax-pr 5329  ax-un 7460
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  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-ne 3017  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-sn 4567  df-pr 4569  df-op 4573  df-uni 4838  df-iun 4920  df-br 5066  df-opab 5128  df-mpt 5146  df-id 5459  df-xp 5560  df-rel 5561  df-cnv 5562  df-co 5563  df-dm 5564  df-rn 5565  df-res 5566  df-ima 5567  df-iota 6313  df-fun 6356  df-fn 6357  df-f 6358  df-fv 6362  df-ov 7158  df-oprab 7159  df-mpo 7160  df-1st 7688  df-2nd 7689  df-mgm 17851
This theorem is referenced by:  mgm2nsgrplem1  18082  sgrp2nmndlem1  18087
  Copyright terms: Public domain W3C validator