Rust library
div
This is Rust standard-library source from the compiler version used in the run.
512 type Output = $t;513 514 #[inline]515 fn div(self, other: $t) -> $t { self / other }516 }517 518 forward_ref_binop! { impl Div, div for $t, $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::Div<f64, f64, f64>}::div"]
axiom F64.Insts.CoreOpsArithDivF64F64.div : F64 โ 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: ModelF64Div]
def ModelF64Div : F64 -> F64 -> Result F64 :=
-- BODY
Binary64ModelDefault.div
end dec2flt_model
Source details
| Declaration | F64.Insts.CoreOpsArithDivF64F64.div |
|---|---|
| File | /rustc/library/core/src/ops/arith.rs |
| Lines | 515:12โ515:41 |
| Program version | Original program |