pub struct TheoremBlock<'a> {
pub name: String,
pub premises: Vec<&'a LogicExpr<'a>>,
pub premise_names: Vec<Option<String>>,
pub goal: &'a LogicExpr<'a>,
pub strategy: ProofStrategy,
}Expand description
A theorem block containing premises, goal, and proof strategy.
Fields§
§name: StringThe name of the theorem (e.g., “Socrates_Mortality”)
premises: Vec<&'a LogicExpr<'a>>Premises (Given statements) - logical expressions to assume true
premise_names: Vec<Option<String>>Optional names for the premises, parallel to premises. A Given (h): …
names that premise h, so a Proof: script can refer to it as cases h
rather than the positional hp0. None for an unnamed Given:.
goal: &'a LogicExpr<'a>The goal to prove (Prove statement)
strategy: ProofStrategyThe proof strategy to use
Trait Implementations§
Source§impl<'a> Clone for TheoremBlock<'a>
impl<'a> Clone for TheoremBlock<'a>
Source§fn clone(&self) -> TheoremBlock<'a>
fn clone(&self) -> TheoremBlock<'a>
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<'a> Freeze for TheoremBlock<'a>
impl<'a> RefUnwindSafe for TheoremBlock<'a>
impl<'a> Send for TheoremBlock<'a>
impl<'a> Sync for TheoremBlock<'a>
impl<'a> Unpin for TheoremBlock<'a>
impl<'a> UnsafeUnpin for TheoremBlock<'a>
impl<'a> UnwindSafe for TheoremBlock<'a>
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.