Daryl Stewart wrote:
> Hi Walid,
> 
> It's been a while since I touched HOL so I don't know if there are any 
> theorems about trunc/ceiling, but how about a measure like
> m(x) = nat(ceil(2x))
> 
> Then
> m(x) is nat(ceil(2x))
> m(x-1/2) is nat(ceil(2x-1))
> 
> Giving
> !x, ~(x<=0) ==> nat(ceil(2x-1)) < nat(ceil(2x))
> 
> 
> Just a guess, due to a new found interest in termination...

There are indeed floor and ceiling functions available, though currently 
they are only for

   :real -> num

We should define versions into the integers at some stage too (currently 
the theory of reals pretty well ignores :int).  The constants are 
defined in realTheory, and are accompanied by some theorems.

Michael.

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
hol-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hol-info

Reply via email to