let R be non empty add-cancelable Abelian add-associative right_zeroed well-unital distributive associative commutative 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 a9 = a, b9 = 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 object 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 object ; :: 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 sequence of the carrier of R such that
A3: Sum s = f . (len s) and
A4: f . 0 = 0. R and
A5: for j being 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 12;
defpred S1[ Element of NAT ] means ex r, s being Element of R st f . $1 = (a * r) + (b * s);
A6: now :: thesis: for j being Element of NAT st 0 <= j & j < len s & S1[j] holds
S1[j + 1]
let j be Element of NAT ; :: thesis: ( 0 <= j & j < len s & S1[j] implies S1[j + 1] )
assume that
0 <= j and
A7: j < len s ; :: thesis: ( S1[j] implies S1[j + 1] )
thus ( S1[j] implies S1[j + 1] ) :: thesis: verum
proof
( 0 + 1 <= j + 1 & j + 1 <= len s ) by A7, NAT_1:13;
then j + 1 in Seg (len s) by FINSEQ_1:1;
then A8: j + 1 in dom s by FINSEQ_1:def 3;
then A9: s /. (j + 1) = s . (j + 1) by PARTFUN1:def 6;
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
A10: f . j = (a * r1) + (b * s1) ;
consider r2, r3 being Element of R, a9 being Element of {a,b} such that
A11: s /. (j + 1) = (r2 * a9) * r3 by A8, Def8;
per cases ( a9 = a or a9 = b ) by TARSKI:def 2;
suppose a9 = a ; :: thesis: S1[j + 1]
then f . (j + 1) = ((a * r1) + (b * s1)) + ((r2 * a) * r3) by A5, A7, A10, A11, A9
.= ((a * r1) + ((a * r2) * r3)) + (b * s1) by RLVECT_1:def 3
.= ((a * r1) + (a * (r2 * r3))) + (b * s1) by GROUP_1:def 3
.= (a * (r1 + (r2 * r3))) + (b * s1) by VECTSP_1:def 7 ;
hence S1[j + 1] ; :: thesis: verum
end;
suppose a9 = b ; :: thesis: S1[j + 1]
then f . (j + 1) = ((a * r1) + (b * s1)) + ((r2 * b) * r3) by A5, A7, A10, A11, A9
.= (a * r1) + ((b * s1) + ((b * r2) * r3)) by RLVECT_1:def 3
.= (a * r1) + ((b * s1) + (b * (r2 * r3))) by GROUP_1:def 3
.= (a * r1) + (b * (s1 + (r2 * r3))) by VECTSP_1:def 7 ;
hence S1[j + 1] ; :: thesis: verum
end;
end;
end;
end;
f . 0 = a * (0. R) by A4, BINOM:2
.= (a * (0. R)) + (0. R) by RLVECT_1:def 4
.= (a * (0. R)) + (b * (0. R)) by BINOM:2 ;
then A12: S1[ 0 ] ;
for k being Element of NAT st 0 <= k & k <= len s holds
S1[k] from INT_1:sch 7(A12, A6);
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;
A13: now :: thesis: for x being object holds
( ( 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 ) )
let x be object ; :: 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
A14: 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 A14; :: thesis: verum
end;
assume x in { (Sum s) where s is LinearCombination of {a,b} : verum } ; :: thesis: x in {a,b} -Ideal
then ex s being LinearCombination of {a,b} st x = Sum s ;
hence x in {a,b} -Ideal by Th60; :: thesis: verum
end;
for u being object 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 object ; :: 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
A15: 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 A16: 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 A17: i in {1,2} by FINSEQ_1:2, FINSEQ_1:44;
per cases ( i = 1 or i = 2 ) by A17, 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 A16, PARTFUN1:def 6
.= a * r
.= ((1. R) * a9) * r ;
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 A16, PARTFUN1:def 6
.= b * t
.= ((1. R) * b9) * t ;
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 Def8;
Sum s = (a * r) + (b * t) by Th1;
hence u in { (Sum s) where s is LinearCombination of {a,b} : verum } by A15; :: thesis: verum
end;
then { (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;
hence {a,b} -Ideal = { ((a * r) + (b * s)) where r, s is Element of R : verum } by A13, TARSKI:2; :: thesis: verum