:: ORDERS_1 semantic presentation

Lemma17: for Y being set holds
( ex X being set st
( X <> {} & X in Y ) iff union Y <> {} )
proof end;

definition
let M be non empty set ;
assume E18: not {} in M ;
mode Choice_Function of c1 -> Function of a1, union a1 means :Def1: :: ORDERS_1:def 1
for X being set st X in M holds
it . X in X;
existence
ex b1 being Function of M, union M st
for X being set st X in M holds
b1 . X in X
proof end;
end;

:: deftheorem Def1 defines Choice_Function ORDERS_1:def 1 :
for M being non empty set st not {} in M holds
for b2 being Function of M, union M holds
( b2 is Choice_Function of M iff for X being set st X in M holds
b2 . X in X );

definition
let D be set ;
func BOOL c1 -> set equals :: ORDERS_1:def 2
(bool D) \ {{} };
coherence
(bool D) \ {{} } is set
;
end;

:: deftheorem Def2 defines BOOL ORDERS_1:def 2 :
for D being set holds BOOL D = (bool D) \ {{} };

registration
let D be non empty set ;
cluster BOOL a1 -> non empty ;
coherence
not BOOL D is empty
proof end;
end;

theorem Th1: :: ORDERS_1:1
canceled;

theorem Th2: :: ORDERS_1:2
canceled;

theorem Th3: :: ORDERS_1:3
canceled;

theorem Th4: :: ORDERS_1:4
for D being non empty set holds not {} in BOOL D
proof end;

theorem Th5: :: ORDERS_1:5
for D1, D being non empty set holds
( D1 c= D iff D1 in BOOL D )
proof end;

theorem Th6: :: ORDERS_1:6
for D1, D being non empty set holds
( D1 is Subset of D iff D1 in BOOL D ) by ;

theorem Th7: :: ORDERS_1:7
for D being non empty set holds D in BOOL D by ;

definition
let X be set ;
mode Order of a1 is reflexive antisymmetric transitive total Relation of a1;
end;

Lemma77: for X being set
for R being total Relation of X holds field R = X
proof end;

theorem Th8: :: ORDERS_1:8
canceled;

theorem Th9: :: ORDERS_1:9
canceled;

theorem Th10: :: ORDERS_1:10
canceled;

theorem Th11: :: ORDERS_1:11
canceled;

theorem Th12: :: ORDERS_1:12
for X, x being set
for O being Order of X st x in X holds
[x,x] in O
proof end;

theorem Th13: :: ORDERS_1:13
for X, x, y being set
for O being Order of X st x in X & y in X & [x,y] in O & [y,x] in O holds
x = y
proof end;

theorem Th14: :: ORDERS_1:14
for X, x, y, z being set
for O being Order of X st x in X & y in X & z in X & [x,y] in O & [y,z] in O holds
[x,z] in O
proof end;

theorem Th15: :: ORDERS_1:15
canceled;

theorem Th16: :: ORDERS_1:16
canceled;

theorem Th17: :: ORDERS_1:17
canceled;

theorem Th18: :: ORDERS_1:18
canceled;

theorem Th19: :: ORDERS_1:19
canceled;

theorem Th20: :: ORDERS_1:20
canceled;

theorem Th21: :: ORDERS_1:21
canceled;

theorem Th22: :: ORDERS_1:22
canceled;

theorem Th23: :: ORDERS_1:23
canceled;

theorem Th24: :: ORDERS_1:24
canceled;

theorem Th25: :: ORDERS_1:25
canceled;

theorem Th26: :: ORDERS_1:26
canceled;

theorem Th27: :: ORDERS_1:27
canceled;

theorem Th28: :: ORDERS_1:28
canceled;

theorem Th29: :: ORDERS_1:29
canceled;

theorem Th30: :: ORDERS_1:30
canceled;

theorem Th31: :: ORDERS_1:31
canceled;

theorem Th32: :: ORDERS_1:32
canceled;

