src/HOL/ex/NatSum.thy
author clasohm
Fri, 01 Dec 1995 12:03:13 +0100
changeset 1376 92f83b9d17e1
parent 969 b051e2fc2e34
child 1476 608483c2122a
permissions -rw-r--r--
removed quotes from consts and syntax sections
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
969
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     1
(*  Title: 	HOL/ex/natsum.thy
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     2
    ID:         $Id$
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     3
    Author: 	Tobias Nipkow
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     4
    Copyright   1994 TU Muenchen
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     5
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     6
A summation operator. sum(f,n+1) is the sum of all f(i), i=0...n.
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     7
*)
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     8
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
     9
NatSum = Arith +
1376
92f83b9d17e1 removed quotes from consts and syntax sections
clasohm
parents: 969
diff changeset
    10
consts sum     :: [nat=>nat, nat] => nat
969
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
    11
rules  sum_0      "sum f 0 = 0"
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
    12
       sum_Suc    "sum f (Suc n) = f(n) + sum f n"
b051e2fc2e34 converted ex with curried function application
clasohm
parents:
diff changeset
    13
end