![]() | ![]() | ![]() | Writing correct recursive definitions of functions - Again | Documentation and user's manual | Table of contents | OCaml programs |
|
So, assume there exists a specification for f .
Then:
|
A specification for f says ... |
|
|
Proving partial correctness is usually more difficult than proving termination.
Here termination only will be considered. However there will be no proof. Rules to ensure termination are given below. |
For each value x write f (x) as an expression e such that:
|
![]() | ![]() | ![]() | Writing correct recursive definitions of functions - Again | Documentation and user's manual | Table of contents | OCaml programs |