Skip to main content
The properties below apply to RSL 0.4. In the RSL 0.5 rating preview, the compiler checks expressions reached from the entry function. An unused helper can contain a type error and still pass. A successful 0.5 check also leaves work bounds, citation provenance and the ability of every live process state to reach an end act unverified. See the two-edition authoring guide for the checks to use when rewriting a rater.

RSL 0.4 properties

Check messages

This calculation divides by the difference of two inputs, each from 1 to 10:
divide/rater.rsl
The check works out the range of each value from the ranges of the inputs it reads. A guard such as if self.a != self.b then … else 0 removes the case, and the check then passes. The check is conservative. It tracks one range for each value, so it refuses some safe programs. A guard or a narrower input gives the check the fact it needs.

Proof sources

The checker itself is unproven. A failure that it misses stops that one rating with an error, in place of a premium.

Reviewer checks

The check proves what the program does. It leaves open whether the program follows its filing.
  • A reviewer reads each cited region and confirms the value or rule.
  • Independent rating examples confirm the premiums.
  • Premium, Rate, Factor and Pct name what a number is, and the check leaves unit arithmetic to the author.
  • Check messages explains each message, with a program that gets it and the fix.
  • Check guarantees in the language reference states the rule in one paragraph.
  • Test a rater compares a program with independent examples.