let i, I be set ; for F being multMagma-Family of I
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 I; 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 ; ( i in I & G = F . i & product F is associative implies G is associative )
assume that
A1:
i in I
and
A2:
G = F . i
and
A3:
for x, y, z being Element of (product F) holds (x * y) * z = x * (y * z)
; GROUP_1:def 3 G is associative
let x, y, z be Element of G; GROUP_1:def 3 (x * y) * z = x * (y * z)
defpred S1[ object , object ] 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 ) ) );
A4:
for j being object st j in I holds
ex k being object st S1[j,k]
consider gy being ManySortedSet of I such that
A7:
for j being object st j in I holds
S1[j,gy . j]
from PBOOLE:sch 3(A4);
A8:
dom gy = I
by PARTFUN1:def 2;
defpred S2[ object , object ] 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 ) ) );
A13:
for j being object st j in I holds
ex k being object st S2[j,k]
consider gz being ManySortedSet of I such that
A16:
for j being object st j in I holds
S2[j,gz . j]
from PBOOLE:sch 3(A13);
set GP = product F;
defpred S3[ object , object ] 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 ) ) );
A17:
for j being object st j in I holds
ex k being object st S3[j,k]
consider gx being ManySortedSet of I such that
A20:
for j being object st j in I holds
S3[j,gx . j]
from PBOOLE:sch 3(A17);
A21:
dom gx = I
by PARTFUN1:def 2;
A26:
dom gz = I
by PARTFUN1:def 2;
A31:
dom (Carrier F) = I
by PARTFUN1:def 2;
then reconsider gx = gx as Element of product (Carrier F) by A21, A22, CARD_3:9;
reconsider gz = gz as Element of product (Carrier F) by A26, A31, A27, CARD_3:9;
reconsider gy = gy as Element of product (Carrier F) by A8, A31, A9, CARD_3:9;
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, A2, Lm1;
A32:
(x1 * y1) * z1 = x1 * (y1 * z1)
by A3;
A33:
gx . i = x
by A1, A20;
then A34:
x * yzi = xyz5 . i
by A1, A2, Th1;
A35:
gz . i = z
by A1, A16;
then A36:
xyi * z = xyz3 . i
by A1, A2, Th1;
A37:
gy . i = y
by A1, A7;
then
xy . i = x * y
by A1, A2, A33, Th1;
hence
(x * y) * z = x * (y * z)
by A1, A2, A32, A37, A35, A36, A34, Th1; verum