src/HOL/Integ/IntPower.thy
author berghofe
Mon, 22 Sep 2003 16:04:49 +0200
changeset 14194 8953b566dfed
parent 11868 56db9f3a6b3e
child 14259 79f7d3451b1e
permissions -rw-r--r--
Improved efficiency of code generated for functions int and nat.

(*  Title:	IntPower.thy
    ID:         $Id$
    Author:	Thomas M. Rasmussen
    Copyright	2000  University of Cambridge

Integer powers 
*)

IntPower = IntDiv + 

instance
  int :: {power}

primrec
  power_0   "p ^ 0 = 1"
  power_Suc "p ^ (Suc n) = (p::int) * (p ^ n)"

end