let X be RelStr ; :: thesis: ( X in fin_RelStr_sp implies X is symmetric )
assume A1: X in fin_RelStr_sp ; :: thesis: X is symmetric
per cases ( X is trivial or not X is trivial ) ;
suppose X is trivial ; :: thesis: X is symmetric
then A2: the carrier of X is trivial ;
thus X is symmetric :: thesis: verum
proof
per cases ( the carrier of X is empty or ex x being set st the carrier of X = {x} ) by A2, REALSET1:def 4;
suppose A3: the carrier of X is empty ; :: thesis: X is symmetric
let a, b be set ; :: according to NECKLACE:def 4,RELAT_2:def 3 :: thesis: ( not a in the carrier of X or not b in the carrier of X or not [a,b] in the InternalRel of X or [b,a] in the InternalRel of X )
assume ( a in the carrier of X & b in the carrier of X & [a,b] in the InternalRel of X ) ; :: thesis: [b,a] in the InternalRel of X
hence [b,a] in the InternalRel of X by A3; :: thesis: verum
end;
suppose ex x being set st the carrier of X = {x} ; :: thesis: X is symmetric
then consider x being set such that
A4: the carrier of X = {x} ;
A5: [:the carrier of X,the carrier of X:] = {[x,x]} by A4, ZFMISC_1:35;
thus X is symmetric :: thesis: verum
proof
per cases ( the InternalRel of X = {} or the InternalRel of X = {[x,x]} ) by A5, ZFMISC_1:39;
suppose A6: the InternalRel of X = {} ; :: thesis: X is symmetric
let a, b be set ; :: according to NECKLACE:def 4,RELAT_2:def 3 :: thesis: ( not a in the carrier of X or not b in the carrier of X or not [a,b] in the InternalRel of X or [b,a] in the InternalRel of X )
assume ( a in the carrier of X & b in the carrier of X & [a,b] in the InternalRel of X ) ; :: thesis: [b,a] in the InternalRel of X
hence [b,a] in the InternalRel of X by A6; :: thesis: verum
end;
suppose A7: the InternalRel of X = {[x,x]} ; :: thesis: X is symmetric
let a, b be set ; :: according to NECKLACE:def 4,RELAT_2:def 3 :: thesis: ( not a in the carrier of X or not b in the carrier of X or not [a,b] in the InternalRel of X or [b,a] in the InternalRel of X )
assume A8: ( a in the carrier of X & b in the carrier of X & [a,b] in the InternalRel of X ) ; :: thesis: [b,a] in the InternalRel of X
then [a,b] = [x,x] by A7, TARSKI:def 1;
then ( a = x & b = x ) by ZFMISC_1:33;
hence [b,a] in the InternalRel of X by A8; :: thesis: verum
end;
end;
end;
end;
end;
end;
end;
suppose A9: not X is trivial ; :: thesis: X is symmetric
defpred S1[ Nat] means for X being non empty RelStr st not X is trivial & X in fin_RelStr_sp & card the carrier of X c= $1 holds
X is symmetric ;
A10: S1[ 0 ] ;
A14: for k being Nat st S1[k] holds
S1[k + 1]
proof
let k be Nat; :: thesis: ( S1[k] implies S1[k + 1] )
assume A15: S1[k] ; :: thesis: S1[k + 1]
let Y be non empty RelStr ; :: thesis: ( not Y is trivial & Y in fin_RelStr_sp & card the carrier of Y c= k + 1 implies Y is symmetric )
assume A16: ( not Y is trivial & Y in fin_RelStr_sp ) ; :: thesis: ( not card the carrier of Y c= k + 1 or Y is symmetric )
reconsider k1 = k as Element of NAT by ORDINAL1:def 13;
set cY = the carrier of Y;
consider R being strict RelStr such that
A17: ( Y = R & the carrier of R in FinSETS ) by A16, NECKLA_2:def 4;
reconsider cY = the carrier of Y as finite set by A17;
consider H1, H2 being strict RelStr such that
A18: ( the carrier of H1 misses the carrier of H2 & H1 in fin_RelStr_sp & H2 in fin_RelStr_sp ) and
A19: ( Y = union_of H1,H2 or Y = sum_of H1,H2 ) by A16, NECKLA_2:6;
set cH1 = the carrier of H1;
set cH2 = the carrier of H2;
A20: card cY = card (the carrier of H1 \/ the carrier of H2) by A19, NECKLA_2:def 2, NECKLA_2:def 3;
consider R1 being strict RelStr such that
A21: ( H1 = R1 & the carrier of R1 in FinSETS ) by A18, NECKLA_2:def 4;
reconsider cH1 = the carrier of H1 as finite set by A21;
consider R2 being strict RelStr such that
A22: ( H2 = R2 & the carrier of R2 in FinSETS ) by A18, NECKLA_2:def 4;
reconsider cH2 = the carrier of H2 as finite set by A22;
A23: card cY = (card cH1) + (card cH2) by A18, A20, CARD_2:53;
assume card the carrier of Y c= k + 1 ; :: thesis: Y is symmetric
then card cY c= card (k1 + 1) by CARD_1:def 5;
then card cY <= card (k1 + 1) by NAT_1:40;
then A24: card cY <= k + 1 by CARD_1:def 5;
( not H1 is empty & not H2 is empty ) by A18, NECKLA_2:4;
then ( not cH1 is empty & not cH2 is empty ) ;
then ( card cH1 <> 0 & card cH2 <> 0 ) ;
then A25: ( card cH1 >= 1 & card cH2 >= 1 ) by NAT_1:14;
per cases ( card cY <= k or ( card cY = k + 1 & k = 0 ) or ( (card cH1) + (card cH2) = k + 1 & k > 0 & card cH1 = 1 & card cH2 = 1 ) or ( (card cH1) + (card cH2) = k + 1 & k > 0 & card cH1 = 1 & card cH2 > 1 ) or ( (card cH1) + (card cH2) = k + 1 & k > 0 & card cH1 > 1 & card cH2 = 1 ) or ( (card cH1) + (card cH2) = k + 1 & k > 0 & card cH1 > 1 & card cH2 > 1 ) ) by A23, A24, A25, NAT_1:8, XXREAL_0:1;
suppose A26: ( card cY = k + 1 & k = 0 ) ; :: thesis: Y is symmetric
consider x being set ;
card cY = card {x} by A26, CARD_1:50;
then cY,{x} are_equipotent by CARD_1:21;
then consider y being set such that
A27: cY = {y} by CARD_1:48;
thus Y is symmetric by A16, A27; :: thesis: verum
end;
suppose A28: ( (card cH1) + (card cH2) = k + 1 & k > 0 & card cH1 = 1 & card cH2 = 1 ) ; :: thesis: Y is symmetric
then consider x being set such that
A29: cH1 = {x} by CARD_2:60;
consider y being set such that
A30: cH2 = {y} by A28, CARD_2:60;
A31: the InternalRel of H1 is_symmetric_in cH1 by A29, Th5;
the InternalRel of H2 is_symmetric_in cH2 by A30, Th5;
then reconsider H2 = H2 as symmetric RelStr by NECKLACE:def 4;
reconsider H1 = H1 as symmetric RelStr by A31, NECKLACE:def 4;
( union_of H1,H2 is symmetric & sum_of H1,H2 is symmetric ) ;
hence Y is symmetric by A19; :: thesis: verum
end;
suppose A32: ( (card cH1) + (card cH2) = k + 1 & k > 0 & card cH1 = 1 & card cH2 > 1 ) ; :: thesis: Y is symmetric
then consider x being set such that
A33: cH1 = {x} by CARD_2:60;
the InternalRel of H1 is_symmetric_in cH1 by A33, Th5;
then reconsider H1 = H1 as symmetric RelStr by NECKLACE:def 4;
not card cH2 is trivial by A32, NAT_2:30;
then card cH2 >= 2 by NAT_2:31;
then ( not cH2 is empty & not cH2 is trivial ) by REALSET1:13;
then ( not H2 is empty & not H2 is trivial ) ;
then reconsider H2 = H2 as symmetric RelStr by A15, A18, A32;
( union_of H1,H2 is symmetric & sum_of H1,H2 is symmetric ) ;
hence Y is symmetric by A19; :: thesis: verum
end;
suppose A34: ( (card cH1) + (card cH2) = k + 1 & k > 0 & card cH1 > 1 & card cH2 = 1 ) ; :: thesis: Y is symmetric
then consider x being set such that
A35: cH2 = {x} by CARD_2:60;
the InternalRel of H2 is_symmetric_in cH2 by A35, Th5;
then reconsider H2 = H2 as symmetric RelStr by NECKLACE:def 4;
not card cH1 is trivial by A34, NAT_2:30;
then card cH1 >= 2 by NAT_2:31;
then ( not cH1 is empty & not cH1 is trivial ) by REALSET1:13;
then ( not H1 is empty & not H1 is trivial ) ;
then reconsider H1 = H1 as symmetric RelStr by A15, A18, A34;
( union_of H1,H2 is symmetric & sum_of H1,H2 is symmetric ) ;
hence Y is symmetric by A19; :: thesis: verum
end;
suppose A36: ( (card cH1) + (card cH2) = k + 1 & k > 0 & card cH1 > 1 & card cH2 > 1 ) ; :: thesis: Y is symmetric
card cH1 < k + 1
proof
assume not card cH1 < k + 1 ; :: thesis: contradiction
then (card cH1) + (card cH2) >= (k + 1) + 1 by A25, XREAL_1:9;
hence contradiction by A36, NAT_1:13; :: thesis: verum
end;
then card cH1 <= k by NAT_1:13;
then card cH1 <= card k1 by CARD_1:def 5;
then card cH1 c= card k by NAT_1:40;
then A37: card cH1 c= k1 by CARD_1:def 5;
not card cH1 is trivial by A36, NAT_2:30;
then card cH1 >= 2 by NAT_2:31;
then ( not cH1 is empty & not cH1 is trivial ) by REALSET1:13;
then ( not H1 is empty & not H1 is trivial ) ;
then reconsider H1 = H1 as symmetric RelStr by A15, A18, A37;
card cH2 < k + 1
proof
assume not card cH2 < k + 1 ; :: thesis: contradiction
then (card cH1) + (card cH2) >= (k + 1) + 1 by A25, XREAL_1:9;
hence contradiction by A36, NAT_1:13; :: thesis: verum
end;
then card cH2 <= k by NAT_1:13;
then card cH2 <= card k1 by CARD_1:def 5;
then card cH2 c= card k by NAT_1:40;
then A38: card cH2 c= k1 by CARD_1:def 5;
not card cH2 is trivial by A36, NAT_2:30;
then card cH2 >= 2 by NAT_2:31;
then ( not cH2 is empty & not cH2 is trivial ) by REALSET1:13;
then ( not H2 is empty & not H2 is trivial ) ;
then reconsider H2 = H2 as symmetric RelStr by A15, A18, A38;
( union_of H1,H2 is symmetric & sum_of H1,H2 is symmetric ) ;
hence Y is symmetric by A19; :: thesis: verum
end;
end;
end;
A39: for k being Nat holds S1[k] from NAT_1:sch 2(A10, A14);
consider R being strict RelStr such that
A40: ( X = R & the carrier of R in FinSETS ) by A1, NECKLA_2:def 4;
reconsider X = X as non empty RelStr by A1, NECKLA_2:4;
the carrier of X is finite by A40;
then card the carrier of X is Nat ;
hence X is symmetric by A1, A9, A39; :: thesis: verum
end;
end;