let k be Element of NAT ; ( k = len p iff Seg k = dom p )
consider n being Nat such that
A1:
dom p = Seg n
by Def2;
dom p,p are_equipotent
proof
deffunc H1(
set )
-> set =
[$1,(p . $1)];
consider g being
Function such that A2:
dom g = dom p
and A3:
for
x being
set st
x in dom p holds
g . x = H1(
x)
from FUNCT_1:sch 3();
take
g
;
WELLORD2:def 4 ( g is one-to-one & proj1 g = dom p & proj2 g = p )
thus
g is
one-to-one
( proj1 g = dom p & proj2 g = p )
thus
dom g = dom p
by A2;
proj2 g = p
thus
rng g c= p
XBOOLE_0:def 10 p c= proj2 g
let x,
y be
set ;
RELAT_1:def 3 ( not [x,y] in p or [x,y] in proj2 g )
assume A8:
[x,y] in p
;
[x,y] in proj2 g
then A9:
x in dom p
by FUNCT_1:1;
y = p . x
by A8, FUNCT_1:1;
then
g . x = [x,y]
by A3, A9;
hence
[x,y] in proj2 g
by A2, A9, FUNCT_1:def 3;
verum
end;
then A10:
card p = card (dom p)
by CARD_1:5;
thus
( k = card p implies Seg k = dom p )
( Seg k = dom p implies k = len p )
assume A11:
Seg k = dom p
; k = len p
thus k =
card k
by CARD_1:def 2
.=
card p
by A10, A11, Lm2
; verum