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

Theorem mgmpropd 18829
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 2767 . . . . . . . . . 10 (𝜑 → (Base‘𝐾) = 𝐵)
43eleq2d 2847 . . . . . . . . 9 (𝜑 → (𝑥 ∈ (Base‘𝐾) ↔ 𝑥 ∈ 𝐵))
54biimpcd 252 . . . . . . . 8 (𝑥 ∈ (Base‘𝐾) → (𝜑 → 𝑥 ∈ 𝐵))
65adantr 486 . . . . . . 7 ((𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾)) → (𝜑 → 𝑥 ∈ 𝐵))
76impcom 413 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾))) → 𝑥 ∈ 𝐵)
83eleq2d 2847 . . . . . . . . 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 2846 . . . 4 ((𝜑 ∧ (𝑥 ∈ (Base‘𝐾) ∧ 𝑦 ∈ (Base‘𝐾))) → ((𝑥(+g‘𝐾)𝑦) ∈ (Base‘𝐾) ↔ (𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐾)))
15142ralbidva 3225 . . 3 (𝜑 → (∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐾)𝑦) ∈ (Base‘𝐾) ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐾)))
16 mgmpropd.l . . . . 5 (𝜑 → 𝐵 = (Base‘𝐿))
172, 16eqtr3d 2798 . . . 4 (𝜑 → (Base‘𝐾) = (Base‘𝐿))
1817eleq2d 2847 . . . . 5 (𝜑 → ((𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐾) ↔ (𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿)))
1917, 18raleqbidv 3335 . . . 4 (𝜑 → (∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐾) ↔ ∀𝑦 ∈ (Base‘𝐿)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿)))
2017, 19raleqbidv 3335 . . 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 4300 . . . 4 (𝐵 ≠ ∅ ↔ ∃𝑎 𝑎 ∈ 𝐵)
242eleq2d 2847 . . . . . 6 (𝜑 → (𝑎 ∈ 𝐵 ↔ 𝑎 ∈ (Base‘𝐾)))
25 eqid 2761 . . . . . . 7 (Base‘𝐾) = (Base‘𝐾)
26 eqid 2761 . . . . . . 7 (+g‘𝐾) = (+g‘𝐾)
2725, 26ismgmn0 18818 . . . . . 6 (𝑎 ∈ (Base‘𝐾) → (𝐾 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐾)𝑦) ∈ (Base‘𝐾)))
2824, 27biimtrdi 256 . . . . 5 (𝜑 → (𝑎 ∈ 𝐵 → (𝐾 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐾)∀𝑦 ∈ (Base‘𝐾)(𝑥(+g‘𝐾)𝑦) ∈ (Base‘𝐾))))
2928exlimdv 1966 . . . 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 2847 . . . . . 6 (𝜑 → (𝑎 ∈ 𝐵 ↔ 𝑎 ∈ (Base‘𝐿)))
33 eqid 2761 . . . . . . 7 (Base‘𝐿) = (Base‘𝐿)
34 eqid 2761 . . . . . . 7 (+g‘𝐿) = (+g‘𝐿)
3533, 34ismgmn0 18818 . . . . . 6 (𝑎 ∈ (Base‘𝐿) → (𝐿 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿)))
3632, 35biimtrdi 256 . . . . 5 (𝜑 → (𝑎 ∈ 𝐵 → (𝐿 ∈ Mgm ↔ ∀𝑥 ∈ (Base‘𝐿)∀𝑦 ∈ (Base‘𝐿)(𝑥(+g‘𝐿)𝑦) ∈ (Base‘𝐿))))
3736exlimdv 1966 . . . 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 1570  ∃wex 1812   ∈ wcel 2145   ≠ wne 2956  ∀wral 3077  ∅c0 4279  ‘cfv 6538  (class class class)co 7420  Basecbs 17387  +gcplusg 17428  Mgmcmgm 18814
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-ext 2733  ax-nul 5260  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-ne 2957  df-ral 3078  df-rab 3414  df-v 3453  df-sbc 3740  df-dif 3902  df-un 3904  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-dm 5661  df-iota 6494  df-fv 6546  df-ov 7423  df-mgm 18816
This theorem is used by:  mgmhmpropd  18887
  Copyright terms: Public domain W3C validator