theorem Th33: :: ORDERS_1:33
canceled;

theorem Th34: :: ORDERS_1:34
canceled;

theorem Th35: :: ORDERS_1:35
canceled;

theorem Th36: :: ORDERS_1:36
canceled;

theorem Th37: :: ORDERS_1:37
canceled;

theorem Th38: :: ORDERS_1:38
canceled;

theorem Th39: :: ORDERS_1:39
canceled;

theorem Th40: :: ORDERS_1:40
canceled;

theorem Th41: :: ORDERS_1:41
canceled;

theorem Th42: :: ORDERS_1:42
canceled;

theorem Th43: :: ORDERS_1:43
canceled;

theorem Th44: :: ORDERS_1:44
canceled;

theorem Th45: :: ORDERS_1:45
canceled;

theorem Th46: :: ORDERS_1:46
canceled;

theorem Th47: :: ORDERS_1:47
canceled;

theorem Th48: :: ORDERS_1:48
canceled;

theorem Th49: :: ORDERS_1:49
canceled;

theorem Th50: :: ORDERS_1:50
canceled;

theorem Th51: :: ORDERS_1:51
canceled;

theorem Th52: :: ORDERS_1:52
canceled;

theorem Th53: :: ORDERS_1:53
canceled;

theorem Th54: :: ORDERS_1:54
canceled;

theorem Th55: :: ORDERS_1:55
canceled;

theorem Th56: :: ORDERS_1:56
canceled;

theorem Th57: :: ORDERS_1:57
canceled;

theorem Th58: :: ORDERS_1:58
canceled;

theorem Th59: :: ORDERS_1:59
canceled;

theorem Th60: :: ORDERS_1:60
canceled;

theorem Th61: :: ORDERS_1:61
canceled;

theorem Th62: :: ORDERS_1:62
canceled;

theorem Th63: :: ORDERS_1:63
canceled;

theorem Th64: :: ORDERS_1:64
canceled;

theorem Th65: :: ORDERS_1:65
canceled;

theorem Th66: :: ORDERS_1:66
canceled;

theorem Th67: :: ORDERS_1:67
canceled;

theorem Th68: :: ORDERS_1:68
canceled;

theorem Th69: :: ORDERS_1:69
canceled;

theorem Th70: :: ORDERS_1:70
canceled;

theorem Th71: :: ORDERS_1:71
canceled;

theorem Th72: :: ORDERS_1:72
canceled;

theorem Th73: :: ORDERS_1:73
canceled;

theorem Th74: :: ORDERS_1:74
canceled;

theorem Th75: :: ORDERS_1:75
canceled;

theorem Th76: :: ORDERS_1:76
canceled;

theorem Th77: :: ORDERS_1:77
canceled;

theorem Th78: :: ORDERS_1:78
canceled;

theorem Th79: :: ORDERS_1:79
canceled;

theorem Th80: :: ORDERS_1:80
canceled;

theorem Th81: :: ORDERS_1:81
canceled;

theorem Th82: :: ORDERS_1:82
canceled;

theorem Th83: :: ORDERS_1:83
canceled;

theorem Th84: :: ORDERS_1:84
canceled;

theorem Th85: :: ORDERS_1:85
canceled;

theorem Th86: :: ORDERS_1:86
canceled;

theorem Th87: :: ORDERS_1:87
canceled;

theorem Th88: :: ORDERS_1:88
canceled;

theorem Th89: :: ORDERS_1:89
canceled;

theorem Th90: :: ORDERS_1:90
canceled;

theorem Th91: :: ORDERS_1:91
for Y being set holds
( ex X being set st
( X <> {} & X in Y ) iff union Y <> {} ) by ;

theorem Th92: :: ORDERS_1:92
for X being set
for P being Relation holds
( P is_strongly_connected_in X iff ( P is_reflexive_in X & P is_connected_in X ) )
proof end;

