Metamath Proof Explorer


Theorem mgmsscl

Description: If the base set of a magma is contained in the base set of another magma, and the group operation of the magma is the restriction of the group operation of the other magma to its base set, then the base set of the magma is closed under the group operation of the other magma. Formerly part of proof of grpissubg . (Contributed by AV, 17-Feb-2024)

Ref Expression
Hypotheses mgmsscl.b B = Base G
mgmsscl.s S = Base H
Assertion mgmsscl G Mgm H Mgm S B + H = + G S × S X S Y S X + G Y S

Proof

Step Hyp Ref Expression
1 mgmsscl.b B = Base G
2 mgmsscl.s S = Base H
3 ovres X S Y S X + G S × S Y = X + G Y
4 3 3ad2ant3 G Mgm H Mgm S B + H = + G S × S X S Y S X + G S × S Y = X + G Y
5 simp1r G Mgm H Mgm S B + H = + G S × S X S Y S H Mgm
6 simp3 G Mgm H Mgm S B + H = + G S × S X S Y S X S Y S
7 3anass H Mgm X S Y S H Mgm X S Y S
8 5 6 7 sylanbrc G Mgm H Mgm S B + H = + G S × S X S Y S H Mgm X S Y S
9 eqid + H = + H
10 2 9 mgmcl H Mgm X S Y S X + H Y S
11 8 10 syl G Mgm H Mgm S B + H = + G S × S X S Y S X + H Y S
12 oveq + G S × S = + H X + G S × S Y = X + H Y
13 12 eleq1d + G S × S = + H X + G S × S Y S X + H Y S
14 13 eqcoms + H = + G S × S X + G S × S Y S X + H Y S
15 14 adantl S B + H = + G S × S X + G S × S Y S X + H Y S
16 15 3ad2ant2 G Mgm H Mgm S B + H = + G S × S X S Y S X + G S × S Y S X + H Y S
17 11 16 mpbird G Mgm H Mgm S B + H = + G S × S X S Y S X + G S × S Y S
18 4 17 eqeltrrd G Mgm H Mgm S B + H = + G S × S X S Y S X + G Y S