min4/max4 real semantics (finite regime) #
NN/Floats/Interval/IEEEExec32.lean exposes helper combinators:
IEEE32Exec.Interval32.min4IEEE32Exec.Interval32.max4
used to implement the classical 4-corner multiplication enclosure rule.
This file provides small lemmas that compute the toReal semantics of these helpers when all
arguments are finite.
These lemmas are intended as building blocks for a larger Interval32.mul soundness theorem.
theorem
TorchLean.Floats.IEEE754.IEEE32Exec.Interval32.toReal_min4_eq_min_of_isFinite
(a b c d : IEEE32Exec)
(ha : a.isFinite = true)
(hb : b.isFinite = true)
(hc : c.isFinite = true)
(hd : d.isFinite = true)
:
Real semantics of Interval32.min4 in the finite regime.
If all four arguments are finite, then toReal (min4 a b c d) is the corresponding nested min
of the four real values.
theorem
TorchLean.Floats.IEEE754.IEEE32Exec.Interval32.toReal_max4_eq_max_of_isFinite
(a b c d : IEEE32Exec)
(ha : a.isFinite = true)
(hb : b.isFinite = true)
(hc : c.isFinite = true)
(hd : d.isFinite = true)
:
Real semantics of Interval32.max4 in the finite regime.
If all four arguments are finite, then toReal (max4 a b c d) is the corresponding nested max
of the four real values.