theorem Th93: :: ORDERS_1:93
for X, Y being set
for P being Relation st P is_reflexive_in X & Y c= X holds
P is_reflexive_in Y
proof end;

theorem Th94: :: ORDERS_1:94
for X, Y being set
for P being Relation st P is_antisymmetric_in X & Y c= X holds
P is_antisymmetric_in Y
proof end;

theorem Th95: :: ORDERS_1:95
for X, Y being set
for P being Relation st P is_transitive_in X & Y c= X holds
P is_transitive_in Y
proof end;

theorem Th96: :: ORDERS_1:96
for X, Y being set
for P being Relation st P is_strongly_connected_in X & Y c= X holds
P is_strongly_connected_in Y
proof end;

theorem Th97: :: ORDERS_1:97
for X being set
for R being total Relation of X holds field R = X by ;

theorem Th98: :: ORDERS_1:98
for A being set
for R being Relation of A st R is_reflexive_in A holds
( dom R = A & field R = A )
proof end;

theorem Th99: :: ORDERS_1:99
for X being set
for O being Order of X holds
( dom O = X & rng O = X )
proof end;

theorem Th100: :: ORDERS_1:100
for X being set
for O being Order of X holds field O = X
proof end;

definition
let R be Relation;
attr a1 is being_quasi-order means :: ORDERS_1:def 3
( R is reflexive & R is transitive );
attr a1 is being_partial-order means :Def4: :: ORDERS_1:def 4
( R is reflexive & R is transitive & R is antisymmetric );
attr a1 is being_linear-order means :Def5: :: ORDERS_1:def 5
( R is reflexive & R is transitive & R is antisymmetric & R is connected );
end;

:: deftheorem Def3 defines being_quasi-order ORDERS_1:def 3 :
for R being Relation holds
( R is being_quasi-order iff ( R is reflexive & R is transitive ) );

:: deftheorem Def4 defines being_partial-order ORDERS_1:def 4 :
for R being Relation holds
( R is being_partial-order iff ( R is reflexive & R is transitive & R is antisymmetric ) );

:: deftheorem Def5 defines being_linear-order ORDERS_1:def 5 :
for R being Relation holds
( R is being_linear-order iff ( R is reflexive & R is transitive & R is antisymmetric & R is connected ) );

notation
let R be Relation;
synonym c1 is_quasi-order for being_quasi-order c1;
synonym c1 is_partial-order for being_partial-order c1;
synonym c1 is_linear-order for being_linear-order c1;
end;

theorem Th101: :: ORDERS_1:101
canceled;

theorem Th102: :: ORDERS_1:102
canceled;

theorem Th103: :: ORDERS_1:103
canceled;

theorem Th104: :: ORDERS_1:104
for R being Relation st R is_quasi-order holds
R ~ is_quasi-order
proof end;

theorem Th105: :: ORDERS_1:105
for R being Relation st R is_partial-order holds
R ~ is_partial-order
proof end;

Lemma100: for R being Relation st R is connected holds
R ~ is connected
proof end;

theorem Th106: :: ORDERS_1:106
for R being Relation st R is_linear-order holds
R ~ is_linear-order
proof end;

theorem Th107: :: ORDERS_1:107
for R being Relation st R is well-ordering holds
( R is_quasi-order & R is_partial-order & R is_linear-order )
proof end;

theorem Th108: :: ORDERS_1:108
for R being Relation st R is_linear-order holds
( R is_quasi-order & R is_partial-order )
proof end;

theorem Th109: :: ORDERS_1:109
for R being Relation st R is_partial-order holds
R is_quasi-order
proof end;

theorem Th110: :: ORDERS_1:110
for X being set
for O being Order of X holds O is_partial-order by ;

theorem Th111: :: ORDERS_1:111
for X being set
for O being Order of X holds O is_quasi-order
proof end;

theorem Th112: :: ORDERS_1:112
for X being set
for O being Order of X st O is connected holds
O is_linear-order by ;

