Source context

Program Rust

INFINITY

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

309 impl Float for f64 {310     type Int = u64;311 312     const INFINITY: Self = Self::INFINITY;313     const NEG_INFINITY: Self = Self::NEG_INFINITY;314     const NAN: Self = Self::NAN;315     // Bit-identical to the upstream `-f64::NAN`, without the unsupported

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible]
def F64.Insts.Dec2flt_modelNumImpTraitsFloatU64.INFINITY : Result F64 :=
  core.f64.F64.INFINITY
Operations used here

INFINITY · Rust library

Source details
DeclarationF64.Insts.Dec2flt_modelNumImpTraitsFloatU64.INFINITY
Filenum/imp/../../traits.rs
Lines312:4–312:42
Program versionOriginal program