Source context

Program Rust

default

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

98     const SIG_MASK: Self::Int;99 100     /// The number of bits in the significand, *excluding* the hidden bit.101     const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;102 103     /// Number of bits in the exponent.104     const EXP_BITS: u32 = Self::BITS - Self::SIG_BITS - 1;

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

@[global_simps, irreducible, trait_default]
def num.imp.traits.Float.SIG_BITS.default {Self : Type} {Clause0_Int : Type}
  (FloatInst : num.imp.traits.Float Self Clause0_Int) : Result Std.U32 := do
  let i ← FloatInst.SIG_TOTAL_BITS
  i - 1#u32
Operations used here

Float · Program Rust

Source details
Declarationnum.imp.traits.Float.SIG_BITS.default
Filenum/imp/../../traits.rs
Lines101:4–101:51
Program versionOriginal program