Lemma103: for R being Relation holds R c= [:(field R),(field R):]
proof end;

Lemma104: for R being Relation
for X being set st R is reflexive & X c= field R holds
field (R |_2 X) = X
proof end;

theorem Th113: :: ORDERS_1:113
for R being Relation
for X being set st R is_quasi-order holds
R |_2 X is_quasi-order
proof end;

theorem Th114: :: ORDERS_1:114
for R being Relation
for X being set st R is_partial-order holds
R |_2 X is_partial-order
proof end;

theorem Th115: :: ORDERS_1:115
for R being Relation
for X being set st R is_linear-order holds
R |_2 X is_linear-order
proof end;

theorem Th116: :: ORDERS_1:116
canceled;

theorem Th117: :: ORDERS_1:117
canceled;

theorem Th118: :: ORDERS_1:118
canceled;

theorem Th119: :: ORDERS_1:119
( {} is_quasi-order & {} is_partial-order & {} is_linear-order & {} is well-ordering )
proof end;

theorem Th120: :: ORDERS_1:120
for X being set holds
( id X is_quasi-order & id X is_partial-order )
proof end;

definition
let R be Relation;
let X be set ;
pred c1 quasi_orders c2 means :Def6: :: ORDERS_1:def 6
( R is_reflexive_in X & R is_transitive_in X );
pred c1 partially_orders c2 means :Def7: :: ORDERS_1:def 7
( R is_reflexive_in X & R is_transitive_in X & R is_antisymmetric_in X );
pred c1 linearly_orders c2 means :: ORDERS_1:def 8
( R is_reflexive_in X & R is_transitive_in X & R is_antisymmetric_in X & R is_connected_in X );
end;

:: deftheorem Def6 defines quasi_orders ORDERS_1:def 6 :
for R being Relation
for X being set holds
( R quasi_orders X iff ( R is_reflexive_in X & R is_transitive_in X ) );

:: deftheorem Def7 defines partially_orders ORDERS_1:def 7 :
for R being Relation
for X being set holds
( R partially_orders X iff ( R is_reflexive_in X & R is_transitive_in X & R is_antisymmetric_in X ) );

:: deftheorem Def8 defines linearly_orders ORDERS_1:def 8 :
for R being Relation
for X being set holds
( R linearly_orders X iff ( R is_reflexive_in X & R is_transitive_in X & R is_antisymmetric_in X & R is_connected_in X ) );

theorem Th121: :: ORDERS_1:121
canceled;

theorem Th122: :: ORDERS_1:122
canceled;

theorem Th123: :: ORDERS_1:123
canceled;

theorem Th124: :: ORDERS_1:124
for R being Relation
for X being set st R well_orders X holds
( R quasi_orders X & R partially_orders X & R linearly_orders X )
proof end;

theorem Th125: :: ORDERS_1:125
for R being Relation
for X being set st R linearly_orders X holds
( R quasi_orders X & R partially_orders X )
proof end;

theorem Th126: :: ORDERS_1:126
for R being Relation
for X being set st R partially_orders X holds
R quasi_orders X
proof end;

theorem Th127: :: ORDERS_1:127
for R being Relation st R is_quasi-order holds
R quasi_orders field R
proof end;

theorem Th128: :: ORDERS_1:128
for R being Relation
for Y, X being set st R quasi_orders Y & X c= Y holds
R quasi_orders X
proof end;

Lemma112: for R being Relation
for X being set st R is_reflexive_in X holds
R |_2 X is reflexive
proof end;

Lemma113: for R being Relation
for X being set st R is_transitive_in X holds
R |_2 X is transitive
proof end;

Lemma114: for R being Relation
for X being set st R is_antisymmetric_in X holds
R |_2 X is antisymmetric
proof end;

Lemma115: for R being Relation
for X being set st R is_connected_in X holds
R |_2 X is connected
proof end;

theorem Th129: :: ORDERS_1:129
for R being Relation
for X being set st R quasi_orders X holds
R |_2 X is_quasi-order
proof end;

