Can we define a recursive func for real. Following is what I got when
tried to define a recursive function that uses reals, the same func
worked for rat.
val F_defn = Hol_defn "F"
`F (x:real) = if x <= 0 then 0 else x + F(x - 0.5)`;
Exception raised at Parse.Term:
at line 116, character 53:
Record selection must have single id to right (possibly non-integer
numeric literal)
! Uncaught exception:
! HOL_ERR
-
- val F_defn = Hol_defn "F"
`F (x:rat) = if x <= 0 then 0 else x + F(x - 1/2)`;
> val F_defn =
HOL function definition (recursive)
Equation(s) :
[..] |- F x = (if x <= 0 then 0 else x + F (x - 1 / 2))
Induction :
[..] |- !P. (!x. (~(x <= 0) ==> P (x - 1 / 2)) ==> P x) ==> !v. P v
Termination conditions :
0. !x. ~(x <= 0) ==> R (x - 1 / 2) x
1. WF R : defn
Walid
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
hol-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hol-info