let L be non empty multMagma ; :: thesis: for a being Element of L
for p, q being FinSequence of the carrier of L holds (p ^ q) * a = (p * a) ^ (q * a)

let a be Element of L; :: thesis: for p, q being FinSequence of the carrier of L holds (p ^ q) * a = (p * a) ^ (q * a)
let p, q be FinSequence of the carrier of L; :: thesis: (p ^ q) * a = (p * a) ^ (q * a)
A1: dom (p * a) = dom p by Def3;
then A2: len (p * a) = len p by FINSEQ_3:31;
A3: dom (q * a) = dom q by Def3;
then A4: len (q * a) = len q by FINSEQ_3:31;
A5: len ((p * a) ^ (q * a)) = (len (p * a)) + (len (q * a)) by FINSEQ_1:35
.= len (p ^ q) by A2, A4, FINSEQ_1:35 ;
A6: dom ((p ^ q) * a) = dom (p ^ q) by Def3;
then A7: dom ((p ^ q) * a) = dom ((p * a) ^ (q * a)) by A5, FINSEQ_3:31;
now
let i be Nat; :: thesis: ( i in dom ((p ^ q) * a) implies ((p ^ q) * a) /. b1 = ((p * a) ^ (q * a)) /. b1 )
assume A8: i in dom ((p ^ q) * a) ; :: thesis: ((p ^ q) * a) /. b1 = ((p * a) ^ (q * a)) /. b1
per cases ( i in dom p or ex n being Nat st
( n in dom q & i = (len p) + n ) )
by A6, A8, FINSEQ_1:38;
suppose A9: i in dom p ; :: thesis: ((p ^ q) * a) /. b1 = ((p * a) ^ (q * a)) /. b1
thus ((p ^ q) * a) /. i = ((p ^ q) /. i) * a by A6, A8, Def3
.= (p /. i) * a by A9, FINSEQ_4:83
.= (p * a) /. i by A9, Def3
.= ((p * a) ^ (q * a)) /. i by A1, A9, FINSEQ_4:83 ; :: thesis: verum
end;
suppose ex n being Nat st
( n in dom q & i = (len p) + n ) ; :: thesis: ((p ^ q) * a) /. b1 = ((p * a) ^ (q * a)) /. b1
then consider n being Nat such that
A10: ( n in dom q & i = (len p) + n ) ;
thus ((p ^ q) * a) /. i = ((p ^ q) /. i) * a by A6, A8, Def3
.= (q /. n) * a by A10, FINSEQ_4:84
.= (q * a) /. n by A10, Def3
.= ((p * a) ^ (q * a)) /. i by A2, A3, A10, FINSEQ_4:84 ; :: thesis: verum
end;
end;
end;
hence (p ^ q) * a = (p * a) ^ (q * a) by A7, FINSEQ_5:13; :: thesis: verum