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

Theorem opifismgm 18432
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 4518 . . . . . 6 ((𝜑 ∧ (𝑥𝐵𝑦𝐵)) → if(𝜓, 𝐶, 𝐷) ∈ 𝐵)
43ralrimivva 3193 . . . . 5 (𝜑 → ∀𝑥𝐵𝑦𝐵 if(𝜓, 𝐶, 𝐷) ∈ 𝐵)
54adantr 481 . . . 4 ((𝜑 ∧ (𝑎𝐵𝑏𝐵)) → ∀𝑥𝐵𝑦𝐵 if(𝜓, 𝐶, 𝐷) ∈ 𝐵)
6 simprl 768 . . . 4 ((𝜑 ∧ (𝑎𝐵𝑏𝐵)) → 𝑎𝐵)
7 simprr 770 . . . 4 ((𝜑 ∧ (𝑎𝐵𝑏𝐵)) → 𝑏𝐵)
8 opifismgm.p . . . . 5 (+g𝑀) = (𝑥𝐵, 𝑦𝐵 ↦ if(𝜓, 𝐶, 𝐷))
98ovmpoelrn 7972 . . . 4 ((∀𝑥𝐵𝑦𝐵 if(𝜓, 𝐶, 𝐷) ∈ 𝐵𝑎𝐵𝑏𝐵) → (𝑎(+g𝑀)𝑏) ∈ 𝐵)
105, 6, 7, 9syl3anc 1370 . . 3 ((𝜑 ∧ (𝑎𝐵𝑏𝐵)) → (𝑎(+g𝑀)𝑏) ∈ 𝐵)
1110ralrimivva 3193 . 2 (𝜑 → ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵)
12 opifismgm.n . . 3 (𝜑𝐵 ≠ ∅)
13 n0 4292 . . . 4 (𝐵 ≠ ∅ ↔ ∃𝑥 𝑥𝐵)
14 opifismgm.b . . . . . 6 𝐵 = (Base‘𝑀)
15 eqid 2736 . . . . . 6 (+g𝑀) = (+g𝑀)
1614, 15ismgmn0 18417 . . . . 5 (𝑥𝐵 → (𝑀 ∈ Mgm ↔ ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵))
1716exlimiv 1932 . . . 4 (∃𝑥 𝑥𝐵 → (𝑀 ∈ Mgm ↔ ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵))
1813, 17sylbi 216 . . 3 (𝐵 ≠ ∅ → (𝑀 ∈ Mgm ↔ ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵))
1912, 18syl 17 . 2 (𝜑 → (𝑀 ∈ Mgm ↔ ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵))
2011, 19mpbird 256 1 (𝜑𝑀 ∈ Mgm)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1540  wex 1780  wcel 2105  wne 2940  wral 3061  c0 4268  ifcif 4472  cfv 6473  (class class class)co 7329  cmpo 7331  Basecbs 17001  +gcplusg 17051  Mgmcmgm 18413
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2153  ax-12 2170  ax-ext 2707  ax-sep 5240  ax-nul 5247  ax-pr 5369  ax-un 7642
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2886  df-ne 2941  df-ral 3062  df-rex 3071  df-rab 3404  df-v 3443  df-sbc 3727  df-csb 3843  df-dif 3900  df-un 3902  df-in 3904  df-ss 3914  df-nul 4269  df-if 4473  df-sn 4573  df-pr 4575  df-op 4579  df-uni 4852  df-iun 4940  df-br 5090  df-opab 5152  df-mpt 5173  df-id 5512  df-xp 5620  df-rel 5621  df-cnv 5622  df-co 5623  df-dm 5624  df-rn 5625  df-res 5626  df-ima 5627  df-iota 6425  df-fun 6475  df-fn 6476  df-f 6477  df-fv 6481  df-ov 7332  df-oprab 7333  df-mpo 7334  df-1st 7891  df-2nd 7892  df-mgm 18415
This theorem is referenced by:  mgm2nsgrplem1  18645  sgrp2nmndlem1  18650
  Copyright terms: Public domain W3C validator