TorchLean API

NN.Floats.IEEEExec.Notation

Notation for executable float32 semantics (IEEE32Exec) #

Mathlib tends to keep non-trivial notation scoped (see e.g. scoped[FinsetFamily] notation …), so downstream code can opt in with open scoped … rather than inheriting new syntax globally.

This file follows that pattern for TorchLean's executable IEEE-754 binary32 model:

open scoped IEEE754

-- constants:
∞₃₂        -- `IEEE32Exec.posInf`
-∞₃₂       -- `IEEE32Exec.negInf`
NaN₃₂      -- `IEEE32Exec.canonicalNaN`

-- decoding semantics:
⟦x⟧₃₂      -- `IEEE32Exec.toReal x`
⟦x⟧₃₂ᴱ     -- `IEEE32Exec.toEReal x`

The notation here is kept small: it targets readability in docs/proofs, not a full DSL.

Scoped constants #

+∞ as an executable binary32 constant.

Instances For

    -∞ as an executable binary32 constant.

    Instances For

      A canonical quiet NaN payload used by the executable kernel.

      Instances For

        Scoped decoding notation #

        Scoped notation for decoding an executable float32 to (via IEEE32Exec.toReal).

        Instances For

          Scoped notation for decoding an executable float32 to EReal (via IEEE32Exec.toEReal).

          Instances For