Struct trivial_kernel::context::Context [−][src]
Implementations
impl<S: Store> Context<S>
[src]
pub fn get_proof_stack(&self) -> &Stack
[src]
pub fn get_proof_heap(&self) -> &Heap
[src]
pub fn get_unify_stack(&self) -> &Stack
[src]
pub fn get_unify_heap(&self) -> &Heap
[src]
pub fn get_store(&self) -> &S
[src]
pub fn get_hyp_stack(&self) -> &Stack
[src]
pub fn clear_except_store(&mut self)
[src]
pub fn binder_check<T: Table>(
table: &T,
ty: &T::Var,
current_sort: u8,
bv: &mut u64
) -> KResult
[src]
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
[src]
&mut self,
table: &T,
current_sort: u8,
binders: &[T::Var]
) -> KResult
Trait Implementations
impl<S: Debug + Store> Debug for Context<S>
[src]
impl<S: Default + Store> Default for Context<S>
[src]
impl<S: Store> Display for Context<S>
[src]
impl<T, S: Store> Proof<T> for Context<S> where
T: Table<Var = S::Var>,
[src]
T: Table<Var = S::Var>,
fn end(&mut self) -> KResult
[src]
fn reference(&mut self, idx: u32) -> KResult
[src]
fn dummy(&mut self, table: &T, sort: u32, current_sort: u32) -> KResult
[src]
fn term(
&mut self,
table: &T,
idx: u32,
current_term: u32,
save: bool,
def: bool
) -> KResult
[src]
&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
[src]
fn theorem_start(
&mut self,
table: &T,
idx: u32,
current_theorem: u32,
save: bool
) -> KResult<(Stepper, Ptr, bool)>
[src]
&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
[src]
fn hyp(&mut self, table: &T) -> KResult
[src]
fn conv(&mut self) -> KResult
[src]
fn refl(&mut self) -> KResult
[src]
fn symm(&mut self) -> KResult
[src]
fn cong(&mut self) -> KResult
[src]
fn unfold_start(&mut self, table: &T) -> KResult<(Stepper, Ptr, Ptr)>
[src]
fn unfold_end(&mut self, t_ptr: Ptr, e: Ptr) -> KResult
[src]
fn unfold(&mut self, table: &T) -> KResult
[src]
fn conv_cut(&mut self) -> KResult
[src]
fn conv_ref(&mut self, idx: u32) -> KResult
[src]
fn conv_save(&mut self) -> KResult
[src]
fn save(&mut self) -> KResult
[src]
fn execute(
&mut self,
table: &T,
state: &State,
command: Command<Proof>,
is_definition: bool
) -> KResult<bool>
[src]
&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>>
[src]
&mut self,
table: &T,
state: &State,
command: Command<Proof>,
is_definition: bool
) -> KResult<Option<FinalizeState>>
impl<S: Store> Run<S> for Context<S>
[src]
fn run<T>(
&mut self,
stream: Range<usize>,
table: &T,
mode: Mode,
target: Ptr
) -> KResult where
T: Table<Var = S::Var>,
[src]
&mut self,
stream: Range<usize>,
table: &T,
mode: Mode,
target: Ptr
) -> KResult where
T: Table<Var = S::Var>,
impl<SS: Store> Run<SS> for Context<SS>
[src]
fn run<T: Table, S>(
&mut self,
state: &State,
table: &T,
is_definition: bool,
stream: S
) -> KResult where
T: Table<Var = SS::Var>,
S: IntoIterator,
S::Item: TryInto<Command<Proof>>,
[src]
&mut self,
state: &State,
table: &T,
is_definition: bool,
stream: S
) -> KResult where
T: Table<Var = SS::Var>,
S: IntoIterator,
S::Item: TryInto<Command<Proof>>,
impl<S: Store> Unify for Context<S>
[src]
fn end(&mut self, mode: Mode) -> KResult
[src]
fn term(&mut self, idx: u32, save: bool) -> KResult
[src]
fn reference(&mut self, idx: u32) -> KResult
[src]
fn dummy(&mut self, sort: u32) -> KResult
[src]
fn hyp_thm(&mut self) -> KResult
[src]
fn hyp_thm_end(&mut self) -> KResult
[src]
fn execute(&mut self, command: Command<Unify>, mode: Mode) -> KResult<bool>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for Context<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Context<S> where
S: Send,
S: Send,
impl<S> Sync for Context<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Context<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Context<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,