author | paulson |
Tue, 23 May 2000 12:32:24 +0200 | |
changeset 8929 | 4829556a56f8 |
parent 8928 | 1d3bf47a4ecc |
child 8930 | cb419b8498e5 |
src/HOL/Arith.thy | file | annotate | diff | comparison | revisions |
--- a/src/HOL/Arith.thy Tue May 23 12:31:38 2000 +0200 +++ b/src/HOL/Arith.thy Tue May 23 12:32:24 2000 +0200 @@ -26,4 +26,11 @@ mult_0 "0 * n = 0" mult_Suc "Suc m * n = n + (m * n)" +(*We overload the constant for all + types, but unfortunately there's no + overloaded 0...*) +consts sum_below :: [nat=>'a, nat] => ('a::plus) +primrec + sum_below_0 "sum_below f 0 = 0" + sum_below_Suc "sum_below f (Suc n) = f(n) + sum_below f n" + end