pub struct LemmaPattern {
pub rule: String,
pub num_premises: usize,
pub variables: Vec<String>,
pub structure: PatternStructure,
pub frequency: usize,
pub avg_depth: f64,
}Expand description
A pattern extracted from a lemma or proof fragment.
Fields§
§rule: StringThe inference rule used
num_premises: usizeNumber of premises
variables: Vec<String>Variables in the pattern (abstracted)
structure: PatternStructurePattern structure (simplified AST)
frequency: usizeFrequency of this pattern in the proof corpus
avg_depth: f64Average depth where this pattern appears
Trait Implementations§
Source§impl Clone for LemmaPattern
impl Clone for LemmaPattern
Source§fn clone(&self) -> LemmaPattern
fn clone(&self) -> LemmaPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LemmaPattern
impl Debug for LemmaPattern
Source§impl PartialEq for LemmaPattern
impl PartialEq for LemmaPattern
impl StructuralPartialEq for LemmaPattern
Auto Trait Implementations§
impl Freeze for LemmaPattern
impl RefUnwindSafe for LemmaPattern
impl Send for LemmaPattern
impl Sync for LemmaPattern
impl Unpin for LemmaPattern
impl UnsafeUnpin for LemmaPattern
impl UnwindSafe for LemmaPattern
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