let h be real-valued FinSequence; ( h is increasing implies for i, j being Nat st i < j & 1 <= i & j <= len h holds
h . i < h . j )
assume A1:
h is increasing
; for i, j being Nat st i < j & 1 <= i & j <= len h holds
h . i < h . j
let i, j be Nat; ( i < j & 1 <= i & j <= len h implies h . i < h . j )
assume that
A2:
i < j
and
A3:
1 <= i
and
A4:
j <= len h
; h . i < h . j
defpred S1[ Nat] means ( (i + 1) + $1 <= len h implies h . i < h . ((i + 1) + $1) );
A5:
for k being Nat st S1[k] holds
S1[k + 1]
proof
let k be
Nat;
( S1[k] implies S1[k + 1] )
assume A6:
S1[
k]
;
S1[k + 1]
(
(i + 1) + (k + 1) <= len h implies
h . i < h . ((i + 1) + (k + 1)) )
hence
S1[
k + 1]
;
verum
end;
i < len h
by A2, A4, XXREAL_0:2;
then A11:
S1[ 0 ]
by A1, A3, Def1;
for k being Nat holds S1[k]
from NAT_1:sch 2(A11, A5);
then A12:
( (i + 1) + (j -' (i + 1)) <= len h implies h . i < h . ((i + 1) + (j -' (i + 1))) )
;
i + 1 <= j
by A2, NAT_1:13;
then
j -' (i + 1) = j - (i + 1)
by XREAL_1:235;
hence
h . i < h . j
by A4, A12; verum