Check that the certified input natural is valid for being slot leader. This
means we check that
p < 1 - (1 - f)^σ
where p = certNat / certNatMax.
The calculation is done using the following optimization:
let q = 1 - p and c = ln(1 - f)
then p < 1 - (1 - f)^σ
= 1 / (1 - p) < exp(-σ * c)
= 1 / q < exp(-σ * c)
This can be efficiently be computed by taylorExpCmp which returns ABOVE
in case the reference value `1 / (1 - p)` is above the exponential function
at `-σ * c`, BELOW if it is below or MaxReached if it couldn't
conclusively compute this within the given iteration bounds.
Note that 1 1 1 certNatMax
--- = ----- = ---------------------------- = ----------------------
q 1 - p 1 - (certNat / certNatMax) (certNatMax - certNat)