pub enum TermProof {
PRule {
rule_name: Rc<str>,
subst: DenseIdMap<VariableId, TermId>,
body_pfs: Vec<Premise>,
result: TermId,
},
PProj {
pf_f_args_ok: TermProofId,
arg_idx: usize,
},
PCong(CongProof),
PFiat {
desc: Rc<str>,
term: TermId,
},
}Variants§
PRule
proves a Proposition based on a rule application the subsitution gives the mapping from variables to terms the body_pfs gives proofs for each of the conditions in the query of the rule the act_pf gives a location in the action of the proposition
Fields
§
subst: DenseIdMap<VariableId, TermId>PProj
get a proof for the child of a term given a proof of a term
PCong(CongProof)
PFiat
Trait Implementations§
impl Eq for TermProof
impl StructuralPartialEq for TermProof
Auto Trait Implementations§
impl Freeze for TermProof
impl RefUnwindSafe for TermProof
impl !Send for TermProof
impl !Sync for TermProof
impl Unpin for TermProof
impl UnwindSafe for TermProof
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
Converts
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>
Converts
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