let F be Subset of PL-WFF; ( F is consistent implies ex G being Subset of PL-WFF st
( F c= G & G is consistent & G is maximal ) )
assume Z0:
F is consistent
; ex G being Subset of PL-WFF st
( F c= G & G is consistent & G is maximal )
set L = PL-WFF ;
consider R being Relation such that
A3:
R well_orders PL-WFF
by WELLORD2:17;
R /\ [:PL-WFF,PL-WFF:] c= [:PL-WFF,PL-WFF:]
by XBOOLE_1:17;
then reconsider R2 = R |_2 PL-WFF as Relation of PL-WFF by WELLORD1:def 6;
R2 well_orders PL-WFF
by A3, PCOMPS_2:1;
then A76:
R2 is_connected_in PL-WFF
by WELLORD1:def 5;
reconsider RS = RelStr(# PL-WFF,R2 #) as non empty RelStr ;
set cRS = the carrier of RS;
defpred S1[ object , object , object ] means for p being Element of PL-WFF
for f being PartFunc of the carrier of RS,(bool PL-WFF) st $1 = p & $2 = f holds
( ( ((union (rng f)) \/ F) \/ {p} is consistent implies $3 = ((union (rng f)) \/ F) \/ {p} ) & ( not ((union (rng f)) \/ F) \/ {p} is consistent implies $3 = (union (rng f)) \/ F ) );
A4:
for x, y being object st x in the carrier of RS & y in PFuncs ( the carrier of RS,(bool PL-WFF)) holds
ex z being object st
( z in bool PL-WFF & S1[x,y,z] )
consider h being Function of [: the carrier of RS,(PFuncs ( the carrier of RS,(bool PL-WFF))):],(bool PL-WFF) such that
A9:
for x, y being object st x in the carrier of RS & y in PFuncs ( the carrier of RS,(bool PL-WFF)) holds
S1[x,y,h . (x,y)]
from BINOP_1:sch 1(A4);
R2 well_orders PL-WFF
by A3, PCOMPS_2:1;
then
R2 is_well_founded_in PL-WFF
by WELLORD1:def 5;
then A11:
RS is well_founded
by WELLFND1:def 2;
then consider f being Function of the carrier of RS,(bool PL-WFF) such that
A12:
f is_recursively_expressed_by h
by WELLFND1:11;
A73:
dom f = the carrier of RS
by FUNCT_2:def 1;
reconsider G = union (rng f) as Subset of PL-WFF ;
set iRS = the InternalRel of RS;
F6:
field R2 = PL-WFF
by A3, PCOMPS_2:1;
A17:
for A, B being Element of PL-WFF st [A,B] in R2 holds
f . A c= f . B
proof
let A,
B be
Element of
PL-WFF ;
( [A,B] in R2 implies f . A c= f . B )
assume F3:
[A,B] in R2
;
f . A c= f . B
per cases
( A = B or A <> B )
;
suppose S2:
A <> B
;
f . A c= f . Bset frA =
f | ( the InternalRel of RS -Seg A);
set frB =
f | ( the InternalRel of RS -Seg B);
the
InternalRel of
RS is
well-ordering
by A3, PCOMPS_2:1, WELLORD1:4, F6;
then F12:
the
InternalRel of
RS -Seg A c= the
InternalRel of
RS -Seg B
by F3, WELLORD1:29, F6;
the
InternalRel of
RS -Seg B c= field the
InternalRel of
RS
by WELLORD1:9;
then F21:
f | ( the InternalRel of RS -Seg B) is
Function of
( the InternalRel of RS -Seg B),
(bool PL-WFF)
by FUNCT_2:32, F6;
the
InternalRel of
RS -Seg A c= field the
InternalRel of
RS
by WELLORD1:9;
then
f | ( the InternalRel of RS -Seg A) is
Function of
( the InternalRel of RS -Seg A),
(bool PL-WFF)
by FUNCT_2:32, F6;
then F11:
dom (f | ( the InternalRel of RS -Seg A)) = the
InternalRel of
RS -Seg A
by FUNCT_2:def 1;
F13:
dom (f | ( the InternalRel of RS -Seg B)) = the
InternalRel of
RS -Seg B
by FUNCT_2:def 1, F21;
E1:
union (rng (f | ( the InternalRel of RS -Seg A))) c= union (rng (f | ( the InternalRel of RS -Seg B)))
by ZFMISC_1:77, rnginc, F18, F11, F12, F13;
then F7:
(union (rng (f | ( the InternalRel of RS -Seg A)))) \/ F c= (union (rng (f | ( the InternalRel of RS -Seg B)))) \/ F
by XBOOLE_1:9;
F15:
A in dom (f | ( the InternalRel of RS -Seg B))
by F13, S2, F3, WELLORD1:1;
(f | ( the InternalRel of RS -Seg B)) . A = f . A
by FUNCT_1:47, F13, S2, F3, WELLORD1:1;
then F14:
f . A c= union (rng (f | ( the InternalRel of RS -Seg B)))
by ZFMISC_1:74, FUNCT_1:3, F15;
F18:
dom (f | ( the InternalRel of RS -Seg A)) c= the
carrier of
RS
;
rng (f | ( the InternalRel of RS -Seg A)) c= bool PL-WFF
;
then E4:
f | ( the InternalRel of RS -Seg A) in PFuncs ( the
carrier of
RS,
(bool PL-WFF))
by PARTFUN1:def 3, F18;
F18a:
dom (f | ( the InternalRel of RS -Seg B)) c= the
carrier of
RS
;
rng (f | ( the InternalRel of RS -Seg B)) c= bool PL-WFF
;
then E2:
f | ( the InternalRel of RS -Seg B) in PFuncs ( the
carrier of
RS,
(bool PL-WFF))
by PARTFUN1:def 3, F18a;
end; end;
end;
A54:
rng f is c=-linear
defpred S2[ Element of RS] means f . $1 is consistent ;
A21:
for x being Element of RS st ( for y being Element of RS st y <> x & [y,x] in the InternalRel of RS holds
S2[y] ) holds
S2[x]
proof
let x be
Element of
RS;
( ( for y being Element of RS st y <> x & [y,x] in the InternalRel of RS holds
S2[y] ) implies S2[x] )
assume A41:
for
y being
Element of
RS st
y <> x &
[y,x] in the
InternalRel of
RS holds
S2[
y]
;
S2[x]
set fr =
f | ( the InternalRel of RS -Seg x);
the
InternalRel of
RS -Seg x c= field the
InternalRel of
RS
by WELLORD1:9;
then C2:
f | ( the InternalRel of RS -Seg x) is
Function of
( the InternalRel of RS -Seg x),
(bool PL-WFF)
by FUNCT_2:32, F6;
then A39a:
dom (f | ( the InternalRel of RS -Seg x)) = the
InternalRel of
RS -Seg x
by FUNCT_2:def 1;
reconsider x1 =
{x} as
Subset of
PL-WFF ;
per cases
( ((union (rng (f | ( the InternalRel of RS -Seg x)))) \/ F) \/ x1 is consistent or not ((union (rng (f | ( the InternalRel of RS -Seg x)))) \/ F) \/ x1 is consistent )
;
suppose C1:
not
((union (rng (f | ( the InternalRel of RS -Seg x)))) \/ F) \/ x1 is
consistent
;
S2[x]then A22:
f . x = (union (rng (f | ( the InternalRel of RS -Seg x)))) \/ F
by A26;
per cases
( for y being object holds
( not [y,x] in the InternalRel of RS or y = x ) or ex y being object st
( [y,x] in the InternalRel of RS & y <> x ) )
;
suppose A39:
ex
y being
object st
(
[y,x] in the
InternalRel of
RS &
y <> x )
;
S2[x]assume A30:
not
S2[
x]
;
contradictionconsider y being
object such that A29:
(
[y,x] in the
InternalRel of
RS &
y <> x )
by A39;
y in dom the
InternalRel of
RS
by A29, XTUPLE_0:def 12;
then reconsider y =
y as
Element of
RS ;
(f | ( the InternalRel of RS -Seg x)) . y in rng (f | ( the InternalRel of RS -Seg x))
by FUNCT_1:3, A39a, WELLORD1:1, A29;
then A37:
f . y in rng (f | ( the InternalRel of RS -Seg x))
by WELLORD1:1, A29, A39a, FUNCT_1:47;
A37b:
rng (f | ( the InternalRel of RS -Seg x)) <> {}
by WELLORD1:1, A29, A39a, FUNCT_1:3;
A37a:
F c= f . y
by A27;
F c= union (rng (f | ( the InternalRel of RS -Seg x)))
by TARSKI:def 4, A37, A37a;
then A23:
f . x = union (rng (f | ( the InternalRel of RS -Seg x)))
by A22, XBOOLE_1:12;
consider F being
Subset of
PL-WFF such that A31:
(
F is
finite & not
F is
consistent &
F c= f . x )
by A30, finin;
rng (f | ( the InternalRel of RS -Seg x)) c= rng f
by RELAT_1:70;
then consider z being
set such that A34:
(
F c= z &
z in rng (f | ( the InternalRel of RS -Seg x)) )
by uniolinf, A23, A31, A54, A37b;
consider y being
object such that A36:
(
y in dom (f | ( the InternalRel of RS -Seg x)) &
(f | ( the InternalRel of RS -Seg x)) . y = z )
by A34, FUNCT_1:def 3;
A42:
[y,x] in the
InternalRel of
RS
by WELLORD1:1, A39a, A36;
A44:
y <> x
by WELLORD1:1, A39a, A36;
y in dom the
InternalRel of
RS
by A42, XTUPLE_0:def 12;
then reconsider y =
y as
Element of
RS ;
f . y = (f | ( the InternalRel of RS -Seg x)) . y
by A36, FUNCT_1:47;
hence
contradiction
by A36, A34, A31, incsub, A44, A42, A41;
verum end; end; end; end;
end;
A13a:
for A being Element of RS holds S2[A]
from WELLFND1:sch 3(A21, A11);
take
G
; ( F c= G & G is consistent & G is maximal )
thus
F c= G
( G is consistent & G is maximal )
thus
G is consistent
G is maximal
thus
G is maximal
verum