Arithmetic enclosures for executable binary intervals #
Read this module after IntervalSemantics.Order for the proofs behind negation, addition,
subtraction, multiplication, division, and reciprocal. The four-corner arguments for products and
quotients are kept with the operations that consume them. IntervalSemantics.Finite supplies the
separate range-checked results for all-words-finite encodings.
IEEE binary arithmetic starts with finite valid inputs and encloses exact real results in EReal,
allowing overflow at the output. Negation also accepts infinite input endpoints. The validity
theorems explain which results can be passed to later interval operations; division through zero
and indeterminate candidate bounds use the whole interval.
Interval.Arithmetic contains the executable definitions. IntervalSemantics.Activations builds
ReLU, absolute-value, and square-root enclosures on the results here.
Exact negation #
The negated interval encloses each negated real member, including with infinite endpoints.
Negation preserves ordered, non-NaN endpoints in every format.
Interval negation encloses the negation of every represented real value.
Addition #
Outward-rounded interval addition encloses every sum of represented real values.
Outward-rounded addition always returns ordered IEEE bounds without NaNs.
Subtraction #
Outward-rounded interval subtraction encloses every represented real difference.
Outward-rounded subtraction always returns ordered IEEE bounds without NaNs.
Four-corner enclosures #
The checked four-corner enclosure contains every real bracketed by the exact corner values.
The corner operations down and up are applied to the endpoints of A and B. Each downward
corner must lie below, and each upward corner above, the exact value f of the corresponding
decoded endpoints, and neither may be a NaN. The bound hypotheses receive finiteness of both
arguments and the identity of the right endpoint, so operations with a side condition on the right
operand, such as a nonzero divisor, can discharge it per endpoint.
Four-corner multiplication #
Outward-rounded interval multiplication encloses every represented real product.
Outward-rounded multiplication always returns ordered IEEE bounds without NaNs.
Division and reciprocal #
Outward-rounded interval division encloses every represented real quotient.
The theorem is total in the denominator: when B contains zero the result is whole fmt, which
encloses every real, and otherwise the four directed corner quotients bracket x / y. Both
intervals must be Valid (finite ordered endpoints) because the directed division kernels are
specified only on finite operands; an extended version with infinite endpoints would need
directed-division semantics for infinite arguments, which the library does not provide.
Outward-rounded division always returns ordered IEEE bounds without NaNs.