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

Theorem opifismgm 18103
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 4475 . . . . . 6 ((𝜑 ∧ (𝑥𝐵𝑦𝐵)) → if(𝜓, 𝐶, 𝐷) ∈ 𝐵)
43ralrimivva 3105 . . . . 5 (𝜑 → ∀𝑥𝐵𝑦𝐵 if(𝜓, 𝐶, 𝐷) ∈ 𝐵)
54adantr 484 . . . 4 ((𝜑 ∧ (𝑎𝐵𝑏𝐵)) → ∀𝑥𝐵𝑦𝐵 if(𝜓, 𝐶, 𝐷) ∈ 𝐵)
6 simprl 771 . . . 4 ((𝜑 ∧ (𝑎𝐵𝑏𝐵)) → 𝑎𝐵)
7 simprr 773 . . . 4 ((𝜑 ∧ (𝑎𝐵𝑏𝐵)) → 𝑏𝐵)
8 opifismgm.p . . . . 5 (+g𝑀) = (𝑥𝐵, 𝑦𝐵 ↦ if(𝜓, 𝐶, 𝐷))
98ovmpoelrn 7831 . . . 4 ((∀𝑥𝐵𝑦𝐵 if(𝜓, 𝐶, 𝐷) ∈ 𝐵𝑎𝐵𝑏𝐵) → (𝑎(+g𝑀)𝑏) ∈ 𝐵)
105, 6, 7, 9syl3anc 1373 . . 3 ((𝜑 ∧ (𝑎𝐵𝑏𝐵)) → (𝑎(+g𝑀)𝑏) ∈ 𝐵)
1110ralrimivva 3105 . 2 (𝜑 → ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵)
12 opifismgm.n . . 3 (𝜑𝐵 ≠ ∅)
13 n0 4251 . . . 4 (𝐵 ≠ ∅ ↔ ∃𝑥 𝑥𝐵)
14 opifismgm.b . . . . . 6 𝐵 = (Base‘𝑀)
15 eqid 2734 . . . . . 6 (+g𝑀) = (+g𝑀)
1614, 15ismgmn0 18088 . . . . 5 (𝑥𝐵 → (𝑀 ∈ Mgm ↔ ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵))
1716exlimiv 1938 . . . 4 (∃𝑥 𝑥𝐵 → (𝑀 ∈ Mgm ↔ ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵))
1813, 17sylbi 220 . . 3 (𝐵 ≠ ∅ → (𝑀 ∈ Mgm ↔ ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵))
1912, 18syl 17 . 2 (𝜑 → (𝑀 ∈ Mgm ↔ ∀𝑎𝐵𝑏𝐵 (𝑎(+g𝑀)𝑏) ∈ 𝐵))
2011, 19mpbird 260 1 (𝜑𝑀 ∈ Mgm)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1543  wex 1787  wcel 2110  wne 2935  wral 3054  c0 4227  ifcif 4429  cfv 6369  (class class class)co 7202  cmpo 7204  Basecbs 16684  +gcplusg 16767  Mgmcmgm 18084
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2706  ax-sep 5181  ax-nul 5188  ax-pr 5311  ax-un 7512
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2537  df-eu 2566  df-clab 2713  df-cleq 2726  df-clel 2812  df-nfc 2882  df-ne 2936  df-ral 3059  df-rex 3060  df-rab 3063  df-v 3403  df-sbc 3688  df-csb 3803  df-dif 3860  df-un 3862  df-in 3864  df-ss 3874  df-nul 4228  df-if 4430  df-sn 4532  df-pr 4534  df-op 4538  df-uni 4810  df-iun 4896  df-br 5044  df-opab 5106  df-mpt 5125  df-id 5444  df-xp 5546  df-rel 5547  df-cnv 5548  df-co 5549  df-dm 5550  df-rn 5551  df-res 5552  df-ima 5553  df-iota 6327  df-fun 6371  df-fn 6372  df-f 6373  df-fv 6377  df-ov 7205  df-oprab 7206  df-mpo 7207  df-1st 7750  df-2nd 7751  df-mgm 18086
This theorem is referenced by:  mgm2nsgrplem1  18317  sgrp2nmndlem1  18322
  Copyright terms: Public domain W3C validator