TorchLean API

NN.Widgets.Numerics.Float32

Float32 #

Float32 viewer widget (executable IEEE-754 backend).

Commands:

These widgets are meant for debugging/teaching, not for proof scripts.

Main definitions #

Implementation notes #

References #

Tags #

float32, ieee754, rounding, bits, proofwidgets

Render exactly width low-order bits of n as a binary string.

Instances For

    Classify an IEEE32 value into normal/subnormal/zero/inf/nan variants.

    Instances For

      Render an executable float32 (IEEE32Exec) as HTML.

      Instances For
        @[implicit_reducible]

        Element renderer for IEEE32Exec used by #tensor_view.

        Renders the float value, with a tooltip that includes a small classification and the raw bit pattern.

        Compare two IEEE32Exec values at the bit level and render the results as HTML.

        Instances For

          Show how a Lean Float (binary64) rounds to an executable float32 (IEEE32Exec, binary32).

          Instances For

            Commands #