pub struct HoareLogic {
pub axiom_names: Vec<String>,
}Expand description
Hoare logic system with proof-theoretic API.
Fields§
§axiom_names: Vec<String>Implementations§
Source§impl HoareLogic
impl HoareLogic
pub fn new() -> Self
Sourcepub fn axioms(&self) -> Vec<(&str, &str)>
pub fn axioms(&self) -> Vec<(&str, &str)>
Return all Hoare logic axioms as (name, description) pairs.
Sourcepub fn soundness_proof(&self) -> String
pub fn soundness_proof(&self) -> String
Return a description of the soundness proof for Hoare logic.
Sourcepub fn completeness_proof(&self) -> String
pub fn completeness_proof(&self) -> String
Return a description of the completeness proof (Cook’s theorem).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HoareLogic
impl RefUnwindSafe for HoareLogic
impl Send for HoareLogic
impl Sync for HoareLogic
impl Unpin for HoareLogic
impl UnsafeUnpin for HoareLogic
impl UnwindSafe for HoareLogic
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
Mutably borrows from an owned value. Read more