TorchLean API

NN.Floats.IEEEExec.BridgeFP32.RoundDyadic

IEEE32Exec and FP32: Dyadic Rounder Correctness #

Signed zeros #

Both +0 and -0 decode to the real number 0.

IEEE-754 has signed zeros because they matter for some operations (notably division and some transcendentals). Our finite FP32 model treats them as equal at the real level, and the bridge lemmas in this file use this fact repeatedly.

@[simp]

+0 decodes to the real number 0.

@[simp]

-0 decodes to the real number 0.

Refinement theorem (finite/no-overflow): rounding an exact dyadic with the executable IEEE32 kernel agrees with the Flocq-style FP32 rounding-on- model.

The hypothesis isFinite (roundDyadicToIEEE32 d) = true rules out the overflow-to-±Inf branches.