Source context

Rust library

mul

This is Rust standard-library source from the compiler version used in the run.

347             #[inline]348             #[track_caller]349             #[rustc_inherit_overflow_checks]350             fn mul(self, other: $t) -> $t { self * other }351         }352 353         forward_ref_binop! { impl Mul, mul 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::Mul<f64, f64, f64>}::mul"]
axiom F64.Insts.CoreOpsArithMulF64F64.mul : F64 โ†’ F64 โ†’ Result F64

Authored Lean model

Trellis authored this Lean model for an operation outside the mechanical extraction. Modeling choices explains its behavior and review.

Why this model is faithful

import Tablet.Binary64ModelDefault
open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false
namespace dec2flt_model
-- [TABLET NODE: ModelF64Mul]
def ModelF64Mul : F64 -> F64 -> Result F64 :=
-- BODY
  Binary64ModelDefault.mul
end dec2flt_model
Source details
DeclarationF64.Insts.CoreOpsArithMulF64F64.mul
File/rustc/library/core/src/ops/arith.rs
Lines350:12โ€“350:41
Program versionOriginal program