let K be Field; :: thesis: for p, q being FinSequence of K st p is first-line-of-circulant & q is first-line-of-circulant & len p = len q holds
p + q is first-line-of-circulant

let p, q be FinSequence of K; :: thesis: ( p is first-line-of-circulant & q is first-line-of-circulant & len p = len q implies p + q is first-line-of-circulant )
set n = len p;
assume A1: ( p is first-line-of-circulant & q is first-line-of-circulant & len p = len q ) ; :: thesis: p + q is first-line-of-circulant
consider M1 being Matrix of len p,K such that
A2: M1 is_line_circulant_about p by A1, Def3;
consider M2 being Matrix of len p,K such that
A4: M2 is_line_circulant_about q by A1, Def3;
A6: ( Indices M1 = [:(Seg (len p)),(Seg (len p)):] & len M1 = len p & width M1 = len p & Indices M2 = [:(Seg (len p)),(Seg (len p)):] & len M2 = len p & width M2 = len p ) by MATRIX_1:25;
A7: ( len q = len p & len p = len p & len (M1 + M2) = len p & width (M1 + M2) = len p ) by A1, MATRIX_1:25;
A8: ( dom p = Seg (len p) & dom (p + q) = Seg (len (p + q)) & dom p = Seg (len p) & dom q = Seg (len p) ) by A1, FINSEQ_1:def 3;
then A9: dom (p + q) = dom p by POLYNOM1:5;
then A10: len (p + q) = len p by A8, FINSEQ_1:def 3;
set M3 = M1 + M2;
A12: for i, j being Nat st [i,j] in Indices (M1 + M2) holds
(M1 + M2) * i,j = (p + q) . (((j - i) mod (len (p + q))) + 1)
proof
let i, j be Nat; :: thesis: ( [i,j] in Indices (M1 + M2) implies (M1 + M2) * i,j = (p + q) . (((j - i) mod (len (p + q))) + 1) )
assume [i,j] in Indices (M1 + M2) ; :: thesis: (M1 + M2) * i,j = (p + q) . (((j - i) mod (len (p + q))) + 1)
then B2: ( [i,j] in Indices M1 & [i,j] in Indices M2 ) by A6, MATRIX_1:25;
then B23: ( ((j - i) mod (len (p + q))) + 1 in dom p & ((j - i) mod (len (p + q))) + 1 in dom (p + q) & ((j - i) mod (len (p + q))) + 1 in dom q ) by A8, A9, A6, Lm2;
(M1 + M2) * i,j = (M1 * i,j) + (M2 * i,j) by B2, MATRIX_3:def 3
.= the addF of K . (M1 * i,j),(q . (((j - i) mod (len q)) + 1)) by B2, A4, Def1
.= the addF of K . (p . (((j - i) mod (len (p + q))) + 1)),(q . (((j - i) mod (len (p + q))) + 1)) by B2, A2, Def1, A1, A10
.= (p + q) . (((j - i) mod (len (p + q))) + 1) by B23, FUNCOP_1:28 ;
hence (M1 + M2) * i,j = (p + q) . (((j - i) mod (len (p + q))) + 1) ; :: thesis: verum
end;
A13: M1 + M2 is_line_circulant_about p + q by A7, Def1, A10, A12;
consider M3 being Matrix of len (p + q),K such that
A14: ( len (p + q) = width M3 & M3 is_line_circulant_about p + q ) by A10, A13, A7;
take M3 ; :: according to MATRIX16:def 3 :: thesis: M3 is_line_circulant_about p + q
thus M3 is_line_circulant_about p + q by A14; :: thesis: verum