TorchLean API

FloatLib.Floats.Formats.Posit.Configured

Configured posit ExecFloat values #

Import this module to use posits. The standard widths are Posit8, Posit16, Posit32, and Posit64, and any other width is selected by its total encoded width:

def x : Posit32 := 1.5
def y : ExecFloat.Posit (bits := 12) := 0.75

Every configured posit is an ordinary ExecFloat value, uses a statically selected carrier, and exposes its exact semantics through the common proof infrastructure.

Configured.Type owns the public type constructor, the modules below Configured.Storage own packed-carrier selection and codecs, and Configured.Plan.Dispatch installs certified operation backends. The value layer is split further:

Raw words are deliberately lower-level than ordinary numeric construction. They are for serialization, conformance vectors, and encoding proofs. Arithmetic clients should use numeric literals and the operation interface once the matching certified capability is imported.

References #