:: CONVFUN1 semantic presentation :: Showing IDV graph ... (Click the Palm Trees again to close it)
definition
let X,
Y be non
empty RLSStruct ;
func Add_in_Prod_of_RLS X,
Y -> BinOp of
[:the carrier of X,the carrier of Y:] means :
Def1:
:: CONVFUN1:def 1
for
z1,
z2 being
Element of
[:the carrier of X,the carrier of Y:] for
x1,
x2 being
VECTOR of
X for
y1,
y2 being
VECTOR of
Y st
z1 = [x1,y1] &
z2 = [x2,y2] holds
it . z1,
z2 = [(the add of X . [x1,x2]),(the add of Y . [y1,y2])];
existence
ex b1 being BinOp of [:the carrier of X,the carrier of Y:] st
for z1, z2 being Element of [:the carrier of X,the carrier of Y:]
for x1, x2 being VECTOR of X
for y1, y2 being VECTOR of Y st z1 = [x1,y1] & z2 = [x2,y2] holds
b1 . z1,z2 = [(the add of X . [x1,x2]),(the add of Y . [y1,y2])]
uniqueness
for b1, b2 being BinOp of [:the carrier of X,the carrier of Y:] st ( for z1, z2 being Element of [:the carrier of X,the carrier of Y:]
for x1, x2 being VECTOR of X
for y1, y2 being VECTOR of Y st z1 = [x1,y1] & z2 = [x2,y2] holds
b1 . z1,z2 = [(the add of X . [x1,x2]),(the add of Y . [y1,y2])] ) & ( for z1, z2 being Element of [:the carrier of X,the carrier of Y:]
for x1, x2 being VECTOR of X
for y1, y2 being VECTOR of Y st z1 = [x1,y1] & z2 = [x2,y2] holds
b2 . z1,z2 = [(the add of X . [x1,x2]),(the add of Y . [y1,y2])] ) holds
b1 = b2
end;
:: deftheorem Def1 defines Add_in_Prod_of_RLS CONVFUN1:def 1 :
for
X,
Y being non
empty RLSStruct for
b3 being
BinOp of
[:the carrier of X,the carrier of Y:] holds
(
b3 = Add_in_Prod_of_RLS X,
Y iff for
z1,
z2 being
Element of
[:the carrier of X,the carrier of Y:] for
x1,
x2 being
VECTOR of
X for
y1,
y2 being
VECTOR of
Y st
z1 = [x1,y1] &
z2 = [x2,y2] holds
b3 . z1,
z2 = [(the add of X . [x1,x2]),(the add of Y . [y1,y2])] );
definition
let X,
Y be non
empty RLSStruct ;
func Mult_in_Prod_of_RLS X,
Y -> Function of
[:REAL ,[:the carrier of X,the carrier of Y:]:],
[:the carrier of X,the carrier of Y:] means :
Def2:
:: CONVFUN1:def 2
for
a being
Real for
z being
Element of
[:the carrier of X,the carrier of Y:] for
x being
VECTOR of
X for
y being
VECTOR of
Y st
z = [x,y] holds
it . [a,z] = [(the Mult of X . [a,x]),(the Mult of Y . [a,y])];
existence
ex b1 being Function of [:REAL ,[:the carrier of X,the carrier of Y:]:],[:the carrier of X,the carrier of Y:] st
for a being Real
for z being Element of [:the carrier of X,the carrier of Y:]
for x being VECTOR of X
for y being VECTOR of Y st z = [x,y] holds
b1 . [a,z] = [(the Mult of X . [a,x]),(the Mult of Y . [a,y])]
uniqueness
for b1, b2 being Function of [:REAL ,[:the carrier of X,the carrier of Y:]:],[:the carrier of X,the carrier of Y:] st ( for a being Real
for z being Element of [:the carrier of X,the carrier of Y:]
for x being VECTOR of X
for y being VECTOR of Y st z = [x,y] holds
b1 . [a,z] = [(the Mult of X . [a,x]),(the Mult of Y . [a,y])] ) & ( for a being Real
for z being Element of [:the carrier of X,the carrier of Y:]
for x being VECTOR of X
for y being VECTOR of Y st z = [x,y] holds
b2 . [a,z] = [(the Mult of X . [a,x]),(the Mult of Y . [a,y])] ) holds
b1 = b2
end;
:: deftheorem Def2 defines Mult_in_Prod_of_RLS CONVFUN1:def 2 :
for
X,
Y being non
empty RLSStruct for
b3 being
Function of
[:REAL ,[:the carrier of X,the carrier of Y:]:],
[:the carrier of X,the carrier of Y:] holds
(
b3 = Mult_in_Prod_of_RLS X,
Y iff for
a being
Real for
z being
Element of
[:the carrier of X,the carrier of Y:] for
x being
VECTOR of
X for
y being
VECTOR of
Y st
z = [x,y] holds
b3 . [a,z] = [(the Mult of X . [a,x]),(the Mult of Y . [a,y])] );
definition
let X,
Y be non
empty RLSStruct ;
func Prod_of_RLS X,
Y -> RLSStruct equals :: CONVFUN1:def 3
RLSStruct(#
[:the carrier of X,the carrier of Y:],
[(0. X),(0. Y)],
(Add_in_Prod_of_RLS X,Y),
(Mult_in_Prod_of_RLS X,Y) #);
correctness
coherence
RLSStruct(# [:the carrier of X,the carrier of Y:],[(0. X),(0. Y)],(Add_in_Prod_of_RLS X,Y),(Mult_in_Prod_of_RLS X,Y) #) is RLSStruct ;
;
end;
:: deftheorem defines Prod_of_RLS CONVFUN1:def 3 :
theorem Th1: :: CONVFUN1:1 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th2: :: CONVFUN1:2 :: Showing IDV graph ... (Click the Palm Tree again to close it)
Lm1:
for X, Y being non empty RLSStruct holds 0. (Prod_of_RLS X,Y) = [(0. X),(0. Y)]
by RLVECT_1:def 2;
theorem Th3: :: CONVFUN1:3 :: Showing IDV graph ... (Click the Palm Tree again to close it)
:: deftheorem defines RLS_Real CONVFUN1:def 4 :
Lm2:
for v being VECTOR of RLS_Real
for x, p being Real st v = x holds
p * v = p * x
Lm3:
for v1, v2 being VECTOR of RLS_Real
for x1, x2 being Real st v1 = x1 & v2 = x2 holds
v1 + v2 = x1 + x2
Lm4:
for X being non empty RLSStruct
for x being VECTOR of X
for u being VECTOR of (Prod_of_RLS X,RLS_Real )
for p, w being Real st u = [x,w] holds
p * u = [(p * x),(p * w)]
Lm5:
for X being non empty RLSStruct
for x1, x2 being VECTOR of X
for w1, w2 being Real
for u1, u2 being VECTOR of (Prod_of_RLS X,RLS_Real ) st u1 = [x1,w1] & u2 = [x2,w2] holds
u1 + u2 = [(x1 + x2),(w1 + w2)]
Lm6:
for a being FinSequence of the carrier of RLS_Real
for b being FinSequence of REAL st len a = len b & ( for i being Nat st i in dom a holds
a . i = b . i ) holds
Sum a = Sum b
:: deftheorem Def5 defines Sum CONVFUN1:def 5 :
theorem Th4: :: CONVFUN1:4 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th5: :: CONVFUN1:5 :: Showing IDV graph ... (Click the Palm Tree again to close it)
Lm7:
for F being FinSequence of ExtREAL
for x being Element of ExtREAL holds Sum (F ^ <*x*>) = (Sum F) + x
theorem Th6: :: CONVFUN1:6 :: Showing IDV graph ... (Click the Palm Tree again to close it)
Lm8:
for F being FinSequence of ExtREAL st not -infty in rng F holds
Sum F <> -infty
Lm9:
for F being FinSequence of ExtREAL st +infty in rng F & not -infty in rng F holds
Sum F = +infty
Lm10:
for a being FinSequence of ExtREAL
for b being FinSequence of REAL st len a = len b & ( for i being Nat st i in dom a holds
a . i = b . i ) holds
Sum a = Sum b
Lm11:
for n being Nat
for a being FinSequence of ExtREAL
for b being FinSequence of the carrier of RLS_Real st len a = n & len b = n & ( for i being Nat st i in Seg n holds
a . i = b . i ) holds
Sum a = Sum b
theorem Th7: :: CONVFUN1:7 :: Showing IDV graph ... (Click the Palm Tree again to close it)
Lm12:
for n, q being Nat st q in Seg (n + 1) holds
ex p being Permutation of Seg (n + 1) st
for i being Nat st i in Seg (n + 1) holds
( ( i < q implies p . i = i ) & ( i = q implies p . i = n + 1 ) & ( i > q implies p . i = i - 1 ) )
Lm13:
for n, q being Nat
for s, p being Permutation of Seg (n + 1)
for s' being FinSequence of Seg (n + 1) st s' = s & q = s . (n + 1) & ( for i being Nat st i in Seg (n + 1) holds
( ( i < q implies p . i = i ) & ( i = q implies p . i = n + 1 ) & ( i > q implies p . i = i - 1 ) ) ) holds
p * (s' | n) is Permutation of Seg n
Lm14:
for n, q being Nat
for p being Permutation of Seg (n + 1)
for F, H being FinSequence of ExtREAL st F = H * p & q in Seg (n + 1) & len H = n + 1 & not -infty in rng H & ( for i being Nat st i in Seg (n + 1) holds
( ( i < q implies p . i = i ) & ( i = q implies p . i = n + 1 ) & ( i > q implies p . i = i - 1 ) ) ) holds
Sum F = Sum H
theorem Th8: :: CONVFUN1:8 :: Showing IDV graph ... (Click the Palm Tree again to close it)
Lm15:
for F being FinSequence of ExtREAL st rng F c= {0. } holds
Sum F = 0.
Lm16:
for F being FinSequence of REAL st rng F c= {0} holds
Sum F = 0
Lm17:
for X being RealLinearSpace
for F being FinSequence of the carrier of X st rng F c= {(0. X)} holds
Sum F = 0. X
:: deftheorem defines epigraph CONVFUN1:def 6 :
:: deftheorem Def7 defines convex CONVFUN1:def 7 :
Lm18:
for w being R_eal
for wr, p being Real st w = wr holds
p * wr = (R_EAL p) * w
Lm19:
for w1, w2 being R_eal
for wr1, wr2, p1, p2 being Real st w1 = wr1 & w2 = wr2 holds
(p1 * wr1) + (p2 * wr2) = ((R_EAL p1) * w1) + ((R_EAL p2) * w2)
theorem Th9: :: CONVFUN1:9 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem :: CONVFUN1:10 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem :: CONVFUN1:11 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th12: :: CONVFUN1:12 :: Showing IDV graph ... (Click the Palm Tree again to close it)
Lm20:
for X being RealLinearSpace
for f being Function of the carrier of X, ExtREAL
for n being non empty Nat
for p being FinSequence of REAL
for F being FinSequence of ExtREAL
for y being FinSequence of the carrier of X st len p = n & len F = n & len y = n & ( for x being VECTOR of X holds f . x <> -infty ) & ( for i being Nat st i in Seg n holds
( p . i >= 0 & F . i = (R_EAL (p . i)) * (f . (y /. i)) ) ) holds
not -infty in rng F
theorem Th13: :: CONVFUN1:13 :: Showing IDV graph ... (Click the Palm Tree again to close it)
Lm21:
for F being FinSequence of REAL ex s being Permutation of dom F ex n being Nat st
for i being Nat st i in dom F holds
( i in Seg n iff F . (s . i) <> 0 )
theorem :: CONVFUN1:14 :: Showing IDV graph ... (Click the Palm Tree again to close it)