doc-src/Tutorial/Recdef/ack
author berghofe
Fri, 31 Aug 2001 16:29:18 +0200
changeset 11534 0494d0347f18
parent 9255 2ceb11a2e190
permissions -rw-r--r--
Proof of True_implies_equals is stored with "open" derivation to facilitate simplification of proof terms.

consts ack :: "nat*nat => nat"
recdef ack "measure(%m. m) <*lex*> measure(%n. n)"
  "ack(0,n)         = Suc n"
  "ack(Suc m,0)     = ack(m, 1)"
  "ack(Suc m,Suc n) = ack(m,ack(Suc m,n))"