let R be non empty add-cancelable Abelian add-associative right_zeroed associative commutative well-unital distributive left_zeroed doubleLoopStr ; :: thesis: for a, b being Element of R holds {a,b} -Ideal = { ((a * r) + (b * s)) where r, s is Element of R : verum }
let a, b be Element of R; :: thesis: {a,b} -Ideal = { ((a * r) + (b * s)) where r, s is Element of R : verum }
set A = {a,b};
reconsider a' = a, b' = b as Element of {a,b} by TARSKI:def 2;
set M = { (Sum s) where s is LinearCombination of {a,b} : verum } ;
set N = { ((a * r) + (b * s)) where r, s is Element of R : verum } ;
A1: for u being set st u in { (Sum s) where s is LinearCombination of {a,b} : verum } holds
u in { ((a * r) + (b * s)) where r, s is Element of R : verum }
proof
let u be set ; :: thesis: ( u in { (Sum s) where s is LinearCombination of {a,b} : verum } implies u in { ((a * r) + (b * s)) where r, s is Element of R : verum } )
assume u in { (Sum s) where s is LinearCombination of {a,b} : verum } ; :: thesis: u in { ((a * r) + (b * s)) where r, s is Element of R : verum }
then consider s being LinearCombination of {a,b} such that
A2: u = Sum s ;
consider f being Function of NAT ,the carrier of R such that
A3: Sum s = f . (len s) and
A4: f . 0 = 0. R and
A5: for j being Element of NAT
for v being Element of R st j < len s & v = s . (j + 1) holds
f . (j + 1) = (f . j) + v by RLVECT_1:def 13;
defpred S1[ Element of NAT ] means ex r, s being Element of R st f . $1 = (a * r) + (b * s);
f . 0 = a * (0. R) by A4, BINOM:2
.= (a * (0. R)) + (0. R) by RLVECT_1:def 7
.= (a * (0. R)) + (b * (0. R)) by BINOM:2 ;
then A6: S1[ 0 ] ;
A7: now
let j be Element of NAT ; :: thesis: ( 0 <= j & j < len s & S1[j] implies S1[j + 1] )
assume A8: ( 0 <= j & j < len s ) ; :: thesis: ( S1[j] implies S1[j + 1] )
thus ( S1[j] implies S1[j + 1] ) :: thesis: verum
proof
assume ex r, s being Element of R st f . j = (a * r) + (b * s) ; :: thesis: S1[j + 1]
then consider r1, s1 being Element of R such that
A9: f . j = (a * r1) + (b * s1) ;
A10: 0 + 1 <= j + 1 by XREAL_1:8;
j + 1 <= len s by A8, NAT_1:13;
then j + 1 in Seg (len s) by A10, FINSEQ_1:3;
then A11: j + 1 in dom s by FINSEQ_1:def 3;
then consider r2, r3 being Element of R, a' being Element of {a,b} such that
A12: s /. (j + 1) = (r2 * a') * r3 by Def9;
A13: s /. (j + 1) = s . (j + 1) by A11, PARTFUN1:def 8;
per cases ( a' = a or a' = b ) by TARSKI:def 2;
suppose a' = a ; :: thesis: S1[j + 1]
then f . (j + 1) = ((a * r1) + (b * s1)) + ((r2 * a) * r3) by A5, A8, A9, A12, A13
.= ((a * r1) + ((a * r2) * r3)) + (b * s1) by RLVECT_1:def 6
.= ((a * r1) + (a * (r2 * r3))) + (b * s1) by GROUP_1:def 4
.= (a * (r1 + (r2 * r3))) + (b * s1) by VECTSP_1:def 18 ;
hence S1[j + 1] ; :: thesis: verum
end;
suppose a' = b ; :: thesis: S1[j + 1]
then f . (j + 1) = ((a * r1) + (b * s1)) + ((r2 * b) * r3) by A5, A8, A9, A12, A13
.= (a * r1) + ((b * s1) + ((b * r2) * r3)) by RLVECT_1:def 6
.= (a * r1) + ((b * s1) + (b * (r2 * r3))) by GROUP_1:def 4
.= (a * r1) + (b * (s1 + (r2 * r3))) by VECTSP_1:def 18 ;
hence S1[j + 1] ; :: thesis: verum
end;
end;
end;
end;
for k being Element of NAT st 0 <= k & k <= len s holds
S1[k] from POLYNOM2:sch 4(A6, A7);
then ex r, t being Element of R st Sum s = (a * r) + (b * t) by A3;
hence u in { ((a * r) + (b * s)) where r, s is Element of R : verum } by A2; :: thesis: verum
end;
for u being set st u in { ((a * r) + (b * s)) where r, s is Element of R : verum } holds
u in { (Sum s) where s is LinearCombination of {a,b} : verum }
proof
let u be set ; :: thesis: ( u in { ((a * r) + (b * s)) where r, s is Element of R : verum } implies u in { (Sum s) where s is LinearCombination of {a,b} : verum } )
assume u in { ((a * r) + (b * s)) where r, s is Element of R : verum } ; :: thesis: u in { (Sum s) where s is LinearCombination of {a,b} : verum }
then consider r, t being Element of R such that
A14: u = (a * r) + (b * t) ;
set s = <*(a * r),(b * t)*>;
for i being set st i in dom <*(a * r),(b * t)*> holds
ex r, t being Element of R ex a being Element of {a,b} st <*(a * r),(b * t)*> /. i = (r * a) * t
proof
let i be set ; :: thesis: ( i in dom <*(a * r),(b * t)*> implies ex r, t being Element of R ex a being Element of {a,b} st <*(a * r),(b * t)*> /. i = (r * a) * t )
assume A15: i in dom <*(a * r),(b * t)*> ; :: thesis: ex r, t being Element of R ex a being Element of {a,b} st <*(a * r),(b * t)*> /. i = (r * a) * t
then i in Seg (len <*(a * r),(b * t)*>) by FINSEQ_1:def 3;
then A16: i in {1,2} by FINSEQ_1:4, FINSEQ_1:61;
per cases ( i = 1 or i = 2 ) by A16, TARSKI:def 2;
suppose i = 1 ; :: thesis: ex r, t being Element of R ex a being Element of {a,b} st <*(a * r),(b * t)*> /. i = (r * a) * t
then <*(a * r),(b * t)*> /. i = <*(a * r),(b * t)*> . 1 by A15, PARTFUN1:def 8
.= a * r by FINSEQ_1:61
.= ((1. R) * a') * r by VECTSP_1:def 19 ;
hence ex r, t being Element of R ex a being Element of {a,b} st <*(a * r),(b * t)*> /. i = (r * a) * t ; :: thesis: verum
end;
suppose i = 2 ; :: thesis: ex r, t being Element of R ex a being Element of {a,b} st <*(a * r),(b * t)*> /. i = (r * a) * t
then <*(a * r),(b * t)*> /. i = <*(a * r),(b * t)*> . 2 by A15, PARTFUN1:def 8
.= b * t by FINSEQ_1:61
.= ((1. R) * b') * t by VECTSP_1:def 19 ;
hence ex r, t being Element of R ex a being Element of {a,b} st <*(a * r),(b * t)*> /. i = (r * a) * t ; :: thesis: verum
end;
end;
end;
then reconsider s = <*(a * r),(b * t)*> as LinearCombination of {a,b} by Def9;
Sum s = (a * r) + (b * t) by Th1;
hence u in { (Sum s) where s is LinearCombination of {a,b} : verum } by A14; :: thesis: verum
end;
then A17: { (Sum s) where s is LinearCombination of {a,b} : verum } = { ((a * r) + (b * s)) where r, s is Element of R : verum } by A1, TARSKI:2;
now
let x be set ; :: thesis: ( ( x in {a,b} -Ideal implies x in { (Sum s) where s is LinearCombination of {a,b} : verum } ) & ( x in { (Sum s) where s is LinearCombination of {a,b} : verum } implies x in {a,b} -Ideal ) )
hereby :: thesis: ( x in { (Sum s) where s is LinearCombination of {a,b} : verum } implies x in {a,b} -Ideal )
assume x in {a,b} -Ideal ; :: thesis: x in { (Sum s) where s is LinearCombination of {a,b} : verum }
then x in {a,b} -RightIdeal by Th63;
then consider f being RightLinearCombination of {a,b} such that
A18: x = Sum f by Th62;
f is LinearCombination of {a,b} by Th28;
hence x in { (Sum s) where s is LinearCombination of {a,b} : verum } by A18; :: thesis: verum
end;
assume x in { (Sum s) where s is LinearCombination of {a,b} : verum } ; :: thesis: x in {a,b} -Ideal
then consider s being LinearCombination of {a,b} such that
A19: x = Sum s ;
thus x in {a,b} -Ideal by A19, Th60; :: thesis: verum
end;
hence {a,b} -Ideal = { ((a * r) + (b * s)) where r, s is Element of R : verum } by A17, TARSKI:2; :: thesis: verum