(*The sum of the first n odd numbers equals n squared.*) lemma sum_of_odds: "n \ nat \ sum (\i. i $+ i $+ #1, n) = $#n $* $#n" by (induct_tac "n", auto)
(*The sum of the first n odd squares*) lemma sum_of_odd_squares: "n \ nat \ #3 $* sum (\i. (i $+ i $+ #1) $* (i $+ i $+ #1), n) =
$#n $* (#4 $* $#n $* $#n $- #1)" by (induct_tac "n", auto)
(*The sum of the first n odd cubes*) lemma sum_of_odd_cubes: "n \ nat \<Longrightarrow> sum (\<lambda>i. (i $+ i $+ #1) $* (i $+ i $+ #1) $* (i $+ i $+ #1), n) =
$#n $* $#n $* (#2 $* $#n $* $#n $- #1)" by (induct_tac "n", auto)
(*The sum of the first n positive integers equals n(n+1)/2.*) lemma sum_of_naturals: "n \ nat \ #2 $* sum(\i. i, succ(n)) = $#n $* $#succ(n)" by (induct_tac "n", auto)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.