Source context

Program Rust

BiasedFp

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

49 // that implementation preserves the fields, computational derives, and every50 // algorithm operation independently of GOAL truth.51 #[derive(Copy, Clone, PartialEq, Eq, Default)]52 pub struct BiasedFp {53     /// The significant digits.54     pub m: u64,55     /// The biased, binary exponent.56     pub p_biased: i32,57 }58 59 impl BiasedFp {60     /// Represent `0 ^ p`

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

structure num.imp.dec2flt.common.BiasedFp where
  m : Std.U64
  p_biased : Std.I32
Source details
Declarationnum.imp.dec2flt.common.BiasedFp
Filenum/imp/../../dec2flt/common.rs
Lines52:0–57:1
Program versionOriginal program