theorem Th130: :: ORDERS_1:130
for R being Relation st R is_partial-order holds
R partially_orders field R
proof end;

theorem Th131: :: ORDERS_1:131
for R being Relation
for Y, X being set st R partially_orders Y & X c= Y holds
R partially_orders X
proof end;

theorem Th132: :: ORDERS_1:132
for R being Relation
for X being set st R partially_orders X holds
R |_2 X is_partial-order
proof end;

Lemma117: for R being Relation
for X, Y being set st R is_connected_in X & Y c= X holds
R is_connected_in Y
proof end;

theorem Th133: :: ORDERS_1:133
for R being Relation st R is_linear-order holds
R linearly_orders field R
proof end;

theorem Th134: :: ORDERS_1:134
for R being Relation
for Y, X being set st R linearly_orders Y & X c= Y holds
R linearly_orders X
proof end;

theorem Th135: :: ORDERS_1:135
for R being Relation
for X being set st R linearly_orders X holds
R |_2 X is_linear-order
proof end;

Lemma118: for R being Relation
for X being set st R is_reflexive_in X holds
R ~ is_reflexive_in X
proof end;

Lemma119: for R being Relation
for X being set st R is_transitive_in X holds
R ~ is_transitive_in X
proof end;

Lemma120: for R being Relation
for X being set st R is_antisymmetric_in X holds
R ~ is_antisymmetric_in X
proof end;

Lemma121: for R being Relation
for X being set st R is_connected_in X holds
R ~ is_connected_in X
proof end;

theorem Th136: :: ORDERS_1:136
for R being Relation
for X being set st R quasi_orders X holds
R ~ quasi_orders X
proof end;

theorem Th137: :: ORDERS_1:137
for R being Relation
for X being set st R partially_orders X holds
R ~ partially_orders X
proof end;

theorem Th138: :: ORDERS_1:138
for R being Relation
for X being set st R linearly_orders X holds
R ~ linearly_orders X
proof end;

theorem Th139: :: ORDERS_1:139
for X being set
for O being Order of X holds O quasi_orders X
proof end;

theorem Th140: :: ORDERS_1:140
for X being set
for O being Order of X holds O partially_orders X
proof end;

theorem Th141: :: ORDERS_1:141
for R being Relation
for X being set st R partially_orders X holds
R |_2 X is Order of X
proof end;

theorem Th142: :: ORDERS_1:142
for R being Relation
for X being set st R linearly_orders X holds
R |_2 X is Order of X
proof end;

theorem Th143: :: ORDERS_1:143
for R being Relation
for X being set st R well_orders X holds
R |_2 X is Order of X
proof end;

theorem Th144: :: ORDERS_1:144
canceled;

theorem Th145: :: ORDERS_1:145
canceled;

theorem Th146: :: ORDERS_1:146
for X being set holds
( id X quasi_orders X & id X partially_orders X )
proof end;

definition
let R be Relation;
let X be set ;
pred c2 has_upper_Zorn_property_wrt c1 means :Def9: :: ORDERS_1:def 9
for Y being set st Y c= X & R |_2 Y is_linear-order holds
ex x being set st
( x in X & ( for y being set st y in Y holds
[y,x] in R ) );
pred c2 has_lower_Zorn_property_wrt c1 means :: ORDERS_1:def 10
for Y being set st Y c= X & R |_2 Y is_linear-order holds
ex x being set st
( x in X & ( for y being set st y in Y holds
[x,y] in R ) );
end;

:: deftheorem Def9 defines has_upper_Zorn_property_wrt ORDERS_1:def 9 :
for R being Relation
for X being set holds
( X has_upper_Zorn_property_wrt R iff for Y being set st Y c= X & R |_2 Y is_linear-order holds
ex x being set st
( x in X & ( for y being set st y in Y holds
[y,x] in R ) ) );

