pub struct WitnessDefinition {
pub name: String,
pub claim: String,
pub baseline: String,
pub metric: String,
pub threshold: f64,
pub data: String,
pub loc: Loc,
pub leading_trivia: Vec<Trivia>,
pub trailing_trivia: Vec<Trivia>,
}Expand description
§Fase 69.a — witness <Name> { claim: <ref> against: <baseline> metric: <metric> threshold: <ε> data: <source> }. The Advantage-Witness
proof obligation. The compiler proves it WELL-FORMED (§69.a, axon-E0790);
the advantage VALUE is computed on real data at deploy/runtime and carried
as a verdict (§69.b+). Fields are order-free key: value pairs.
Fields§
§name: String§claim: StringThe primitive instance whose advantage is claimed (e.g. an observable /
corpus name, or a quant kernel reference).
baseline: StringThe cheaper alternative the claim must beat (a closed-catalog baseline
like cosine / flat_retrieval / single_shot, or a reference).
metric: StringHow advantage is measured — a closed-catalog metric (geometric_difference,
kernel_target_alignment, ranking_lift, outcome_lift).
threshold: f64The minimum advantage that justifies the cost (ε ≥ 0).
data: StringThe real-data source the witness is evaluated on (a ref to an axonstore / corpus / labelled set). Required — advantage cannot be claimed in the abstract.
loc: Loc§leading_trivia: Vec<Trivia>§trailing_trivia: Vec<Trivia>Trait Implementations§
Auto Trait Implementations§
impl Freeze for WitnessDefinition
impl RefUnwindSafe for WitnessDefinition
impl Send for WitnessDefinition
impl Sync for WitnessDefinition
impl Unpin for WitnessDefinition
impl UnsafeUnpin for WitnessDefinition
impl UnwindSafe for WitnessDefinition
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more