FUNCT_1.ABS (Digest)
Functions and Their Basic Properties, by Czes{1}aw Byli
'nski.
reserve X,X1,X2,Y,Y1,Y2 for set, p,x,x1,x2,y,y1,y2,z,z1,z2 for Any;
def 1 pred X is Function-like means for x,y1,y2 st [x,y]
CX & [x,y2]CX holds y1 = y2;
cluster Relation-like Function-like set;
mode Function is Function-like Relation-like Any;
cluster empty -> Function-like set;
reserve f,f1,f2,g,g1,g2,h for Function;
2 for F being set st (for p st p
CF ex x,y st [x,y] = p) & (for x,y1,y2 st [x,y1]CF & [x,y2]CF holds y1 = y2) holds F is Function; 3 pCf implies ex x,y st [x,y] = p; 4 [x,y1]Cf & [x,y2]Cf implies y1 = y2;
scheme GraphFunc{A( )->set,P[Any,Any]}: ex f st for x,y holds [x,y]Cf iff xCA( ) & P[x,y] provided for x,y1,y2 st P[x,y1] & P[x,y2] holds y1 = y2;
def 4 func f.x -> Any means [x,it]Cf if xCdom f otherwise it = 0;
8 [x,y]Cf iff xCdom f & y = f.x; 9 X = dom f & X = dom g & (for x st xCX holds f.x = g.x) implies f = g;
def 5 func rng f means for y holds yCit iff ex x st xCdom f & y = f.x;
11 yCrng f iff ex x st xCdom f & y = f.x; 12 xCdom f implies f.xCrng f; 13 dom f =iff rng f =
; 14 dom f = {x} implies rng f = {f.x};
scheme FuncEx{A( )->set,P[Any,Any]}: ex f st dom f = A( ) & for x st xCA( ) holds P[x,f.x] provided for x,y1,y2 st xCA( ) & P[x,y1] & P[x,y2] holds y1 = y2 and for x st xCA( ) ex y st P[x,y];
scheme Lambda{A( )->set,F(Any)->Any}: ex f being Function st dom f = A( ) & for x st xCA( ) holds f.x =F(x);
15 X < >implies for y ex f st dom f = X & rng f = {y}; 16 (for f,g st dom f = X & dom g = X holds f = g) implies X =
; 17 dom f = dom g & rng f = {y} & rng g = {y} implies f = g; 18 Y < >
or X =
implies ex f st X = dom f & rng f c= Y; 19 (for y st y
CY ex x st xCdom f & y = f.x) implies Y c= rng f;
cluster gf -> Function-like;
20 for h holds h = gf iff ( for x holds x
Cdom h iff xCdom f & f.xCdom g) 21 xCdom(gf) iff x
Cdom f & f.xCdom g; 22 xCdom(gf) implies (g
f).x = g.(f.x); 23 x
Cdom f implies (gf).x = g.(f.x); 24 dom(g
f) c= dom f; 25 z
Crng(gf) implies z
Crng g; 27 rng f c= dom g iff dom(gf) = dom f; 29 rng f = dom g implies don(g
f) = dom f & rng(g
f) = rng g; 33 rng f c= Y & (for g,h st dom g = Y & dom h = Y & g
f = h
f holds g = h)
implies Y = rng f ;cluster id X -> Function-like;
34 f = id X iff dom f = X & for x st x
CX holds f.x = x; 35 xCX implies (id X).x = x; 37 dom(f(id X)) = dom f
X; 38 x
Cdom fX implies f.x = (f
(id X)).x; 40 x
Cdom((id Y)f) iff x
Cdom f & f.xCY; 42 f(id dom f) = f & (id rng f)
f = f; 43 (id X)
(id Y) = (id(X
Y); 44 dom f = X & rng f = X & dom g = X & g
f = f implies g = id X;
def 8 pred f is one-to-one means for x1,x2 st x1
Cdom f & x2Cdom f & f.x1 = f.x2 holds x1 = x2;46 f is one-to-one & g is one-to-one implies g
f is one-to-one; 47 g
f is one-to-one & rng f c= dom & implies f is one-to-one; 48 g
f is one-to-one & rng f = dom g implies f is one-to-one & g is one-to-one;
49 f is one-to-one iff (for g,h st rng g c= dom f & rng h c= dom f & dom g = dom h & f
h holds g = h);
50 dom f = X & dom g = X & rng g c= X & f is one-to-one & f
g = f implies g = id X; 51 rng(g
f) = rng g & g is one-to-one implies dom g c= rng f; 52 id X is one-to-one; 53 (ex g st g
f = id dom f) implies f is one-to-one;
def 9 func f" -> Function means don it = rng f & for y,x holds y
Crng f & x = it.y iff xCdom f & y = f.x;55 f is one-to-one implies rng f = dom(f") & dom f = rng(f"); 56 f is one-to-one & x
60 f is one-to-one & dom f = rng g & rng f = dom g & ( for x,y st xCdom f implies x = (f").(f.x) & x = (f".f).x; 57 f is one-to-one & yCrng f implies y = f.((f").y) & y = (ff").y; 58 f is one-to-one implies dom(f"
f) = dom f & rng(f"
f) = dom f; 59 f is one-to-one implies don(f
f") = rng f & rng(f
f") = rng f;
Cdom f & yCdom g holds f.x = y iff g.y = x) implies g = f";61 f is one-to-one implies f"
f = id dom f & f
f" = id rng f; 62 f is one-to-one implies f" is one-to-one; 63 f is one-to-one & rng f = dom g & g
f = id dom f implies g = f"; 64 f is one-to-one & rng g = dom f & f
g = id rng f implies g = f"; 65 f is one-to-one implies (f")" = f; 66 f is one-to-one & g is one-to-one implies (g
f)" = f"
g"; 67 (id X)" = (id X);
cluster f
X -> Function-like;
68 g = f
X iff dom g = dom f
X & for x st x
Cdom g holds g.x = f.x; 69 dom(fX) = dom f
X; 70 x
Cdom(fX) implies (f
X).x = f.x; 71 x
Cdom fX implies (f
X).x = f.x; 72 x
CX implies (fX).x = f.x; 73 x
Cdom f & xCX implies f.xCrng(fX); 74 X c= dom f implies dom(f
X) = X; 76 dom(f
X) c= dom f & rng(f
X) c= rng f; 79 f
(dom f) = f; 82 X c= Y implies (f
X)
Y = f
X & (f
Y)
X = f
X; 84 f is one-to-one implies f
X is one-to-one;
cluster Y
f -> Function-like;
85 g = Y
f iff (for x holds x
Cdom g iff xCdom f & f.xCY) & (for x st xCdom g holds g.x = f.x); 86 xCdom(Yf) iff x
Cdom f & f.xCY; 87 xCdom(Yf) implies (Y
f).x = f.x; 89 dom(Y
f) c= dom f & rng(Y
f) c= rng f; 94 (rng f)
f = f; 97 X c= Y implies Y
(X
f) = X
f & X
(Y
f) = X
f; 99 f is one-to-one implies Y
f is one-to-one;
def 12 func f
X means for y holds y
Cit iff ex x st xCdom f & xCX & y = f.x;102 y
CfX iff ex x st x
Cdom f & xCX & y = f.x; 117 xCdom f implies f{x} 118 x1
Cdom f & x2Cdom f implies f{x1,x2} = {f.x1,f.x2}; 120 (Y
f)
X c= f
X; 121 f is one-to-one implies f
(X1
X2) = f
X1
f
X2; 122 (for X1,X2 holds f
(X1
X2) = f
X1
f
X2) implies f is one-to-one; 123 f is one-to-one implies f
(X1
X2) = f
X1
f
X2; 124 (for X1,X2 holds f
(X1
X2) = f
X1
f
X2) implies f is one-to-one; 125 X
Y =
& f is one-to-one implies f
X
f
Y =
; 126 (Y
f)
X = Y
f
X;
def 13 redefine func f"Y means for x holds x
Cit iff xCdom f & f.xCY;128 x
Cf"Y iff xCdom f & f.xCY; 134 Y c= rng f implies (f"Y =iff Y =
); 137 f"(Y1
Y2) = f"Y1
f"Y2; 138 f"(Y1
Y2) = f"Y1
f"Y2; 139 (f
X)"Y = X
(f"Y); 142 y
Crng f iff f"{y} < >; 143 (for y st y
CY holds f"{y} < >) implies Y c= rng f; 144 (for y st y
Crng f ex x st f"{y} = {x}) iff f is one-to-one; 145 f(f"Y) c= Y; 146 X c= dom f implies X c= f"(f
X); 147 Y c= rng f implies f
(f"Y) = Y; 148 f
(f"Y) = Y
f
(dom f); 149 f
(X
f"Y) c= (f
X)
Y; 150 f
(X
f"Y) =(f
X)
Y; 151 x
f"Y c= f"(f
X
Y); 152 f is one-to-one implies f"(f
X) c= X; 153 (for X holds f"(f
X) c= X) implies f is one-to-one; 154 f is one-to-one implies f
X = (f")"X; 155 f is one-to-one implies f"Y = (f")
Y; 156 Y = rng f & dom g = Y & dom h = Y & g
f = h
f implies g = h; 157 f
X1 c= f
X2 & X1 c= dom f & f is one-to-one implies X1 c= X2; 158 f"Y1 c= f"Y2 & Y1 c= rng f implies Y1 c= Y2; 159 f is one-to-one iff for y ex x st f"{y} c= {x}; 160 rng f c= dom g implies f"X c= (g
f)"(g
X);