Lm1:
for x, y, x1, y1, x9, y9, x19, y19 being object st [[x,x9],[y,y9]] = [[x1,x19],[y1,y19]] holds
( x = x1 & y = y1 & x9 = x19 & y9 = y19 )
definition
let f be
Function;
existence
ex b1 being Function st
( ( for x being object holds
( x in dom b1 iff ex y, z being object st
( x = [z,y] & [y,z] in dom f ) ) ) & ( for y, z being object st [y,z] in dom f holds
b1 . (z,y) = f . (y,z) ) )
uniqueness
for b1, b2 being Function st ( for x being object holds
( x in dom b1 iff ex y, z being object st
( x = [z,y] & [y,z] in dom f ) ) ) & ( for y, z being object st [y,z] in dom f holds
b1 . (z,y) = f . (y,z) ) & ( for x being object holds
( x in dom b2 iff ex y, z being object st
( x = [z,y] & [y,z] in dom f ) ) ) & ( for y, z being object st [y,z] in dom f holds
b2 . (z,y) = f . (y,z) ) holds
b1 = b2
end;
definition
let f,
g be
Function;
func |:f,g:| -> Function means :
Def3:
( ( for
z being
object holds
(
z in dom it iff ex
x,
y,
x9,
y9 being
object st
(
z = [[x,x9],[y,y9]] &
[x,y] in dom f &
[x9,y9] in dom g ) ) ) & ( for
x,
y,
x9,
y9 being
object st
[x,y] in dom f &
[x9,y9] in dom g holds
it . (
[x,x9],
[y,y9])
= [(f . (x,y)),(g . (x9,y9))] ) );
existence
ex b1 being Function st
( ( for z being object holds
( z in dom b1 iff ex x, y, x9, y9 being object st
( z = [[x,x9],[y,y9]] & [x,y] in dom f & [x9,y9] in dom g ) ) ) & ( for x, y, x9, y9 being object st [x,y] in dom f & [x9,y9] in dom g holds
b1 . ([x,x9],[y,y9]) = [(f . (x,y)),(g . (x9,y9))] ) )
uniqueness
for b1, b2 being Function st ( for z being object holds
( z in dom b1 iff ex x, y, x9, y9 being object st
( z = [[x,x9],[y,y9]] & [x,y] in dom f & [x9,y9] in dom g ) ) ) & ( for x, y, x9, y9 being object st [x,y] in dom f & [x9,y9] in dom g holds
b1 . ([x,x9],[y,y9]) = [(f . (x,y)),(g . (x9,y9))] ) & ( for z being object holds
( z in dom b2 iff ex x, y, x9, y9 being object st
( z = [[x,x9],[y,y9]] & [x,y] in dom f & [x9,y9] in dom g ) ) ) & ( for x, y, x9, y9 being object st [x,y] in dom f & [x9,y9] in dom g holds
b2 . ([x,x9],[y,y9]) = [(f . (x,y)),(g . (x9,y9))] ) holds
b1 = b2
end;
::
deftheorem Def3 defines
|: FUNCT_4:def 3 :
for f, g, b3 being Function holds
( b3 = |:f,g:| iff ( ( for z being object holds
( z in dom b3 iff ex x, y, x9, y9 being object st
( z = [[x,x9],[y,y9]] & [x,y] in dom f & [x9,y9] in dom g ) ) ) & ( for x, y, x9, y9 being object st [x,y] in dom f & [x9,y9] in dom g holds
b3 . ([x,x9],[y,y9]) = [(f . (x,y)),(g . (x9,y9))] ) ) );
theorem Th54:
for
x,
x9,
y,
y9 being
object for
f,
g being
Function holds
(
[[x,x9],[y,y9]] in dom |:f,g:| iff (
[x,y] in dom f &
[x9,y9] in dom g ) )
theorem
for
x,
x9,
y,
y9 being
object for
f,
g being
Function st
[[x,x9],[y,y9]] in dom |:f,g:| holds
|:f,g:| . (
[x,x9],
[y,y9])
= [(f . (x,y)),(g . (x9,y9))]
theorem Th57:
for
X,
X9,
Y,
Y9 being
set for
f,
g being
Function st
dom f c= [:X,Y:] &
dom g c= [:X9,Y9:] holds
dom |:f,g:| c= [:[:X,X9:],[:Y,Y9:]:]
theorem Th58:
for
X,
X9,
Y,
Y9 being
set for
f,
g being
Function st
dom f = [:X,Y:] &
dom g = [:X9,Y9:] holds
dom |:f,g:| = [:[:X,X9:],[:Y,Y9:]:]
theorem Th59:
for
X,
X9,
Y,
Y9,
Z,
Z9 being
set for
f being
PartFunc of
[:X,Y:],
Z for
g being
PartFunc of
[:X9,Y9:],
Z9 holds
|:f,g:| is
PartFunc of
[:[:X,X9:],[:Y,Y9:]:],
[:Z,Z9:]
theorem Th60:
for
X,
X9,
Y,
Y9,
Z,
Z9 being
set for
f being
Function of
[:X,Y:],
Z for
g being
Function of
[:X9,Y9:],
Z9 st
Z <> {} &
Z9 <> {} holds
|:f,g:| is
Function of
[:[:X,X9:],[:Y,Y9:]:],
[:Z,Z9:]
theorem
for
X,
X9,
Y,
Y9 being
set for
D,
D9 being non
empty set for
f being
Function of
[:X,Y:],
D for
g being
Function of
[:X9,Y9:],
D9 holds
|:f,g:| is
Function of
[:[:X,X9:],[:Y,Y9:]:],
[:D,D9:] by Th60;
theorem Th63:
for
x1,
x2,
y1,
y2 being
object holds
( (
x1 <> x2 implies
((x1,x2) --> (y1,y2)) . x1 = y1 ) &
((x1,x2) --> (y1,y2)) . x2 = y2 )
theorem
for
x1,
x2,
y1,
y2 being
object st
x1 <> x2 holds
rng ((x1,x2) --> (y1,y2)) = {y1,y2}
definition
let A be non
empty set ;
let x1,
x2 be
object ;
let y1,
y2 be
Element of
A;
-->redefine func (
x1,
x2)
--> (
y1,
y2)
-> Function of
{x1,x2},
A;
coherence
(x1,x2) --> (y1,y2) is Function of {x1,x2},A
end;
theorem
for
a,
b,
x,
y,
x9,
y9 being
object st
a <> b & (
a,
b)
--> (
x,
y)
= (
a,
b)
--> (
x9,
y9) holds
(
x = x9 &
y = y9 )
Lm2:
for f, g being Function st f c= g holds
g +* f = g
definition
let A,
B be non
empty set ;
let f be
PartFunc of
[:A,A:],
A;
let g be
PartFunc of
[:B,B:],
B;
|:redefine func |:f,g:| -> PartFunc of
[:[:A,B:],[:A,B:]:],
[:A,B:];
coherence
|:f,g:| is PartFunc of [:[:A,B:],[:A,B:]:],[:A,B:]
by Th59;
end;
theorem
for
A1,
A2 being non
empty set for
Y1 being non
empty Subset of
A1 for
Y2 being non
empty Subset of
A2 for
f being
PartFunc of
[:A1,A1:],
A1 for
g being
PartFunc of
[:A2,A2:],
A2 for
F being
PartFunc of
[:Y1,Y1:],
Y1 st
F = f || Y1 holds
for
G being
PartFunc of
[:Y2,Y2:],
Y2 st
G = g || Y2 holds
|:F,G:| = |:f,g:| || [:Y1,Y2:]
::
deftheorem defines
--> FUNCT_4:def 6 :
for a, b, c, x, y, z being object holds (a,b,c) --> (x,y,z) = ((a,b) --> (x,y)) +* (c .--> z);
registration
let a,
b,
c,
x,
y,
z be
object ;
coherence
( (a,b,c) --> (x,y,z) is Function-like & (a,b,c) --> (x,y,z) is Relation-like )
;
end;
theorem Th128:
for
a,
b,
c,
x,
y,
z being
object holds
dom ((a,b,c) --> (x,y,z)) = {a,b,c}
theorem
for
a,
b,
c,
x,
y,
z being
object holds
rng ((a,b,c) --> (x,y,z)) c= {x,y,z}
theorem
for
a,
b,
x,
y,
z being
object holds (
a,
a,
b)
--> (
x,
y,
z)
= (
a,
b)
--> (
y,
z)
by Th81;
theorem Th132:
for
a,
b,
x,
y,
z being
object st
a <> b holds
(
a,
b,
a)
--> (
x,
y,
z)
= (
a,
b)
--> (
z,
y)
theorem
for
a,
b,
x,
y,
z being
object holds (
a,
b,
b)
--> (
x,
y,
z)
= (
a,
b)
--> (
x,
z)
theorem Th134:
for
a,
b,
c,
x,
y,
z being
object st
a <> b &
a <> c holds
((a,b,c) --> (x,y,z)) . a = x
theorem Th135:
for
a,
b,
c,
x,
y,
z being
object holds
( (
b <> c implies
((a,b,c) --> (x,y,z)) . b = y ) &
((a,b,c) --> (x,y,z)) . c = z )
theorem
for
a,
b,
c,
x,
y,
z being
object for
f being
Function st
dom f = {a,b,c} &
f . a = x &
f . b = y &
f . c = z holds
f = (
a,
b,
c)
--> (
x,
y,
z)
definition
let x,
y,
w,
z,
a,
b,
c,
d be
object ;
func (
x,
y,
w,
z)
--> (
a,
b,
c,
d)
-> set equals
((x,y) --> (a,b)) +* ((w,z) --> (c,d));
coherence
((x,y) --> (a,b)) +* ((w,z) --> (c,d)) is set
;
end;
::
deftheorem defines
--> FUNCT_4:def 7 :
for x, y, w, z, a, b, c, d being object holds (x,y,w,z) --> (a,b,c,d) = ((x,y) --> (a,b)) +* ((w,z) --> (c,d));
registration
let x,
y,
w,
z,
a,
b,
c,
d be
object ;
coherence
( (x,y,w,z) --> (a,b,c,d) is Function-like & (x,y,w,z) --> (a,b,c,d) is Relation-like )
;
end;
theorem Th137:
for
a,
b,
c,
x,
y,
z,
w,
d being
object holds
dom ((x,y,w,z) --> (a,b,c,d)) = {x,y,w,z}
theorem Th138:
for
a,
b,
c,
x,
y,
z,
w,
d being
object holds
rng ((x,y,w,z) --> (a,b,c,d)) c= {a,b,c,d}
theorem Th139:
for
a,
b,
c,
x,
y,
z,
w,
d being
object holds
((x,y,w,z) --> (a,b,c,d)) . z = d
theorem Th140:
for
a,
b,
c,
x,
y,
z,
w,
d being
object st
w <> z holds
((x,y,w,z) --> (a,b,c,d)) . w = c
theorem Th141:
for
a,
b,
c,
x,
y,
z,
w,
d being
object st
y <> w &
y <> z holds
((x,y,w,z) --> (a,b,c,d)) . y = b
theorem Th142:
for
a,
b,
c,
x,
y,
z,
w,
d being
object st
x <> y &
x <> w &
x <> z holds
((x,y,w,z) --> (a,b,c,d)) . x = a
theorem
for
a,
b,
c,
x,
y,
z,
w,
d being
object st
x,
y,
w,
z are_mutually_distinct holds
rng ((x,y,w,z) --> (a,b,c,d)) = {a,b,c,d}
theorem
for
a,
b,
c,
d,
e,
i,
j,
k being
object for
g being
Function st
dom g = {a,b,c,d} &
g . a = e &
g . b = i &
g . c = j &
g . d = k holds
g = (
a,
b,
c,
d)
--> (
e,
i,
j,
k)
theorem
for
a,
c,
b,
d,
x,
y,
z,
w being
object st
a,
c,
x,
w are_mutually_distinct holds
(
a,
c,
x,
w)
--> (
b,
d,
y,
z)
= {[a,b],[c,d],[x,y],[w,z]}
theorem
for
a,
b,
c,
d,
x,
y,
z,
w,
x9,
y9,
z9,
w9 being
object st
a,
b,
c,
d are_mutually_distinct & (
a,
b,
c,
d)
--> (
x,
y,
z,
w)
= (
a,
b,
c,
d)
--> (
x9,
y9,
z9,
w9) holds
(
x = x9 &
y = y9 &
z = z9 &
w = w9 )
theorem
for
a1,
a2,
a3,
b1,
b2,
b3 being
object st
a1,
a2,
a3 are_mutually_distinct holds
rng ((a1,a2,a3) --> (b1,b2,b3)) = {b1,b2,b3}
definition
let C,
D,
E be non
empty set ;
let f be
Function of
[:C,D:],
E;
coherence
~ f is Function of [:D,C:],E
compatibility
for b1 being Function of [:D,C:],E holds
( b1 = ~ f iff for d being Element of D
for c being Element of C holds b1 . (d,c) = f . (c,d) )
end;