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#u32Operations used here
Source details
| Declaration | num.imp.traits.Float.SIG_BITS.default |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 101:4–101:51 |
| Program version | Preparation 2 |