let s be Real_Sequence; :: thesis: ( ( for n being Element of NAT holds s . n = 2 * n ) implies for n being Element of NAT holds (Partial_Sums s) . n = n * (n + 1) )
assume A1: for n being Element of NAT holds s . n = 2 * n ; :: thesis: for n being Element of NAT holds (Partial_Sums s) . n = n * (n + 1)
defpred S1[ Element of NAT ] means (Partial_Sums s) . $1 = $1 * ($1 + 1);
(Partial_Sums s) . 0 = s . 0 by SERIES_1:def 1
.= 2 * 0 by A1
.= 0 * (0 + 1) ;
then A2: S1[ 0 ] ;
A3: for n being Element of NAT st S1[n] holds
S1[n + 1]
proof
let n be Element of NAT ; :: thesis: ( S1[n] implies S1[n + 1] )
assume (Partial_Sums s) . n = n * (n + 1) ; :: thesis: S1[n + 1]
then (Partial_Sums s) . (n + 1) = (n * (n + 1)) + (s . (n + 1)) by SERIES_1:def 1
.= (n * (n + 1)) + (2 * (n + 1)) by A1
.= (n + 2) * (n + 1) ;
hence S1[n + 1] ; :: thesis: verum
end;
for n being Element of NAT holds S1[n] from NAT_1:sch 1(A2, A3);
hence for n being Element of NAT holds (Partial_Sums s) . n = n * (n + 1) ; :: thesis: verum