let X be set ; :: thesis: for A, B, C being Subset of X ex F being Function of NAT ,(bool X) st
( rng F = {A,B,C} & F . 0 = A & F . 1 = B & ( for n being Element of NAT st 1 < n holds
F . n = C ) )
let A, B, C be Subset of X; :: thesis: ex F being Function of NAT ,(bool X) st
( rng F = {A,B,C} & F . 0 = A & F . 1 = B & ( for n being Element of NAT st 1 < n holds
F . n = C ) )
defpred S1[ Element of NAT , set ] means ( ( $1 = 0 implies $2 = A ) & ( $1 = 1 implies $2 = B ) & ( 1 < $1 implies $2 = C ) );
defpred S2[ set ] means ex n being Element of NAT ex X being set st
( $1 = [n,X] & S1[n,X] );
ex GRAF being set st
for x being set holds
( x in GRAF iff ( x in [:NAT ,(bool X):] & S2[x] ) )
from XBOOLE_0:sch 1();
then consider GRAF being set such that
A1:
for x being set holds
( x in GRAF iff ( x in [:NAT ,(bool X):] & S2[x] ) )
;
A2:
for x being set holds
( x in GRAF iff ( x = [0 ,A] or x = [1,B] or ex n being Element of NAT st
( x = [n,C] & 1 < n ) ) )
proof
let x be
set ;
:: thesis: ( x in GRAF iff ( x = [0 ,A] or x = [1,B] or ex n being Element of NAT st
( x = [n,C] & 1 < n ) ) )
A3:
( not
x in GRAF or
x = [0 ,A] or
x = [1,B] or ex
n being
Element of
NAT st
(
x = [n,C] & 1
< n ) )
( (
x = [0 ,A] or
x = [1,B] or ex
n being
Element of
NAT st
(
x = [n,C] & 1
< n ) ) implies
x in GRAF )
hence
(
x in GRAF iff (
x = [0 ,A] or
x = [1,B] or ex
n being
Element of
NAT st
(
x = [n,C] & 1
< n ) ) )
by A3;
:: thesis: verum
end;
A9:
GRAF is Relation-like
GRAF is Function-like
proof
let x,
y1,
y2 be
set ;
:: according to FUNCT_1:def 1 :: thesis: ( not [x,y1] in GRAF or not [x,y2] in GRAF or y1 = y2 )
assume A10:
(
[x,y1] in GRAF &
[x,y2] in GRAF )
;
:: thesis: y1 = y2
then A11:
(
[x,y1] in [:NAT ,(bool X):] &
S2[
[x,y1]] )
by A1;
A12:
(
[x,y2] in [:NAT ,(bool X):] &
S2[
[x,y2]] )
by A1, A10;
then reconsider x =
x as
Element of
NAT by ZFMISC_1:106;
end;
then reconsider F = GRAF as Function by A9;
A16:
dom F = NAT
A23:
rng F = {A,B,C}
rng F c= bool X
then reconsider F = F as Function of NAT ,(bool X) by A16, FUNCT_2:4;
take
F
; :: thesis: ( rng F = {A,B,C} & F . 0 = A & F . 1 = B & ( for n being Element of NAT st 1 < n holds
F . n = C ) )
( F . 0 = A & F . 1 = B & ( for n being Element of NAT st 1 < n holds
F . n = C ) )
hence
( rng F = {A,B,C} & F . 0 = A & F . 1 = B & ( for n being Element of NAT st 1 < n holds
F . n = C ) )
by A23; :: thesis: verum