pub enum LensSelectionRefusal {
MeasureIndexOutOfRange {
measure: usize,
},
LensIndexOutOfRange {
lens_idx: usize,
},
QMagnitudeExceeded {
q: SignedFixed,
},
Cyclic,
}Expand description
Why allocate_single_lens refused to produce a single-lens allocation.
A typed, non-panicking refusal, matching the crate’s established
one-variant-per-check convention (mirrors CertificationRefusal’s
shape).
Variants§
MeasureIndexOutOfRange
measure was not a valid index into the K measures (0..K).
LensIndexOutOfRange
lens_idx was not a valid index into the Q lenses (0..Q).
QMagnitudeExceeded
lenses[lens_idx].q’s magnitude exceeded
crate::cascade::MAX_LENS_MAGNITUDE – the same, unconditionally
enforced bound crate::escort::escort_distribution checks. Not to
be confused with allocate_in’s separate, proof-conditional
q in [-2, 2] admission policy (see
crate::generated_profile::MAX_LENS_MAGNITUDE’s doc comment for why
the two are different, independently-sourced domains).
Fields
q: SignedFixedCyclic
parent contains a cycle (or a chain deeper than N - 1 hops
permits) – the same witness check_hierarchy_acyclic checks.