pub struct ScriptedTheorem {
pub name: String,
pub premises: Vec<ProofExpr>,
pub goal: ProofExpr,
pub script: String,
pub cites: Vec<String>,
pub simp: bool,
}Expand description
One theorem of a scripted library: proved from its own premises plus the
conclusions of the theorems it cites, by running script to a kernel-checked
proof. The unit the prove_scripted_library driver discharges in citation order.
Fields§
§name: String§premises: Vec<ProofExpr>§goal: ProofExpr§script: StringAn English-esque proof script (see parse_script).
cites: Vec<String>Names of earlier theorems whose conclusions this proof relies on.
simp: bool[simp]-tagged: once proved, this conclusion joins the simp pool and
is in scope for every LATER theorem’s simp even without a citation.
Auto Trait Implementations§
impl Freeze for ScriptedTheorem
impl RefUnwindSafe for ScriptedTheorem
impl Send for ScriptedTheorem
impl Sync for ScriptedTheorem
impl Unpin for ScriptedTheorem
impl UnsafeUnpin for ScriptedTheorem
impl UnwindSafe for ScriptedTheorem
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