Source context

Program Rust

INFINITY

This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.

186 impl Float for f16 {187     type Int = u16;188 189     const INFINITY: Self = Self::INFINITY;190     const NEG_INFINITY: Self = Self::NEG_INFINITY;191     const NAN: Self = Self::NAN;192     // `from_bits` produces exactly the bit pattern obtained by negating the

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def F16.Insts.Dec2flt_modelNumImpTraitsFloatU16.INFINITY : Result F16 :=
  core.f16.F16.INFINITY
Operations used here

INFINITY · Rust library

Source details
DeclarationF16.Insts.Dec2flt_modelNumImpTraitsFloatU16.INFINITY
Filenum/imp/../../traits.rs
Lines189:4–189:42
Program versionPreparation 1