Source context

Rust library

NEG_INFINITY

This is Rust standard-library source from the compiler version used in the run.

512     pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;513     /// Negative infinity (−∞).514     #[stable(feature = "assoc_int_consts", since = "1.43.0")]515     pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;516 517     /// Maximum integer that can be represented exactly in an [`f64`] value,518     /// with no other integer converting to the same floating point value.

Aeneas declaration

Aeneas generated this declaration for a Rust library operation. Any authored model recorded for this operation is shown below.

@[rust_const "core::f64::{f64}::NEG_INFINITY"]
axiom core.f64.F64.NEG_INFINITY : Result F64

Authored Lean model

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

Why this model is faithful

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64NegInfinity]
def ModelF64NegInfinity : Result F64 :=
-- BODY
  Binary64ModelDefault.negInfinity
end dec2flt_model
Source details
Declarationcore.f64.F64.NEG_INFINITY
File/rustc/library/core/src/num/f64.rs
Lines515:4–515:31
Program versionPreparation 2