pub struct VerusMonotoneProof { /* private fields */ }Expand description
A machine-checked proof of monotonicity, verified by Verus.
Created by the verus_proof_monotone_fold! macro, which generates the obligation
directly from the actual closure body: applying the aggregation to any accumulator
and any item must leave the accumulator greater than or equal to its previous
value, with respect to the accumulator type’s PartialOrd (the order used by
APIs such as Singleton::threshold_greater_or_equal). Users never write (and
cannot weaken) the assertion; they only declare the types involved and, optionally,
provide a proof script to help the SMT solver, which is itself checked by Verus.
When the crate is verified with cargo verus verify, Verus checks the obligation
(which also proves the closure body panic-free). Under normal compilation, the proof
is erased and this type simply marks the property as proven. This type only
implements MonotoneProof, so it cannot be used to fulfill a different property.
Trait Implementations§
Source§impl Default for VerusMonotoneProof
impl Default for VerusMonotoneProof
Source§impl MonotoneProof for VerusMonotoneProof
impl MonotoneProof for VerusMonotoneProof
Source§fn register_proof(&self, _expr: &Expr)
fn register_proof(&self, _expr: &Expr)
Auto Trait Implementations§
impl Forget for VerusMonotoneProof
impl Freeze for VerusMonotoneProof
impl Move for VerusMonotoneProof
impl RefUnwindSafe for VerusMonotoneProof
impl Send for VerusMonotoneProof
impl Sync for VerusMonotoneProof
impl Unpin for VerusMonotoneProof
impl UnsafeUnpin for VerusMonotoneProof
impl UnwindSafe for VerusMonotoneProof
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more