pub struct UntranslatedGoal {
pub givens: Vec<(String, String)>,
pub premises: Vec<Spanned<Expr>>,
pub claim: (Spanned<Expr>, Spanned<Expr>),
}Expand description
A goal un-translated back to Aver-space: the ∀-binders split into data
GIVENS (name + Aver type name) and PROP premises (surviving hypotheses, e.g.
an induction hypothesis, rendered as Aver Bool expressions for when),
plus the equality CLAIM (lhs, rhs).
Fields§
§givens: Vec<(String, String)>(binder name, Aver type name) for each data ∀-binder — the law’s
givens.
premises: Vec<Spanned<Expr>>Surviving hypothesis binders as Aver Bool expressions — the law’s
when premises.
claim: (Spanned<Expr>, Spanned<Expr>)The equality claim (lhs, rhs).
Trait Implementations§
Source§impl Clone for UntranslatedGoal
impl Clone for UntranslatedGoal
Source§fn clone(&self) -> UntranslatedGoal
fn clone(&self) -> UntranslatedGoal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UntranslatedGoal
impl RefUnwindSafe for UntranslatedGoal
impl Send for UntranslatedGoal
impl Sync for UntranslatedGoal
impl Unpin for UntranslatedGoal
impl UnsafeUnpin for UntranslatedGoal
impl UnwindSafe for UntranslatedGoal
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