Source context

Program Rust

NEG_INFINITY

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

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 the193     // upstream canonical NaN.  This avoids Aeneas's unsupported float unop

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

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

NEG_INFINITY · Rust library

Source details
DeclarationF16.Insts.Dec2flt_modelNumImpTraitsFloatU16.NEG_INFINITY
Filenum/imp/../../traits.rs
Lines190:4–190:50
Program versionPreparation 1