Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  mgmpropd Structured version   Visualization version   GIF version

Theorem mgmpropd 45217
Description: If two structures have the same (nonempty) base set, and the values of their group (addition) operations are equal for all pairs of elements of the base set, one is a magma iff the other one is. (Contributed by AV, 25-Feb-2020.)
Hypotheses
Ref Expression
mgmpropd.k (𝜑𝐵 = (Base‘𝐾))
mgmpropd.l (𝜑𝐵 = (Base‘𝐿))
mgmpropd.b (𝜑𝐵 ≠ ∅)
mgmpropd.p ((𝜑 ∧ (𝑥𝐵𝑦𝐵)) → (𝑥(+g𝐾)𝑦) = (𝑥(+g𝐿)𝑦))
Assertion
Ref Expression
mgmpropd (𝜑 → (𝐾 ∈ Mgm ↔ 𝐿 ∈ Mgm))
Distinct variable groups:   𝑥,𝑦,𝐾   𝑥,𝐿,𝑦   𝜑,𝑥,𝑦
Allowed substitution hints:   𝐵(𝑥,𝑦)

Proof of Theorem mgmpropd
Dummy variable 𝑎 is distinct from all other variables.
StepHypRef Expression
1 simpl 482 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾))) → 𝜑)
2 mgmpropd.k . . . . . . . . . . 11 (𝜑𝐵 = (Base‘𝐾))
32eqcomd 2744 . . . . . . . . . 10 (𝜑 → (Base‘𝐾) = 𝐵)
43eleq2d 2824 . . . . . . . . 9 (𝜑 → (𝑥 ∈ (Base‘𝐾) ↔ 𝑥𝐵))
54biimpcd 248 . . . . . . . 8 (𝑥 ∈ (Base‘𝐾) → (𝜑𝑥𝐵))
65adantr 480 . . . . . . 7 ((𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾)) → (𝜑𝑥𝐵))
76impcom 407 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾))) → 𝑥𝐵)
83eleq2d 2824 . . . . . . . . 9 (𝜑 → (𝑦 ∈ (Base‘𝐾) ↔ 𝑦𝐵))
98biimpd 228 . . . . . . . 8 (𝜑 → (𝑦 ∈ (Base‘𝐾) → 𝑦𝐵))
109adantld 490 . . . . . . 7 (𝜑 → ((𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾)) → 𝑦𝐵))
1110imp 406 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾))) → 𝑦𝐵)
12 mgmpropd.p . . . . . 6 ((𝜑 ∧ (𝑥𝐵𝑦𝐵)) → (𝑥(+g𝐾)𝑦) = (𝑥(+g𝐿)𝑦))
131, 7, 11, 12syl12anc 833 . . . . 5 ((𝜑 ∧ (𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾))) → (𝑥(+g𝐾)𝑦) = (𝑥(+g𝐿)𝑦))
1413eleq1d 2823 . . . 4 ((𝜑 ∧ (𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾))) → ((𝑥(+g𝐾)𝑦) ∈ (Base‘𝐾) ↔ (𝑥(+g𝐿)𝑦) ∈ (Base‘𝐾)))
15142ralbidva 3121 . . 3 (𝜑 → (∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g𝐾)𝑦) ∈ (Base‘𝐾) ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g𝐿)𝑦) ∈ (Base‘𝐾)))
16 mgmpropd.l . . . . 5 (𝜑𝐵 = (Base‘𝐿))
172, 16eqtr3d 2780 . . . 4 (𝜑 → (Base‘𝐾) = (Base‘𝐿))
1817eleq2d 2824 . . . . 5 (𝜑 → ((𝑥(+g𝐿)𝑦) ∈ (Base‘𝐾) ↔ (𝑥(+g𝐿)𝑦) ∈ (Base‘𝐿)))
1917, 18raleqbidv 3327 . . . 4 (𝜑 → (∀𝑦 ∈ (Base‘𝐾)(𝑥(+g𝐿)𝑦) ∈ (Base‘𝐾) ↔ ∀𝑦 ∈ (Base‘𝐿)(𝑥(+g𝐿)𝑦) ∈ (Base‘𝐿)))
2017, 19raleqbidv 3327 . . 3 (𝜑 → (∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g𝐿)𝑦) ∈ (Base‘𝐾) ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g𝐿)𝑦) ∈ (Base‘𝐿)))
2115, 20bitrd 278 . 2 (𝜑 → (∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g𝐾)𝑦) ∈ (Base‘𝐾) ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g𝐿)𝑦) ∈ (Base‘𝐿)))
22 mgmpropd.b . . 3 (𝜑𝐵 ≠ ∅)
23 n0 4277 . . . 4 (𝐵 ≠ ∅ ↔ ∃𝑎 𝑎𝐵)
242eleq2d 2824 . . . . . 6 (𝜑 → (𝑎𝐵𝑎 ∈ (Base‘𝐾)))
25 eqid 2738 . . . . . . 7 (Base‘𝐾) = (Base‘𝐾)
26 eqid 2738 . . . . . . 7 (+g𝐾) = (+g𝐾)
2725, 26ismgmn0 18243 . . . . . 6 (𝑎 ∈ (Base‘𝐾) → (𝐾 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g𝐾)𝑦) ∈ (Base‘𝐾)))
2824, 27syl6bi 252 . . . . 5 (𝜑 → (𝑎𝐵 → (𝐾 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g𝐾)𝑦) ∈ (Base‘𝐾))))
2928exlimdv 1937 . . . 4 (𝜑 → (∃𝑎 𝑎𝐵 → (𝐾 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g𝐾)𝑦) ∈ (Base‘𝐾))))
3023, 29syl5bi 241 . . 3 (𝜑 → (𝐵 ≠ ∅ → (𝐾 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g𝐾)𝑦) ∈ (Base‘𝐾))))
3122, 30mpd 15 . 2 (𝜑 → (𝐾 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g𝐾)𝑦) ∈ (Base‘𝐾)))
3216eleq2d 2824 . . . . . 6 (𝜑 → (𝑎𝐵𝑎 ∈ (Base‘𝐿)))
33 eqid 2738 . . . . . . 7 (Base‘𝐿) = (Base‘𝐿)
34 eqid 2738 . . . . . . 7 (+g𝐿) = (+g𝐿)
3533, 34ismgmn0 18243 . . . . . 6 (𝑎 ∈ (Base‘𝐿) → (𝐿 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g𝐿)𝑦) ∈ (Base‘𝐿)))
3632, 35syl6bi 252 . . . . 5 (𝜑 → (𝑎𝐵 → (𝐿 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g𝐿)𝑦) ∈ (Base‘𝐿))))
3736exlimdv 1937 . . . 4 (𝜑 → (∃𝑎 𝑎𝐵 → (𝐿 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g𝐿)𝑦) ∈ (Base‘𝐿))))
3823, 37syl5bi 241 . . 3 (𝜑 → (𝐵 ≠ ∅ → (𝐿 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g𝐿)𝑦) ∈ (Base‘𝐿))))
3922, 38mpd 15 . 2 (𝜑 → (𝐿 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g𝐿)𝑦) ∈ (Base‘𝐿)))
4021, 31, 393bitr4d 310 1 (𝜑 → (𝐾 ∈ Mgm ↔ 𝐿 ∈ Mgm))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  wne 2942  wral 3063  c0 4253  cfv 6418  (class class class)co 7255  Basecbs 16840  +gcplusg 16888  Mgmcmgm 18239
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-dm 5590  df-iota 6376  df-fv 6426  df-ov 7258  df-mgm 18241
This theorem is referenced by:  mgmhmpropd  45227
  Copyright terms: Public domain W3C validator