*To*: "cl-isabelle-users at lists.cam.ac.uk" <cl-isabelle-users at lists.cam.ac.uk>*Subject*: [isabelle] Code equations for "power"*From*: Manuel Eberl <eberlm at in.tum.de>*Date*: Fri, 8 Jan 2016 16:01:20 +0100*User-agent*: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

Hallo, I just noticed that the "power" function is exported as power :: forall a. (Power a) => a -> Nat -> a; power a n = (if equal_nat n zero_nat then one else times a (power a (minus_nat n one_nat)));

Cheers, Manuel

**Attachment:
MyPower.thy**

**Follow-Ups**:**Re: [isabelle] Code equations for "power"***From:*Andreas Lochbihler

- Previous by Date: [isabelle] Isabelle2016-RC0: font size of diamond symbol
- Next by Date: Re: [isabelle] Isabelle2016-RC0 - default output buffers
- Previous by Thread: Re: [isabelle] Isabelle2016-RC0: font size of diamond symbol
- Next by Thread: Re: [isabelle] Code equations for "power"
- Cl-isabelle-users January 2016 archives indexes sorted by: [ thread ] [ subject ] [ author ] [ date ]
- Cl-isabelle-users list archive Table of Contents
- More information about the Cl-isabelle-users mailing list