pub struct ProofGoal {
pub target: ProofExpr,
pub context: Vec<ProofExpr>,
}Expand description
The Goal State for the Backward Chainer.
Represents a “hole” in the proof that needs to be filled. During backward chaining, goals are decomposed into subgoals until they match known facts.
§Fields
target- What we are trying to provecontext- Local assumptions (e.g., antecedents of implications we’ve entered)
§See Also
BackwardChainer::prove- Takes a goal and produces a derivation treeDerivationTree- The result of successfully proving a goalProofExpr- The target type
Fields§
§target: ProofExprWhat we are trying to prove right now.
context: Vec<ProofExpr>The local assumptions available (e.g., inside an implication).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProofGoal
impl RefUnwindSafe for ProofGoal
impl Send for ProofGoal
impl Sync for ProofGoal
impl Unpin for ProofGoal
impl UnwindSafe for ProofGoal
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