src/HOL/Complex/ex/Arithmetic_Series_Complex.thy
author kleing
Fri, 07 Apr 2006 12:48:10 +0200
changeset 19358 9cd12369e753
child 19469 958d2f2dd8d4
permissions -rw-r--r--
remame ASeries to Arithmetic_Series

(*  Title:      HOL/Complex/ex/Arithmetic_Series_Complex
    ID:         $Id$
    Author:     Benjamin Porter, 2006
*)


header {* Arithmetic Series for Reals *}

theory Arithmetic_Series_Complex
imports Complex_Main Arithmetic_Series
begin

lemma arith_series_real:
  "(2::real) * (\<Sum>i\<in>{..<n}. a + of_nat i * d) =
  of_nat n * (a + (a + of_nat(n - 1)*d))"
proof -
  have
    "((1::real) + 1) * (\<Sum>i\<in>{..<n}. a + of_nat(i)*d) =
    of_nat(n) * (a + (a + of_nat(n - 1)*d))"
    by (rule arith_series_general)
  thus ?thesis by simp
qed

end