defpred S1[ set ] means ex G being Function of Fin X,Y st
( ( for e being Element of Y st e is_a_unity_wrt F holds
G . {} = e ) & ( for x being Element of X holds G . {x} = f . x ) & ( for B' being Element of Fin X st B' c= $1 & B' <> {} holds
for x being Element of X st x in $1 \ B' holds
G . (B' \/ {x}) = F . (G . B'),(f . x) ) );
A4:
for B' being Element of Fin X
for b being Element of X st S1[B'] & not b in B' holds
S1[B' \/ {b}]
proof
let B be
Element of
Fin X;
for b being Element of X st S1[B] & not b in B holds
S1[B \/ {b}]let x be
Element of
X;
( S1[B] & not x in B implies S1[B \/ {x}] )
given G being
Function of
Fin X,
Y such that A5:
for
e being
Element of
Y st
e is_a_unity_wrt F holds
G . {} = e
and A6:
for
x being
Element of
X holds
G . {x} = f . x
and A7:
for
B' being
Element of
Fin X st
B' c= B &
B' <> {} holds
for
x being
Element of
X st
x in B \ B' holds
G . (B' \/ {x}) = F . (G . B'),
(f . x)
;
( x in B or S1[B \/ {x}] )
assume A8:
not
x in B
;
S1[B \/ {x}]
thus
ex
G being
Function of
Fin X,
Y st
( ( for
e being
Element of
Y st
e is_a_unity_wrt F holds
G . {} = e ) & ( for
x being
Element of
X holds
G . {x} = f . x ) & ( for
B' being
Element of
Fin X st
B' c= B \/ {x} &
B' <> {} holds
for
x' being
Element of
X st
x' in (B \/ {x}) \ B' holds
G . (B' \/ {x'}) = F . (G . B'),
(f . x') ) )
verumproof
defpred S2[
set ,
set ]
means ( ( for
C being
Element of
Fin X st
C <> {} &
C c= B & $1
= C \/ {.x.} holds
$2
= F . (G . C),
(f . x) ) & ( ( for
C being
Element of
Fin X holds
( not
C <> {} or not
C c= B or not $1
= C \/ {.x.} ) ) implies $2
= G . $1 ) );
A9:
now let B' be
Element of
Fin X;
ex y being Element of Y st S2[B',y]thus
ex
y being
Element of
Y st
S2[
B',
y]
verumproof
A10:
now given C being
Element of
Fin X such that A11:
C <> {}
and A12:
C c= B
and A13:
B' = C \/ {x}
;
ex y being Element of Y ex y being Element of Y st S2[B',y]take y =
F . (G . C),
(f . x);
ex y being Element of Y st S2[B',y]
for
C being
Element of
Fin X st
C <> {} &
C c= B &
B' = C \/ {x} holds
y = F . (G . C),
(f . x)
proof
not
x in C
by A8, A12;
then A14:
C c= B' \ {x}
by A13, XBOOLE_1:7, ZFMISC_1:40;
B' \ {x} = C \ {x}
by A13, XBOOLE_1:40;
then A15:
B' \ {x} = C
by A14, XBOOLE_0:def 10;
let C1 be
Element of
Fin X;
( C1 <> {} & C1 c= B & B' = C1 \/ {x} implies y = F . (G . C1),(f . x) )
assume that
C1 <> {}
and A16:
C1 c= B
and A17:
B' = C1 \/ {x}
;
y = F . (G . C1),(f . x)
not
x in C1
by A8, A16;
then A18:
C1 c= B' \ {x}
by A17, XBOOLE_1:7, ZFMISC_1:40;
B' \ {x} = C1 \ {x}
by A17, XBOOLE_1:40;
hence
y = F . (G . C1),
(f . x)
by A18, A15, XBOOLE_0:def 10;
verum
end; hence
ex
y being
Element of
Y st
S2[
B',
y]
by A11, A12, A13;
verum end;
hence
ex
y being
Element of
Y st
S2[
B',
y]
by A10;
verum
end; end;
consider H being
Function of
Fin X,
Y such that A20:
for
B' being
Element of
Fin X holds
S2[
B',
H . B']
from FUNCT_2:sch 3(A9);
take J =
H;
( ( for e being Element of Y st e is_a_unity_wrt F holds
J . {} = e ) & ( for x being Element of X holds J . {x} = f . x ) & ( for B' being Element of Fin X st B' c= B \/ {x} & B' <> {} holds
for x' being Element of X st x' in (B \/ {x}) \ B' holds
J . (B' \/ {x'}) = F . (J . B'),(f . x') ) )
then A24:
J . {x} = G . {.x.}
by A20;
thus
for
e being
Element of
Y st
e is_a_unity_wrt F holds
J . {} = e
( ( for x being Element of X holds J . {x} = f . x ) & ( for B' being Element of Fin X st B' c= B \/ {x} & B' <> {} holds
for x' being Element of X st x' in (B \/ {x}) \ B' holds
J . (B' \/ {x'}) = F . (J . B'),(f . x') ) )
thus
for
x being
Element of
X holds
J . {x} = f . x
for B' being Element of Fin X st B' c= B \/ {x} & B' <> {} holds
for x' being Element of X st x' in (B \/ {x}) \ B' holds
J . (B' \/ {x'}) = F . (J . B'),(f . x')
let B' be
Element of
Fin X;
( B' c= B \/ {x} & B' <> {} implies for x' being Element of X st x' in (B \/ {x}) \ B' holds
J . (B' \/ {x'}) = F . (J . B'),(f . x') )
assume that A29:
B' c= B \/ {x}
and A30:
B' <> {}
;
for x' being Element of X st x' in (B \/ {x}) \ B' holds
J . (B' \/ {x'}) = F . (J . B'),(f . x')
let x' be
Element of
X;
( x' in (B \/ {x}) \ B' implies J . (B' \/ {x'}) = F . (J . B'),(f . x') )
assume A31:
x' in (B \/ {x}) \ B'
;
J . (B' \/ {x'}) = F . (J . B'),(f . x')
then A32:
not
x' in B'
by XBOOLE_0:def 5;
per cases
( x in B' or not x in B' )
;
suppose A33:
x in B'
;
J . (B' \/ {x'}) = F . (J . B'),(f . x')then A34:
x' in B
by A31, A32, Th6;
then A35:
{x'} c= B
by ZFMISC_1:37;
per cases
( B' = {x} or B' <> {x} )
;
suppose
B' <> {x}
;
J . (B' \/ {x'}) = F . (J . B'),(f . x')then
not
B' c= {x}
by A30, ZFMISC_1:39;
then A37:
B' \ {x} <> {}
by XBOOLE_1:37;
set C =
(B' \ {.x.}) \/ {.x'.};
not
x' in B' \ {x}
by A31, XBOOLE_0:def 5;
then A38:
x' in B \ (B' \ {x})
by A34, XBOOLE_0:def 5;
B' \ {x} c= B
by A29, XBOOLE_1:43;
then A39:
(B' \ {.x.}) \/ {.x'.} c= B
by A34, Th8;
B' \/ {.x'.} =
(B' \/ {x}) \/ {x'}
by A33, ZFMISC_1:46
.=
((B' \ {x}) \/ {x}) \/ {x'}
by XBOOLE_1:39
.=
((B' \ {.x.}) \/ {.x'.}) \/ {.x.}
by XBOOLE_1:4
;
hence J . (B' \/ {.x'.}) =
F . (G . ((B' \ {.x.}) \/ {.x'.})),
(f . x)
by A20, A39
.=
F . (F . (G . (B' \ {.x.})),(f . x')),
(f . x)
by A7, A29, A37, A38, XBOOLE_1:43
.=
F . (G . (B' \ {.x.})),
(F . (f . x'),(f . x))
by A3, BINOP_1:def 3
.=
F . (G . (B' \ {x})),
(F . (f . x),(f . x'))
by A2, BINOP_1:def 2
.=
F . (F . (G . (B' \ {.x.})),(f . x)),
(f . x')
by A3, BINOP_1:def 3
.=
F . (J . ((B' \ {.x.}) \/ {.x.})),
(f . x')
by A20, A29, A37, XBOOLE_1:43
.=
F . (J . (B' \/ {x})),
(f . x')
by XBOOLE_1:39
.=
F . (J . B'),
(f . x')
by A33, ZFMISC_1:46
;
verum end; end; end; suppose A40:
not
x in B'
;
J . (B' \/ {x'}) = F . (J . B'),(f . x')then A41:
B' c= B
by A29, Th5;
A42:
for
C being
Element of
Fin X holds
( not
C <> {} or not
C c= B or not
B' = C \/ {x} )
by A40, Th6;
per cases
( x <> x' or x = x' )
;
suppose A43:
x <> x'
;
J . (B' \/ {x'}) = F . (J . B'),(f . x')then
x' in B
by A31, Th6;
then A44:
x' in B \ B'
by A32, XBOOLE_0:def 5;
not
x in B' \/ {x'}
by A40, A43, Th6;
then
for
C being
Element of
Fin X holds
( not
C <> {} or not
C c= B or not
B' \/ {x'} = C \/ {x} )
by Th6;
hence J . (B' \/ {.x'.}) =
G . (B' \/ {.x'.})
by A20
.=
F . (G . B'),
(f . x')
by A7, A30, A41, A44
.=
F . (J . B'),
(f . x')
by A20, A42
;
verum end; end; end; end;
end;
end;
A45:
S1[ {}. X]
proof
consider e being
Element of
Y such that A46:
( ex
e being
Element of
Y st
e is_a_unity_wrt F implies
e = the_unity_wrt F )
;
defpred S2[
set ,
set ]
means ( ( for
x' being
Element of
X st $1
= {x'} holds
$2
= f . x' ) & ( ( for
x' being
Element of
X holds not $1
= {x'} ) implies $2
= e ) );
A47:
now let x be
Element of
Fin X;
ex y being Element of Y st S2[x,y]A48:
now given x' being
Element of
X such that A49:
x = {x'}
;
ex y being Element of Y st
( ( for x' being Element of X st x = {x'} holds
y = f . x' ) & ( ( for x' being Element of X holds not x = {x'} ) implies y = e ) )take y =
f . x';
( ( for x' being Element of X st x = {x'} holds
y = f . x' ) & ( ( for x' being Element of X holds not x = {x'} ) implies y = e ) )thus
for
x' being
Element of
X st
x = {x'} holds
y = f . x'
by A49, ZFMISC_1:6;
( ( for x' being Element of X holds not x = {x'} ) implies y = e )thus
( ( for
x' being
Element of
X holds not
x = {x'} ) implies
y = e )
by A49;
verum end; now assume A50:
for
x' being
Element of
X holds not
x = {x'}
;
ex y being Element of Y st
( ( for x' being Element of X st x = {x'} holds
y = f . x' ) & ( ( for x' being Element of X holds not x = {x'} ) implies y = e ) )take y =
e;
( ( for x' being Element of X st x = {x'} holds
y = f . x' ) & ( ( for x' being Element of X holds not x = {x'} ) implies y = e ) )thus
( ( for
x' being
Element of
X st
x = {x'} holds
y = f . x' ) & ( ( for
x' being
Element of
X holds not
x = {x'} ) implies
y = e ) )
by A50;
verum end; hence
ex
y being
Element of
Y st
S2[
x,
y]
by A48;
verum end;
consider G' being
Function of
Fin X,
Y such that A51:
for
B' being
Element of
Fin X holds
S2[
B',
G' . B']
from FUNCT_2:sch 3(A47);
take G =
G';
( ( for e being Element of Y st e is_a_unity_wrt F holds
G . {} = e ) & ( for x being Element of X holds G . {x} = f . x ) & ( for B' being Element of Fin X st B' c= {}. X & B' <> {} holds
for x being Element of X st x in ({}. X) \ B' holds
G . (B' \/ {x}) = F . (G . B'),(f . x) ) )
thus
for
e being
Element of
Y st
e is_a_unity_wrt F holds
G . {} = e
( ( for x being Element of X holds G . {x} = f . x ) & ( for B' being Element of Fin X st B' c= {}. X & B' <> {} holds
for x being Element of X st x in ({}. X) \ B' holds
G . (B' \/ {x}) = F . (G . B'),(f . x) ) )
thus
for
x being
Element of
X holds
G . {.x.} = f . x
by A51;
for B' being Element of Fin X st B' c= {}. X & B' <> {} holds
for x being Element of X st x in ({}. X) \ B' holds
G . (B' \/ {x}) = F . (G . B'),(f . x)
thus
for
B' being
Element of
Fin X st
B' c= {}. X &
B' <> {} holds
for
x being
Element of
X st
x in ({}. X) \ B' holds
G . (B' \/ {x}) = F . (G . B'),
(f . x)
;
verum
end;
for B being Element of Fin X holds S1[B]
from SETWISEO:sch 2(A45, A4);
then consider G being Function of Fin X,Y such that
A53:
( ( for e being Element of Y st e is_a_unity_wrt F holds
G . {} = e ) & ( for x being Element of X holds G . {x} = f . x ) & ( for B' being Element of Fin X st B' c= B & B' <> {} holds
for x being Element of X st x in B \ B' holds
G . (B' \/ {x}) = F . (G . B'),(f . x) ) )
;
take
G . B
; ex G being Function of Fin X,Y st
( G . B = G . B & ( for e being Element of Y st e is_a_unity_wrt F holds
G . {} = e ) & ( for x being Element of X holds G . {x} = f . x ) & ( for B' being Element of Fin X st B' c= B & B' <> {} holds
for x being Element of X st x in B \ B' holds
G . (B' \/ {x}) = F . (G . B'),(f . x) ) )
take
G
; ( G . B = G . B & ( for e being Element of Y st e is_a_unity_wrt F holds
G . {} = e ) & ( for x being Element of X holds G . {x} = f . x ) & ( for B' being Element of Fin X st B' c= B & B' <> {} holds
for x being Element of X st x in B \ B' holds
G . (B' \/ {x}) = F . (G . B'),(f . x) ) )
thus
( G . B = G . B & ( for e being Element of Y st e is_a_unity_wrt F holds
G . {} = e ) & ( for x being Element of X holds G . {x} = f . x ) & ( for B' being Element of Fin X st B' c= B & B' <> {} holds
for x being Element of X st x in B \ B' holds
G . (B' \/ {x}) = F . (G . B'),(f . x) ) )
by A53; verum