:: deftheorem Def10 defines has_lower_Zorn_property_wrt ORDERS_1:def 10 :
for R being Relation
for X being set holds
( X has_lower_Zorn_property_wrt R iff for Y being set st Y c= X & R |_2 Y is_linear-order holds
ex x being set st
( x in X & ( for y being set st y in Y holds
[x,y] in R ) ) );

Lemma126: for R being Relation
for X being set holds (R |_2 X) ~ = (R ~ ) |_2 X
proof end;

E127: now
let R be Relation;
thus R |_2 {} = ({} | R) | {} by WELLORD1:17
.= {} by RELAT_1:110 ;
end;

theorem Th147: :: ORDERS_1:147
canceled;

theorem Th148: :: ORDERS_1:148
canceled;

theorem Th149: :: ORDERS_1:149
for R being Relation
for X being set st X has_upper_Zorn_property_wrt R holds
X <> {}
proof end;

theorem Th150: :: ORDERS_1:150
for R being Relation
for X being set st X has_lower_Zorn_property_wrt R holds
X <> {}
proof end;

theorem Th151: :: ORDERS_1:151
for R being Relation
for X being set holds
( X has_upper_Zorn_property_wrt R iff X has_lower_Zorn_property_wrt R ~ )
proof end;

theorem Th152: :: ORDERS_1:152
for R being Relation
for X being set holds
( X has_upper_Zorn_property_wrt R ~ iff X has_lower_Zorn_property_wrt R )
proof end;

definition
let R be Relation;
let x be set ;
pred c2 is_maximal_in c1 means :Def11: :: ORDERS_1:def 11
( x in field R & ( for y being set holds
( not y in field R or not y <> x or not [x,y] in R ) ) );
pred c2 is_minimal_in c1 means :Def12: :: ORDERS_1:def 12
( x in field R & ( for y being set holds
( not y in field R or not y <> x or not [y,x] in R ) ) );
pred c2 is_superior_of c1 means :Def13: :: ORDERS_1:def 13
( x in field R & ( for y being set st y in field R & y <> x holds
[y,x] in R ) );
pred c2 is_inferior_of c1 means :Def14: :: ORDERS_1:def 14
( x in field R & ( for y being set st y in field R & y <> x holds
[x,y] in R ) );
end;

:: deftheorem Def11 defines is_maximal_in ORDERS_1:def 11 :
for R being Relation
for x being set holds
( x is_maximal_in R iff ( x in field R & ( for y being set holds
( not y in field R or not y <> x or not [x,y] in R ) ) ) );

:: deftheorem Def12 defines is_minimal_in ORDERS_1:def 12 :
for R being Relation
for x being set holds
( x is_minimal_in R iff ( x in field R & ( for y being set holds
( not y in field R or not y <> x or not [y,x] in R ) ) ) );

:: deftheorem Def13 defines is_superior_of ORDERS_1:def 13 :
for R being Relation
for x being set holds
( x is_superior_of R iff ( x in field R & ( for y being set st y in field R & y <> x holds
[y,x] in R ) ) );

:: deftheorem Def14 defines is_inferior_of ORDERS_1:def 14 :
for R being Relation
for x being set holds
( x is_inferior_of R iff ( x in field R & ( for y being set st y in field R & y <> x holds
[x,y] in R ) ) );

theorem Th153: :: ORDERS_1:153
canceled;

theorem Th154: :: ORDERS_1:154
canceled;

theorem Th155: :: ORDERS_1:155
canceled;

theorem Th156: :: ORDERS_1:156
canceled;

theorem Th157: :: ORDERS_1:157
for R being Relation
for x being set st x is_inferior_of R & R is antisymmetric holds
x is_minimal_in R
proof end;

theorem Th158: :: ORDERS_1:158
for R being Relation
for x being set st x is_superior_of R & R is antisymmetric holds
x is_maximal_in R
proof end;

theorem Th159: :: ORDERS_1:159
for R being Relation
for x being set st x is_minimal_in R & R is connected holds
x is_inferior_of R
proof end;

