Skip to main content

Bsgs

Struct Bsgs 

Source
pub struct Bsgs {
    pub degree: usize,
    pub base: Vec<usize>,
    /* private fields */
}
Expand description

A base and strong generating set, with the per-level basic transversals.

Fields§

§degree: usize§base: Vec<usize>

Implementations§

Source§

impl Bsgs

Source

pub fn order(&self) -> u128

|G| = Π |Δᵢ| — exact for |G| up to the u128 range (any degree below ~33 factorial).

Source

pub fn elements(&self, cap: usize) -> Option<Vec<Perm>>

Enumerate all |G| group elements, as the unique products u_k·…·u₂·u₁ of one transversal element per level. (sift divides g by the level-i transversal element on the right, so g = h·u₁ with h ∈ G⁽²⁾, recursing to g = u_k·…·u₁ — deepest level innermost; we accumulate from the deepest level outward.) Returns None if |G| > cap — the BSGS knows the order without enumerating, so the caller gates on it. The basis of complete symmetry breaking.

Source

pub fn transversal_elements(&self) -> Vec<Perm>

All coset representatives across the stabilizer chain — the transversal elements at every level. There are Σ |Δᵢ| of them (polynomial: at most degree²), spread across the group, so a lex-leader symmetry break over them (together with the generators) is stronger than the bare generators yet still polynomial, unlike the complete enumeration (|G|). This is the stabilizer chain breaking the symmetry level by level — “symmetry break again” at each base point.

Source

pub fn contains(&self, g: &[usize]) -> bool

Is g a member of the group (i.e., does it sift to the identity through the chain)? This is the coset decision: g ∈ rep·G iff rep⁻¹·g is a member.

Trait Implementations§

Source§

impl Clone for Bsgs

Source§

fn clone(&self) -> Bsgs

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Bsgs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Bsgs

§

impl RefUnwindSafe for Bsgs

§

impl Send for Bsgs

§

impl Sync for Bsgs

§

impl Unpin for Bsgs

§

impl UnsafeUnpin for Bsgs

§

impl UnwindSafe for Bsgs

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.