let I, i be set ; :: thesis: for F being multMagma-Family of
for G being non empty multMagma st i in I & G = F . i & product F is associative holds
G is associative
let F be multMagma-Family of ; :: thesis: for G being non empty multMagma st i in I & G = F . i & product F is associative holds
G is associative
let G be non empty multMagma ; :: thesis: ( i in I & G = F . i & product F is associative implies G is associative )
assume that
A1:
( i in I & G = F . i )
and
A2:
for x, y, z being Element of (product F) holds (x * y) * z = x * (y * z)
; :: according to GROUP_1:def 4 :: thesis: G is associative
set GP = product F;
let x, y, z be Element of G; :: according to GROUP_1:def 4 :: thesis: (x * y) * z = x * (y * z)
defpred S1[ set , set ] means ( ( $1 = i implies $2 = x ) & ( $1 <> i implies ex H being non empty multMagma ex a being Element of H st
( H = F . $1 & $2 = a ) ) );
A3:
for j being set st j in I holds
ex k being set st S1[j,k]
consider gx being ManySortedSet of such that
A6:
for j being set st j in I holds
S1[j,gx . j]
from PBOOLE:sch 3(A3);
defpred S2[ set , set ] means ( ( $1 = i implies $2 = y ) & ( $1 <> i implies ex H being non empty multMagma ex a being Element of H st
( H = F . $1 & $2 = a ) ) );
A7:
for j being set st j in I holds
ex k being set st S2[j,k]
consider gy being ManySortedSet of such that
A10:
for j being set st j in I holds
S2[j,gy . j]
from PBOOLE:sch 3(A7);
defpred S3[ set , set ] means ( ( $1 = i implies $2 = z ) & ( $1 <> i implies ex H being non empty multMagma ex a being Element of H st
( H = F . $1 & $2 = a ) ) );
A11:
for j being set st j in I holds
ex k being set st S3[j,k]
consider gz being ManySortedSet of such that
A14:
for j being set st j in I holds
S3[j,gz . j]
from PBOOLE:sch 3(A11);
A15:
( dom gx = I & dom gy = I & dom gz = I )
by PARTFUN1:def 4;
A16:
dom (Carrier F) = I
by PARTFUN1:def 4;
then reconsider gx = gx as Element of product (Carrier F) by A15, A16, CARD_3:18;
then reconsider gy = gy as Element of product (Carrier F) by A15, A16, CARD_3:18;
then reconsider gz = gz as Element of product (Carrier F) by A15, A16, CARD_3:18;
reconsider x1 = gx, y1 = gy, z1 = gz as Element of (product F) by Def2;
reconsider xy = x1 * y1, xyz3 = (x1 * y1) * z1, yz = y1 * z1, xyz5 = x1 * (y1 * z1) as Element of product (Carrier F) by Def2;
reconsider xyi = xy . i, yzi = yz . i as Element of G by A1, Lm1;
A29:
(x1 * y1) * z1 = x1 * (y1 * z1)
by A2;
A30:
( gx . i = x & gy . i = y & gz . i = z )
by A1, A6, A10, A14;
then
( xy . i = x * y & xyi * z = xyz3 . i & x * yzi = xyz5 . i )
by A1, Th4;
hence
(x * y) * z = x * (y * z)
by A1, A29, A30, Th4; :: thesis: verum