theorem Th160: :: ORDERS_1:160
for R being Relation
for x being set st x is_maximal_in R & R is connected holds
x is_superior_of R
proof end;

theorem Th161: :: ORDERS_1:161
for R being Relation
for x, X being set st x in X & x is_superior_of R & X c= field R & R is reflexive holds
X has_upper_Zorn_property_wrt R
proof end;

theorem Th162: :: ORDERS_1:162
for R being Relation
for x, X being set st x in X & x is_inferior_of R & X c= field R & R is reflexive holds
X has_lower_Zorn_property_wrt R
proof end;

theorem Th163: :: ORDERS_1:163
for R being Relation
for x being set holds
( x is_minimal_in R iff x is_maximal_in R ~ )
proof end;

theorem Th164: :: ORDERS_1:164
for R being Relation
for x being set holds
( x is_minimal_in R ~ iff x is_maximal_in R )
proof end;

theorem Th165: :: ORDERS_1:165
for R being Relation
for x being set holds
( x is_inferior_of R iff x is_superior_of R ~ )
proof end;

theorem Th166: :: ORDERS_1:166
for R being Relation
for x being set holds
( x is_inferior_of R ~ iff x is_superior_of R )
proof end;

Lemma135: for R being Relation
for X, Y being set st R well_orders X & Y c= X holds
R well_orders Y
proof end;

theorem Th167: :: ORDERS_1:167
canceled;

theorem Th168: :: ORDERS_1:168
canceled;

theorem Th169: :: ORDERS_1:169
canceled;

theorem Th170: :: ORDERS_1:170
canceled;

theorem Th171: :: ORDERS_1:171
canceled;

theorem Th172: :: ORDERS_1:172
canceled;

theorem Th173: :: ORDERS_1:173
for R being Relation
for X being set st R partially_orders X & field R = X & X has_upper_Zorn_property_wrt R holds
ex x being set st x is_maximal_in R
proof end;

theorem Th174: :: ORDERS_1:174
for R being Relation
for X being set st R partially_orders X & field R = X & X has_lower_Zorn_property_wrt R holds
ex x being set st x is_minimal_in R
proof end;

theorem Th175: :: ORDERS_1:175
for X being set st X <> {} & ( for Z being set st Z c= X & Z is c=-linear holds
ex Y being set st
( Y in X & ( for X1 being set st X1 in Z holds
X1 c= Y ) ) ) holds
ex Y being set st
( Y in X & ( for Z being set st Z in X & Z <> Y holds
not Y c= Z ) )
proof end;

theorem Th176: :: ORDERS_1:176
for X being set st X <> {} & ( for Z being set st Z c= X & Z is c=-linear holds
ex Y being set st
( Y in X & ( for X1 being set st X1 in Z holds
Y c= X1 ) ) ) holds
ex Y being set st
( Y in X & ( for Z being set st Z in X & Z <> Y holds
not Z c= Y ) )
proof end;

theorem Th177: :: ORDERS_1:177
for X being set st X <> {} & ( for Z being set st Z <> {} & Z c= X & Z is c=-linear holds
union Z in X ) holds
ex Y being set st
( Y in X & ( for Z being set st Z in X & Z <> Y holds
not Y c= Z ) )
proof end;

theorem Th178: :: ORDERS_1:178
for X being set st X <> {} & ( for Z being set st Z <> {} & Z c= X & Z is c=-linear holds
meet Z in X ) holds
ex Y being set st
( Y in X & ( for Z being set st Z in X & Z <> Y holds
not Z c= Y ) )
proof end;

