pub struct ProofState {
pub goals: Vec<String>,
pub applied_tactics: Vec<String>,
pub budget: usize,
}Expand description
Current state of a proof search.
Fields§
§goals: Vec<String>Remaining goals as formula strings.
applied_tactics: Vec<String>Tactics applied so far.
budget: usizeRemaining computational budget (steps).
Implementations§
Source§impl ProofState
impl ProofState
Sourcepub fn new(goal: impl Into<String>, budget: usize) -> Self
pub fn new(goal: impl Into<String>, budget: usize) -> Self
Create a proof state with a single goal and a budget.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns true if all goals have been discharged.
Sourcepub fn apply_tactic(&mut self, tactic: impl Into<String>) -> bool
pub fn apply_tactic(&mut self, tactic: impl Into<String>) -> bool
Apply a tactic name: removes the first goal and decrements budget.
Trait Implementations§
Source§impl Clone for ProofState
impl Clone for ProofState
Source§fn clone(&self) -> ProofState
fn clone(&self) -> ProofState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProofState
impl RefUnwindSafe for ProofState
impl Send for ProofState
impl Sync for ProofState
impl Unpin for ProofState
impl UnsafeUnpin for ProofState
impl UnwindSafe for ProofState
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