Program Rust
default
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
96 const SIG_MASK: Self::Int;97 98 /// The number of bits in the significand, *excluding* the hidden bit.99 const SIG_BITS: u32 = Self::SIG_TOTAL_BITS - 1;100 101 /// Number of bits in the exponent.102 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#u32Operations used here
Source details
| Declaration | num.imp.traits.Float.SIG_BITS.default |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 99:4–99:51 |
| Program version | Preparation 1 |