scheme :: ORDERS_1:sch 222
s222{ F1() -> non empty set , P1[ set , set ] } :
ex x being Element of F1() st
for y being Element of F1() st x <> y holds
not P1[x,y]
provided
E18: for x being Element of F1() holds P1[x,x] and
E19: for x, y being Element of F1() st P1[x,y] & P1[y,x] holds
x = y and
E20: for x, y, z being Element of F1() st P1[x,y] & P1[y,z] holds
P1[x,z] and
E24: for X being set st X c= F1() & ( for x, y being Element of F1() st x in X & y in X & P1[x,y] holds
P1[y,x] ) holds
ex y being Element of F1() st
for x being Element of F1() st x in X holds
P1[x,y]
proof end;

scheme :: ORDERS_1:sch 223
s223{ F1() -> non empty set , P1[ set , set ] } :
ex x being Element of F1() st
for y being Element of F1() st x <> y holds
not P1[y,x]
provided
E18: for x being Element of F1() holds P1[x,x] and
E19: for x, y being Element of F1() st P1[x,y] & P1[y,x] holds
x = y and
E20: for x, y, z being Element of F1() st P1[x,y] & P1[y,z] holds
P1[x,z] and
E24: for X being set st X c= F1() & ( for x, y being Element of F1() st x in X & y in X & P1[x,y] holds
P1[y,x] ) holds
ex y being Element of F1() st
for x being Element of F1() st x in X holds
P1[y,x]
proof end;

theorem Th179: :: ORDERS_1:179
for R being Relation
for X being set st R partially_orders X & field R = X holds
ex P being Relation st
( R c= P & P linearly_orders X & field P = X )
proof end;

theorem Th180: :: ORDERS_1:180
for R being Relation holds R c= [:(field R),(field R):] by Lemma17;

theorem Th181: :: ORDERS_1:181
for R being Relation
for X being set st R is reflexive & X c= field R holds
field (R |_2 X) = X by ;

theorem Th182: :: ORDERS_1:182
for R being Relation
for X being set st R is_reflexive_in X holds
R |_2 X is reflexive by ;

theorem Th183: :: ORDERS_1:183
for R being Relation
for X being set st R is_transitive_in X holds
R |_2 X is transitive by ;

theorem Th184: :: ORDERS_1:184
for R being Relation
for X being set st R is_antisymmetric_in X holds
R |_2 X is antisymmetric by ;

theorem Th185: :: ORDERS_1:185
for R being Relation
for X being set st R is_connected_in X holds
R |_2 X is connected by ;

theorem Th186: :: ORDERS_1:186
for R being Relation
for X, Y being set st R is_connected_in X & Y c= X holds
R is_connected_in Y by ;

theorem Th187: :: ORDERS_1:187
for R being Relation
for X, Y being set st R well_orders X & Y c= X holds
R well_orders Y by ;

theorem Th188: :: ORDERS_1:188
for R being Relation st R is connected holds
R ~ is connected by ;

theorem Th189: :: ORDERS_1:189
for R being Relation
for X being set st R is_reflexive_in X holds
R ~ is_reflexive_in X by ;

theorem Th190: :: ORDERS_1:190
for R being Relation
for X being set st R is_transitive_in X holds
R ~ is_transitive_in X by ;

theorem Th191: :: ORDERS_1:191
for R being Relation
for X being set st R is_antisymmetric_in X holds
R ~ is_antisymmetric_in X by ;

theorem Th192: :: ORDERS_1:192
for R being Relation
for X being set st R is_connected_in X holds
R ~ is_connected_in X by ;

theorem Th193: :: ORDERS_1:193
for R being Relation
for X being set holds (R |_2 X) ~ = (R ~ ) |_2 X by ;

theorem Th194: :: ORDERS_1:194
for R being Relation holds R |_2 {} = {} by ;

theorem Th195: :: ORDERS_1:195
for f being Function
for Z being set st Z is finite & Z c= rng f holds
ex Y being set st
( Y c= dom f & Y is finite & f .: Y = Z )
proof end;

theorem Th196: :: ORDERS_1:196
for R being Relation st field R is finite holds
R is finite
proof end;

theorem Th197: :: ORDERS_1:197
for R being Relation st dom R is finite & rng R is finite holds
R is finite
proof end;