let p be FinSequence; :: thesis: ( ( for n, m being Element of NAT st 1 <= n & n < m & m <= len p holds
p . n <> p . m ) iff p is one-to-one )
assume A6:
p is one-to-one
; :: thesis: for n, m being Element of NAT st 1 <= n & n < m & m <= len p holds
p . n <> p . m
let n, m be Element of NAT ; :: thesis: ( 1 <= n & n < m & m <= len p implies p . n <> p . m )
assume A7:
( 1 <= n & n < m & m <= len p )
; :: thesis: p . n <> p . m
assume A8:
p . n = p . m
; :: thesis: contradiction
n <= len p
by A7, XXREAL_0:2;
then A9:
n in dom p
by A7, FINSEQ_3:27;
1 <= m
by A7, XXREAL_0:2;
then
m in dom p
by A7, FINSEQ_3:27;
hence
contradiction
by A6, A7, A8, A9, FUNCT_1:def 8; :: thesis: verum