let p be FinSequence; for x being set st p is one-to-one & rng p = {x} holds
len p = 1
let x be set ; ( p is one-to-one & rng p = {x} implies len p = 1 )
assume that
A1:
p is one-to-one
and
A2:
rng p = {x}
; len p = 1
A3:
now given y1,
y2 being
set such that A4:
y1 in dom p
and A5:
y2 in dom p
and A6:
y1 <> y2
;
contradiction
p . y2 in rng p
by A5, FUNCT_1:def 3;
then A7:
p . y2 = x
by A2, TARSKI:def 1;
p . y1 in rng p
by A4, FUNCT_1:def 3;
then
p . y1 = x
by A2, TARSKI:def 1;
hence
contradiction
by A1, A4, A5, A6, A7, FUNCT_1:def 4;
verum end;
set y = the Element of dom p;
A8:
dom p <> {}
by A2, RELAT_1:42;
A9:
dom p = { the Element of dom p}
dom p = Seg (len p)
by FINSEQ_1:def 3;
hence
len p = 1
by A9, Th22; verum