doc-src/Tutorial/Recdef/ack
author wenzelm
Fri, 21 May 2004 21:26:19 +0200
changeset 14790 0d984ee030a1
parent 9255 2ceb11a2e190
permissions -rw-r--r--
major cleanup of tsig datastructures and extend/merge operations; fixes old bugs in classes/arities code; proper treatment of nonterminals and syntax-only types;

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))"