let A be FinSequence; :: thesis: ( A is ascending iff for n, m being Nat st n <= m & n in dom A & m in dom A holds
A . n c= A . m )

thus ( A is ascending implies for n, m being Nat st n <= m & n in dom A & m in dom A holds
A . n c= A . m ) :: thesis: ( ( for n, m being Nat st n <= m & n in dom A & m in dom A holds
A . n c= A . m ) implies A is ascending )
proof
defpred S1[ Nat] means for n being Nat st n <= $1 & n in dom A & $1 in dom A holds
A . n c= A . $1;
assume A1: A is ascending ; :: thesis: for n, m being Nat st n <= m & n in dom A & m in dom A holds
A . n c= A . m

A2: for m being Nat st S1[m] holds
S1[m + 1]
proof
let m be Nat; :: thesis: ( S1[m] implies S1[m + 1] )
assume A3: S1[m] ; :: thesis: S1[m + 1]
let n be Nat; :: thesis: ( n <= m + 1 & n in dom A & m + 1 in dom A implies A . n c= A . (m + 1) )
assume that
A4: n <= m + 1 and
A5: n in dom A and
A6: m + 1 in dom A ; :: thesis: A . n c= A . (m + 1)
now :: thesis: ( ( n = m + 1 & A . n c= A . (m + 1) ) or ( n <> m + 1 & A . n c= A . (m + 1) ) )
per cases ( n = m + 1 or n <> m + 1 ) ;
case n = m + 1 ; :: thesis: A . n c= A . (m + 1)
hence A . n c= A . (m + 1) ; :: thesis: verum
end;
end;
end;
hence A . n c= A . (m + 1) ; :: thesis: verum
end;
let n, m be Nat; :: thesis: ( n <= m & n in dom A & m in dom A implies A . n c= A . m )
assume A11: ( n <= m & n in dom A & m in dom A ) ; :: thesis: A . n c= A . m
A12: S1[ 0 ] ;
for m being Nat holds S1[m] from NAT_1:sch 2(A12, A2);
hence A . n c= A . m by A11; :: thesis: verum
end;
assume A13: for n, m being Nat st n <= m & n in dom A & m in dom A holds
A . n c= A . m ; :: thesis: A is ascending
let n be Nat; :: according to REARRAN1:def 2 :: thesis: ( 1 <= n & n <= (len A) - 1 implies A . n c= A . (n + 1) )
assume that
A14: 1 <= n and
A15: n <= (len A) - 1 ; :: thesis: A . n c= A . (n + 1)
A16: n + 1 <= len A by A15, XREAL_1:19;
n <= n + 1 by NAT_1:11;
then n <= len A by A16, XXREAL_0:2;
then A17: n in dom A by A14, FINSEQ_3:25;
1 <= n + 1 by NAT_1:11;
then n + 1 in dom A by A16, FINSEQ_3:25;
hence A . n c= A . (n + 1) by A13, A17, NAT_1:11; :: thesis: verum