Program Rust
INFINITY
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
186 impl Float for f16 {187 type Int = u16;188 189 const INFINITY: Self = Self::INFINITY;190 const NEG_INFINITY: Self = Self::NEG_INFINITY;191 const NAN: Self = Self::NAN;192 // `from_bits` produces exactly the bit pattern obtained by negating theAeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def F16.Insts.Dec2flt_modelNumImpTraitsFloatU16.INFINITY : Result F16 :=
core.f16.F16.INFINITYOperations used here
Source details
| Declaration | F16.Insts.Dec2flt_modelNumImpTraitsFloatU16.INFINITY |
|---|---|
| File | num/imp/../../traits.rs |
| Lines | 189:4–189:42 |
| Program version | Preparation 1 |