defpred S1[ object , object ] means ex k being Nat st
( $1 = k & $2 = k + 1 );
Lm1:
for n being Nat holds Seg n,n are_equipotent
Lm2:
for D being set
for f being FinSequence of D holds f is PartFunc of NAT,D
Lm3:
for q being FinSequence holds
( q = {} iff len q = 0 )
;
Lm4:
for x, y, x1, y1 being object 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;
definition
let R be
Relation;
existence
ex b1 being Relation st
for x, y being object 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 object 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 object 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 *
Lm5:
for n being Nat
for x being object st x in Seg n holds
not not x = 1 & ... & not x = n
theorem
for
a,
b,
c,
d,
e,
f being
object st
<*a,b,c*> = <*d,e,f*> holds
(
a = d &
b = e &
c = f )
Lm6:
for p being FinSubsequence st Seq p = {} holds
p = {}
theorem
for
x1,
x2,
y1,
y2 being
set holds
( not
{[x1,y1],[x2,y2]} is
FinSequence or (
x1 = 1 &
x2 = 1 &
y1 = y2 ) or (
x1 = 1 &
x2 = 2 ) or (
x1 = 2 &
x2 = 1 ) )