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

Theorem mgmpropd 18838
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 488 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾))) → 𝜑)
2 mgmpropd.k . . . . . . . . . . 11 (𝜑 → 𝐵 = (Base‘𝐾))
32eqcomd 2766 . . . . . . . . . 10 (𝜑 → (Base‘𝐾) = 𝐵)
43eleq2d 2846 . . . . . . . . 9 (𝜑 → (𝑥 ∈ (Base‘𝐾) ↔ 𝑥 ∈ 𝐵))
54biimpcd 252 . . . . . . . 8 (𝑥 ∈ (Base‘𝐾) → (𝜑 → 𝑥 ∈ 𝐵))
65adantr 486 . . . . . . 7 ((𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾)) → (𝜑 → 𝑥 ∈ 𝐵))
76impcom 413 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾))) → 𝑥 ∈ 𝐵)
83eleq2d 2846 . . . . . . . . 9 (𝜑 → (𝑦 ∈ (Base‘𝐾) ↔ 𝑦 ∈ 𝐵))
98biimpd 232 . . . . . . . 8 (𝜑 → (𝑦 ∈ (Base‘𝐾) → 𝑦 ∈ 𝐵))
109adantld 496 . . . . . . 7 (𝜑 → ((𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾)) → 𝑦 ∈ 𝐵))
1110imp 412 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾))) → 𝑦 ∈ 𝐵)
12 mgmpropd.p . . . . . 6 ((𝜑 ∧ (𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵)) → (𝑥(+g‘𝐾)𝑦) = (𝑥(+g‘𝐿)𝑦))
131, 7, 11, 12syl12anc 850 . . . . 5 ((𝜑 ∧ (𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾))) → (𝑥(+g‘𝐾)𝑦) = (𝑥(+g‘𝐿)𝑦))
1413eleq1d 2845 . . . 4 ((𝜑 ∧ (𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾))) → ((𝑥(+g‘𝐾)𝑦) ∈ (Base‘𝐾) ↔ (𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐾)))
15142ralbidva 3224 . . 3 (𝜑 → (∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐾)𝑦) ∈ (Base‘𝐾) ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐾)))
16 mgmpropd.l . . . . 5 (𝜑 → 𝐵 = (Base‘𝐿))
172, 16eqtr3d 2797 . . . 4 (𝜑 → (Base‘𝐾) = (Base‘𝐿))
1817eleq2d 2846 . . . . 5 (𝜑 → ((𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐾) ↔ (𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿)))
1917, 18raleqbidv 3334 . . . 4 (𝜑 → (∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐾) ↔ ∀𝑦 ∈ (Base‘𝐿)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿)))
2017, 19raleqbidv 3334 . . 3 (𝜑 → (∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐾) ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿)))
2115, 20bitrd 282 . 2 (𝜑 → (∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐾)𝑦) ∈ (Base‘𝐾) ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿)))
22 mgmpropd.b . . 3 (𝜑 → 𝐵 ≠ ∅)
23 n0 4299 . . . 4 (𝐵 ≠ ∅ ↔ ∃𝑎 𝑎 ∈ 𝐵)
242eleq2d 2846 . . . . . 6 (𝜑 → (𝑎 ∈ 𝐵 ↔ 𝑎 ∈ (Base‘𝐾)))
25 eqid 2760 . . . . . . 7 (Base‘𝐾) = (Base‘𝐾)
26 eqid 2760 . . . . . . 7 (+g‘𝐾) = (+g‘𝐾)
2725, 26ismgmn0 18827 . . . . . 6 (𝑎 ∈ (Base‘𝐾) → (𝐾 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐾)𝑦) ∈ (Base‘𝐾)))
2824, 27biimtrdi 256 . . . . 5 (𝜑 → (𝑎 ∈ 𝐵 → (𝐾 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐾)𝑦) ∈ (Base‘𝐾))))
2928exlimdv 1965 . . . 4 (𝜑 → (∃𝑎 𝑎 ∈ 𝐵 → (𝐾 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐾)𝑦) ∈ (Base‘𝐾))))
3023, 29biimtrid 245 . . 3 (𝜑 → (𝐵 ≠ ∅ → (𝐾 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐾)𝑦) ∈ (Base‘𝐾))))
3122, 30mpd 16 . 2 (𝜑 → (𝐾 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐾)𝑦) ∈ (Base‘𝐾)))
3216eleq2d 2846 . . . . . 6 (𝜑 → (𝑎 ∈ 𝐵 ↔ 𝑎 ∈ (Base‘𝐿)))
33 eqid 2760 . . . . . . 7 (Base‘𝐿) = (Base‘𝐿)
34 eqid 2760 . . . . . . 7 (+g‘𝐿) = (+g‘𝐿)
3533, 34ismgmn0 18827 . . . . . 6 (𝑎 ∈ (Base‘𝐿) → (𝐿 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿)))
3632, 35biimtrdi 256 . . . . 5 (𝜑 → (𝑎 ∈ 𝐵 → (𝐿 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿))))
3736exlimdv 1965 . . . 4 (𝜑 → (∃𝑎 𝑎 ∈ 𝐵 → (𝐿 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿))))
3823, 37biimtrid 245 . . 3 (𝜑 → (𝐵 ≠ ∅ → (𝐿 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿))))
3922, 38mpd 16 . 2 (𝜑 → (𝐿 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿)))
4021, 31, 393bitr4d 314 1 (𝜑 → (𝐾 ∈ Mgm ↔ 𝐿 ∈ Mgm))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1569  ∃wex 1811   ∈ wcel 2144   ≠ wne 2955  ∀wral 3076  ∅c0 4277  ‘cfv 6543  (class class class)co 7424  Basecbs 17396  +gcplusg 17437  Mgmcmgm 18823
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-ext 2732  ax-nul 5259  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-ne 2956  df-ral 3077  df-rab 3413  df-v 3452  df-sbc 3739  df-ss 3897  df-dif 4046  df-un 4150  df-nul 4278  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-br 5103  df-dm 5661  df-iota 6497  df-fv 6551  df-ov 7427  df-mgm 18825
This theorem is used by:  mgmhmpropd  18896
  Copyright terms: Public domain W3C validator