pub struct Context<S: Store> { /* private fields */ }
Implementations§
Source§impl<S: Store> Context<S>
impl<S: Store> Context<S>
pub fn proof_stack(&self) -> &Stack
pub fn proof_heap(&self) -> &Heap
pub fn unify_stack(&self) -> &Stack
pub fn unify_heap(&self) -> &Heap
pub fn store(&self) -> &S
pub fn hyp_stack(&self) -> &Stack
pub fn clear_except_store(&mut self)
pub fn binder_check<T: Table>( table: &T, ty: &T::Var, current_sort: u8, bv: &mut u64, ) -> KResult
pub fn allocate_binders<T: Table<Var = S::Var>>( &mut self, table: &T, current_sort: u8, binders: &[T::Var], ) -> KResult
Trait Implementations§
Source§impl<S: Ord + Store> Ord for Context<S>
impl<S: Ord + Store> Ord for Context<S>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<S: PartialOrd + Store> PartialOrd for Context<S>
impl<S: PartialOrd + Store> PartialOrd for Context<S>
Source§impl<T, S: Store> Proof<T> for Context<S>
impl<T, S: Store> Proof<T> for Context<S>
fn end(&mut self) -> KResult
fn reference(&mut self, idx: u32) -> KResult
fn dummy(&mut self, table: &T, sort: u32, current_sort: u32) -> KResult
fn term( &mut self, table: &T, idx: u32, current_term: u32, save: bool, def: bool, ) -> KResult
fn theorem(&mut self, table: &T, idx: u32, save: bool) -> KResult
fn theorem_start( &mut self, table: &T, idx: u32, current_theorem: u32, save: bool, ) -> KResult<(Stepper, Ptr, bool)>
fn theorem_end(&mut self, target: Ptr, save: bool) -> KResult
fn hyp(&mut self, table: &T) -> KResult
fn conv(&mut self) -> KResult
fn refl(&mut self) -> KResult
fn symm(&mut self) -> KResult
fn cong(&mut self) -> KResult
fn unfold_start(&mut self, table: &T) -> KResult<(Stepper, Ptr, Ptr)>
fn unfold_end(&mut self, t_ptr: Ptr, e: Ptr) -> KResult
fn unfold(&mut self, table: &T) -> KResult
fn conv_cut(&mut self) -> KResult
fn conv_ref(&mut self, idx: u32) -> KResult
fn conv_save(&mut self) -> KResult
fn save(&mut self) -> KResult
fn execute( &mut self, table: &T, state: &State, command: Command<Proof>, is_definition: bool, ) -> KResult<bool>
fn step( &mut self, table: &T, state: &State, command: Command<Proof>, is_definition: bool, ) -> KResult<Option<FinalizeState>>
Source§impl<S: Store> Unify for Context<S>
impl<S: Store> Unify for Context<S>
fn end(&mut self, mode: Mode) -> KResult
fn term(&mut self, idx: u32, save: bool) -> KResult
fn reference(&mut self, idx: u32) -> KResult
fn dummy(&mut self, sort: u32) -> KResult
fn hyp_thm(&mut self) -> KResult
fn hyp_thm_end(&mut self) -> KResult
fn execute(&mut self, command: Command<Unify>, mode: Mode) -> KResult<bool>
impl<S: Eq + Store> Eq for Context<S>
impl<S: Store> StructuralPartialEq for Context<S>
Auto Trait Implementations§
impl<S> Freeze for Context<S>where
S: Freeze,
impl<S> RefUnwindSafe for Context<S>where
S: RefUnwindSafe,
impl<S> Send for Context<S>where
S: Send,
impl<S> Sync for Context<S>where
S: Sync,
impl<S> Unpin for Context<S>where
S: Unpin,
impl<S> UnwindSafe for Context<S>where
S: UnwindSafe,
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