Rust library
neg
This is Rust standard-library source from the compiler version used in the run.
716 #[inline]717 #[track_caller]718 #[rustc_inherit_overflow_checks]719 fn neg(self) -> $t { -self }720 }721 722 forward_ref_unop! { impl Neg, neg for $t,Aeneas declaration
Aeneas generated this declaration for a Rust library operation. Any authored model recorded for this operation is shown below.
@[rust_fun "core::ops::arith::{core::ops::arith::Neg<f64, f64>}::neg"]
axiom F64.Insts.CoreOpsArithNegF64.neg : F64 → Result F64Authored Lean model
Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.
import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64Neg]
def ModelF64Neg : F64 -> Result F64 :=
-- BODY
Binary64ModelDefault.neg
end dec2flt_model
Source details
| Declaration | F64.Insts.CoreOpsArithNegF64.neg |
|---|---|
| File | /rustc/library/core/src/ops/arith.rs |
| Lines | 719:12–719:30 |
| Program version | Original program |