let X be Subset of CQC-WFF ; for p being Element of CQC-WFF holds
( X |- 'not' p iff not X \/ {p} is Consistent )
let p be Element of CQC-WFF ; ( X |- 'not' p iff not X \/ {p} is Consistent )
thus
( X |- 'not' p implies not X \/ {p} is Consistent )
( not X \/ {p} is Consistent implies X |- 'not' p )
thus
( not X \/ {p} is Consistent implies X |- 'not' p )
verumproof
assume
not
X \/ {p} is
Consistent
;
X |- 'not' p
then
X \/ {p} |- 'not' p
by Th6;
then consider f being
FinSequence of
CQC-WFF such that A8:
rng f c= X \/ {p}
and A9:
|- f ^ <*('not' p)*>
by Def2;
now set g =
f - {p};
reconsider A =
f " {p} as
finite set ;
reconsider B =
dom f as
finite set ;
set n =
card A;
set h =
(f - {p}) ^ (IdFinS p,(card A));
A10:
len (IdFinS p,(card A)) = card A
by FINSEQ_1:def 18;
A c= B
by RELAT_1:167;
then A11:
A c= Seg (len f)
by FINSEQ_1:def 3;
assume
not
rng f c= X
;
X |- 'not' pthen consider a being
set such that A17:
a in rng f
and A18:
not
a in X
by TARSKI:def 3;
(
a in X or
a in {p} )
by A8, A17, XBOOLE_0:def 3;
then
a = p
by A18, TARSKI:def 1;
then consider i being
Nat such that A19:
i in B
and A20:
f . i = p
by A17, FINSEQ_2:11;
reconsider C =
B \ A as
finite set ;
defpred S1[
Nat,
set ]
means ( ( $1
in Seg (len (f - {p})) implies $2
= (Sgm (B \ A)) . $1 ) & ( $1
in seq (len (f - {p})),
(card A) implies $2
= (Sgm A) . ($1 - (len (f - {p}))) ) );
A21:
card C =
(card B) - (card A)
by CARD_2:63, RELAT_1:167
.=
(card (Seg (len f))) - (card A)
by FINSEQ_1:def 3
.=
(len f) - (card A)
by FINSEQ_1:78
.=
len (f - {p})
by FINSEQ_3:66
;
A22:
for
k being
Nat st
k in Seg (len ((f - {p}) ^ (IdFinS p,(card A)))) holds
ex
a being
set st
S1[
k,
a]
consider F being
FinSequence such that A24:
(
dom F = Seg (len ((f - {p}) ^ (IdFinS p,(card A)))) & ( for
k being
Nat st
k in Seg (len ((f - {p}) ^ (IdFinS p,(card A)))) holds
S1[
k,
F . k] ) )
from FINSEQ_1:sch 1(A22);
then A25:
C c= Seg (len f)
by TARSKI:def 3;
then A26:
dom (Sgm C) = Seg (card C)
by FINSEQ_3:45;
A27:
rng F = B
proof
hence
rng F c= B
by TARSKI:def 3;
XBOOLE_0:def 10 B c= rng F
let a be
set ;
TARSKI:def 3 ( not a in B or a in rng F )
assume A35:
a in B
;
a in rng F
A36:
now then A37:
C c= Seg (len f)
by TARSKI:def 3;
assume
not
a in A
;
a in rng Fthen
a in C
by A35, XBOOLE_0:def 5;
then
a in rng (Sgm C)
by A37, FINSEQ_1:def 13;
then consider i being
Nat such that A38:
i in dom (Sgm C)
and A39:
(Sgm C) . i = a
by FINSEQ_2:11;
A40:
1
<= i
by A38, FINSEQ_3:27;
len (Sgm C) = len (f - {p})
by A26, A21, FINSEQ_1:def 3;
then A41:
i <= len (f - {p})
by A38, FINSEQ_3:27;
len (f - {p}) <= len ((f - {p}) ^ (IdFinS p,(card A)))
by CALCUL_1:6;
then
i <= len ((f - {p}) ^ (IdFinS p,(card A)))
by A41, XXREAL_0:2;
then A42:
i in Seg (len ((f - {p}) ^ (IdFinS p,(card A))))
by A40, FINSEQ_1:3;
i in Seg (len (f - {p}))
by A40, A41, FINSEQ_1:3;
then
a = F . i
by A24, A39, A42;
hence
a in rng F
by A24, A42, FUNCT_1:12;
verum end;
now assume A43:
a in A
;
a in rng F
rng (Sgm A) = A
by A11, FINSEQ_1:def 13;
then consider i being
Nat such that A44:
i in dom (Sgm A)
and A45:
(Sgm A) . i = a
by A43, FINSEQ_2:11;
reconsider i =
i as
Element of
NAT by ORDINAL1:def 13;
set m =
i + (len (f - {p}));
len (Sgm A) = card A
by A11, FINSEQ_3:44;
then
i <= card A
by A44, FINSEQ_3:27;
then A46:
i + (len (f - {p})) <= (card A) + (len (f - {p}))
by XREAL_1:8;
then
i + (len (f - {p})) <= (len (f - {p})) + (len (IdFinS p,(card A)))
by FINSEQ_1:def 18;
then A47:
i + (len (f - {p})) <= len ((f - {p}) ^ (IdFinS p,(card A)))
by FINSEQ_1:35;
A48:
1
<= i
by A44, FINSEQ_3:27;
then
1
+ (len (f - {p})) <= i + (len (f - {p}))
by XREAL_1:8;
then A49:
i + (len (f - {p})) in seq (len (f - {p})),
(card A)
by A46, CALCUL_2:1;
i <= i + (len (f - {p}))
by NAT_1:11;
then
1
<= i + (len (f - {p}))
by A48, XXREAL_0:2;
then
i + (len (f - {p})) in dom ((f - {p}) ^ (IdFinS p,(card A)))
by A47, FINSEQ_3:27;
then A50:
i + (len (f - {p})) in Seg (len ((f - {p}) ^ (IdFinS p,(card A))))
by FINSEQ_1:def 3;
a = (Sgm A) . ((i + (len (f - {p}))) - (len (f - {p})))
by A45;
then
a = F . (i + (len (f - {p})))
by A24, A49, A50;
hence
a in rng F
by A24, A50, FUNCT_1:12;
verum end;
hence
a in rng F
by A36;
verum
end; A51:
len ((f - {p}) ^ (IdFinS p,(card A))) =
(len (f - {p})) + (len (IdFinS p,(card A)))
by FINSEQ_1:35
.=
((len f) - (card A)) + (len (IdFinS p,(card A)))
by FINSEQ_3:66
.=
((len f) - (card A)) + (card A)
by FINSEQ_1:def 18
.=
len f
;
then A52:
dom F = B
by A24, FINSEQ_1:def 3;
then reconsider F =
F as
Relation of
B,
B by A27, RELSET_1:11;
(
B = {} implies
B = {} )
;
then reconsider F =
F as
Function of
B,
B by A52, FUNCT_2:def 1;
F is
one-to-one
proof
let a1 be
set ;
FUNCT_1:def 8 for b1 being set holds
( not a1 in proj1 F or not b1 in proj1 F or not F . a1 = F . b1 or a1 = b1 )let a2 be
set ;
( not a1 in proj1 F or not a2 in proj1 F or not F . a1 = F . a2 or a1 = a2 )
assume that A53:
a1 in dom F
and A54:
a2 in dom F
and A55:
F . a1 = F . a2
;
a1 = a2
A56:
a2 in (Seg (len (f - {p}))) \/ (seq (len (f - {p})),(card A))
by A10, A24, A54, Lm1;
A57:
now assume A58:
a1 in Seg (len (f - {p}))
;
a1 = a2then A59:
a1 in dom (Sgm C)
by A25, A21, FINSEQ_3:45;
F . a1 = (Sgm C) . a1
by A24, A53, A58;
then
F . a1 in rng (Sgm C)
by A59, FUNCT_1:12;
then A60:
F . a1 in C
by A25, FINSEQ_1:def 13;
now assume A63:
a2 in Seg (len (f - {p}))
;
a1 = a2then
F . a2 = (Sgm C) . a2
by A24, A54;
then A64:
(Sgm C) . a1 = (Sgm C) . a2
by A24, A53, A55, A58;
A65:
Sgm C is
one-to-one
by A25, FINSEQ_3:99;
a2 in dom (Sgm C)
by A25, A21, A63, FINSEQ_3:45;
hence
a1 = a2
by A59, A64, A65, FUNCT_1:def 8;
verum end; hence
a1 = a2
by A56, A61, XBOOLE_0:def 3;
verum end;
A66:
now assume A67:
a1 in seq (len (f - {p})),
(card A)
;
a1 = a2then reconsider i =
a1 as
Element of
NAT ;
A68:
i - (len (f - {p})) in dom (Sgm A)
by A12, A67;
A69:
now assume A70:
a2 in seq (len (f - {p})),
(card A)
;
a1 = a2then reconsider i1 =
a2 as
Element of
NAT ;
F . a2 = (Sgm A) . (i1 - (len (f - {p})))
by A24, A54, A70;
then A71:
(Sgm A) . (i1 - (len (f - {p}))) = (Sgm A) . (i - (len (f - {p})))
by A24, A53, A55, A67;
A72:
Sgm A is
one-to-one
by A11, FINSEQ_3:99;
i1 - (len (f - {p})) in dom (Sgm A)
by A12, A70;
then
(i1 - (len (f - {p}))) + (len (f - {p})) = (i - (len (f - {p}))) + (len (f - {p}))
by A68, A71, A72, FUNCT_1:def 8;
hence
a1 = a2
;
verum end;
(Sgm A) . (i - (len (f - {p}))) in rng (Sgm A)
by A12, A67, FUNCT_1:12;
then
F . a1 in rng (Sgm A)
by A24, A53, A67;
then A73:
F . a1 in A
by A11, FINSEQ_1:def 13;
hence
a1 = a2
by A56, A69, XBOOLE_0:def 3;
verum end;
a1 in (Seg (len (f - {p}))) \/ (seq (len (f - {p})),(card A))
by A10, A24, A53, Lm1;
hence
a1 = a2
by A57, A66, XBOOLE_0:def 3;
verum
end; then reconsider F =
F as
Permutation of
(dom f) by A27, FUNCT_2:83;
consider j being
Nat such that A74:
j in dom F
and A75:
F . j = i
by A27, A19, FINSEQ_2:11;
A76:
dom (Per f,F) =
B
by CALCUL_2:19
.=
dom F
by A24, A51, FINSEQ_1:def 3
.=
dom ((f - {p}) ^ (IdFinS p,(card A)))
by A24, FINSEQ_1:def 3
;
A77:
now let k be
Nat;
( k in dom ((f - {p}) ^ (IdFinS p,(card A))) implies (Per f,F) . k = ((f - {p}) ^ (IdFinS p,(card A))) . k )assume A78:
k in dom ((f - {p}) ^ (IdFinS p,(card A)))
;
(Per f,F) . k = ((f - {p}) ^ (IdFinS p,(card A))) . kA79:
k in Seg (len ((f - {p}) ^ (IdFinS p,(card A))))
by A78, FINSEQ_1:def 3;
A80:
now A81:
k in dom (F * f)
by A76, A78, CALCUL_2:def 2;
given i being
Nat such that A82:
i in dom (IdFinS p,(card A))
and A83:
k = (len (f - {p})) + i
;
(Per f,F) . k = ((f - {p}) ^ (IdFinS p,(card A))) . k
len (IdFinS p,(card A)) = card A
by FINSEQ_1:def 18;
then A84:
i <= card A
by A82, FINSEQ_3:27;
then A85:
k <= (card A) + (len (f - {p}))
by A83, XREAL_1:8;
A86:
1
<= i
by A82, FINSEQ_3:27;
then
1
+ (len (f - {p})) <= k
by A83, XREAL_1:8;
then A87:
k in seq (len (f - {p})),
(card A)
by A85, CALCUL_2:1;
then
F . k = (Sgm A) . (k - (len (f - {p})))
by A24, A79;
then
F . k in rng (Sgm A)
by A12, A87, FUNCT_1:12;
then
F . k in A
by A11, FINSEQ_1:def 13;
then
f . (F . k) in {p}
by FUNCT_1:def 13;
then
f . (F . k) = p
by TARSKI:def 1;
then
(F * f) . k = p
by A81, FUNCT_1:22;
then A88:
(Per f,F) . k = p
by CALCUL_2:def 2;
i in Seg (card A)
by A86, A84, FINSEQ_1:3;
hence (Per f,F) . k =
(IdFinS p,(card A)) . i
by A88, FUNCOP_1:13
.=
((f - {p}) ^ (IdFinS p,(card A))) . k
by A82, A83, FINSEQ_1:def 7
;
verum end; now assume A89:
k in dom (f - {p})
;
(Per f,F) . k = ((f - {p}) ^ (IdFinS p,(card A))) . kthen A90:
k in dom (Sgm C)
by A26, A21, FINSEQ_1:def 3;
k in Seg (len (f - {p}))
by A89, FINSEQ_1:def 3;
then A91:
F . k = (Sgm C) . k
by A24, A79;
k in dom (F * f)
by A76, A78, CALCUL_2:def 2;
then
(F * f) . k = f . ((Sgm C) . k)
by A91, FUNCT_1:22;
hence (Per f,F) . k =
f . ((Sgm C) . k)
by CALCUL_2:def 2
.=
((Sgm C) * f) . k
by A90, FUNCT_1:23
.=
(f - {p}) . k
by FINSEQ_3:def 1
.=
((f - {p}) ^ (IdFinS p,(card A))) . k
by A89, FINSEQ_1:def 7
;
verum end; hence
(Per f,F) . k = ((f - {p}) ^ (IdFinS p,(card A))) . k
by A78, A80, FINSEQ_1:38;
verum end; then A92:
Per f,
F = (f - {p}) ^ (IdFinS p,(card A))
by A76, FINSEQ_1:17;
reconsider h =
(f - {p}) ^ (IdFinS p,(card A)) as
FinSequence of
CQC-WFF by A76, A77, FINSEQ_1:17;
(F * f) . j = p
by A20, A74, A75, FUNCT_1:23;
then A93:
h . j = p
by A92, CALCUL_2:def 2;
j in dom f
by A74;
then
j in dom h
by A76, CALCUL_2:19;
then consider k being
Nat such that A98:
k in dom (IdFinS p,(card A))
and
j = (len (f - {p})) + k
by A94, FINSEQ_1:38;
reconsider g =
f - {p} as
FinSequence of
CQC-WFF by FINSEQ_3:93;
( 1
<= k &
k <= len (IdFinS p,(card A)) )
by A98, FINSEQ_3:27;
then
1
<= len (IdFinS p,(card A))
by XXREAL_0:2;
then A99:
1
<= card A
by FINSEQ_1:def 18;
|- h ^ <*('not' p)*>
by A9, A92, CALCUL_2:30;
then A100:
|- (g ^ <*p*>) ^ <*('not' p)*>
by A99, CALCUL_2:32;
(
rng g = (rng f) \ {p} &
(rng f) \ {p} c= (X \/ {p}) \ {p} )
by A8, FINSEQ_3:72, XBOOLE_1:33;
then A101:
rng g c= X \ {p}
by XBOOLE_1:40;
X \ {p} c= X
by XBOOLE_1:36;
then A102:
rng g c= X
by A101, XBOOLE_1:1;
|- (g ^ <*('not' p)*>) ^ <*('not' p)*>
by CALCUL_2:21;
then
|- g ^ <*('not' p)*>
by A100, CALCUL_2:26;
hence
X |- 'not' p
by A102, Def2;
verum end;
hence
X |- 'not' p
by A9, Def2;
verum
end;