pub struct WallCrossingEngine {
pub grassmannian: (usize, usize),
}Expand description
Engine for computing wall-crossing phenomena.
Analyzes how the set of stable capabilities changes as the trust level varies.
Fields§
§grassmannian: (usize, usize)Grassmannian parameters
Implementations§
Source§impl WallCrossingEngine
impl WallCrossingEngine
Sourcepub fn compute_walls(&self, namespace: &Namespace) -> Vec<Wall>
pub fn compute_walls(&self, namespace: &Namespace) -> Vec<Wall>
Compute all walls for the capabilities in a namespace.
A wall occurs at trust level t where the phase of some capability equals 0 or 1, causing a stability transition.
The wall for σ_λ occurs where:
arg(Z_t(σ_λ)) = 0 or πi.e., where t · dim(σ_λ) / codim(σ_λ) reaches critical values.
§Contract
ensures: walls are sorted by trust_level
ensures: each wall corresponds to exactly one capabilitySourcepub fn stable_count_at(&self, namespace: &Namespace, trust_level: f64) -> usize
pub fn stable_count_at(&self, namespace: &Namespace, trust_level: f64) -> usize
Compute the number of stable capabilities at a given trust level.
§Contract
ensures: result <= namespace.capabilities.len()Sourcepub fn phase_diagram(&self, namespace: &Namespace) -> Vec<(f64, usize)>
pub fn phase_diagram(&self, namespace: &Namespace) -> Vec<(f64, usize)>
Compute the phase diagram: piecewise-constant function trust_level → count of stable capabilities.
Returns sorted (trust_level, count) breakpoints.
§Contract
ensures: result is sorted by trust_level (first component)
ensures: result.len() >= 1Trait Implementations§
Source§impl Clone for WallCrossingEngine
impl Clone for WallCrossingEngine
Source§fn clone(&self) -> WallCrossingEngine
fn clone(&self) -> WallCrossingEngine
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 moreAuto Trait Implementations§
impl Freeze for WallCrossingEngine
impl RefUnwindSafe for WallCrossingEngine
impl Send for WallCrossingEngine
impl Sync for WallCrossingEngine
impl Unpin for WallCrossingEngine
impl UnsafeUnpin for WallCrossingEngine
impl UnwindSafe for WallCrossingEngine
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