begin
theorem Th1:
for
a,
b being
Nat holds
(
a in Seg b iff ( 1
<= a &
a <= b ) )
defpred S1[ set , set ] means ex k being Nat st
( $1 = k & $2 = k + 1 );
Lm1:
for n being Nat holds Seg n,n are_equipotent
Lm2:
for n being Nat holds card (Seg n) = card n
Lm3:
for D being set
for f being FinSequence of D holds f is PartFunc of NAT,D
Lm4:
for q being FinSequence holds
( q = {} iff len q = 0 )
;
Lm5:
for x, y, x1, y1 being set st [x,y] in {[x1,y1]} holds
( x = x1 & y = y1 )
definition
let X be
set ;
given k being
Nat such that A1:
X c= Seg k
;
existence
ex b1 being FinSequence of NAT st
( rng b1 = X & ( for l, m, k1, k2 being Nat st 1 <= l & l < m & m <= len b1 & k1 = b1 . l & k2 = b1 . m holds
k1 < k2 ) )
uniqueness
for b1, b2 being FinSequence of NAT st rng b1 = X & ( for l, m, k1, k2 being Nat st 1 <= l & l < m & m <= len b1 & k1 = b1 . l & k2 = b1 . m holds
k1 < k2 ) & rng b2 = X & ( for l, m, k1, k2 being Nat st 1 <= l & l < m & m <= len b2 & k1 = b2 . l & k2 = b2 . m holds
k1 < k2 ) holds
b1 = b2
end;
begin
begin
begin
definition
let R be
Relation;
existence
ex b1 being Relation st
for x, y being set holds
( [x,y] in b1 iff ( x in field R & y in field R & ex p being FinSequence st
( len p >= 1 & p . 1 = x & p . (len p) = y & ( for i being Nat st i >= 1 & i < len p holds
[(p . i),(p . (i + 1))] in R ) ) ) )
uniqueness
for b1, b2 being Relation st ( for x, y being set holds
( [x,y] in b1 iff ( x in field R & y in field R & ex p being FinSequence st
( len p >= 1 & p . 1 = x & p . (len p) = y & ( for i being Nat st i >= 1 & i < len p holds
[(p . i),(p . (i + 1))] in R ) ) ) ) ) & ( for x, y being set holds
( [x,y] in b2 iff ( x in field R & y in field R & ex p being FinSequence st
( len p >= 1 & p . 1 = x & p . (len p) = y & ( for i being Nat st i >= 1 & i < len p holds
[(p . i),(p . (i + 1))] in R ) ) ) ) ) holds
b1 = b2
end;
theorem
for
D1,
D2 being
set st
D1 c= D2 holds
D1 * c= D2 *
Lm6:
( 1 in Seg 3 & 2 in Seg 3 )
;
Lm7:
3 in Seg 3
;
Lm8:
( 1 in Seg 4 & 2 in Seg 4 )
;
Lm9:
( 3 in Seg 4 & 4 in Seg 4 )
;
Lm10:
( 1 in Seg 5 & 2 in Seg 5 )
;
Lm11:
( 3 in Seg 5 & 4 in Seg 5 )
;
Lm12:
5 in Seg 5
;
Lm13:
( 1 in Seg 6 & 2 in Seg 6 )
;
Lm14:
( 3 in Seg 6 & 4 in Seg 6 )
;
Lm15:
( 5 in Seg 6 & 6 in Seg 6 )
;
Lm16:
( 1 in Seg 7 & 2 in Seg 7 )
;
Lm17:
( 3 in Seg 7 & 4 in Seg 7 )
;
Lm18:
( 5 in Seg 7 & 6 in Seg 7 )
;
Lm19:
7 in Seg 7
;
Lm20:
( 1 in Seg 8 & 2 in Seg 8 )
;
Lm21:
( 3 in Seg 8 & 4 in Seg 8 )
;
Lm22:
( 5 in Seg 8 & 6 in Seg 8 )
;
Lm23:
( 7 in Seg 8 & 8 in Seg 8 )
;
theorem
for
a,
b,
c,
d,
e,
f being
set st
<*a,b,c*> = <*d,e,f*> holds
(
a = d &
b = e &
c = f )