E8RootSystem

Struct E8RootSystem 

Source
pub struct E8RootSystem { /* private fields */ }
Expand description

E₈ Root System

Encapsulates all 240 roots of E₈ with exact arithmetic.

§Invariants

  • Exactly 240 roots total
  • Exactly 112 integer roots
  • Exactly 128 half-integer roots
  • Every root has norm² = 2
  • Every root r has negation -r in the system

Implementations§

Source§

impl E8RootSystem

Source

pub fn new() -> Self

Create new E₈ root system

Generates all 240 roots and verifies invariants.

Source

pub const fn num_roots(&self) -> usize

Get total number of roots

Source

pub fn get_root(&self, index: usize) -> &Vector8

Get root by index

§Panics

Panics if index is out of bounds

Source

pub fn get_negation(&self, index: usize) -> usize

Get index of negation of a root

§Panics

Panics if index is out of bounds

Source

pub fn sign_class_representative(&self, index: usize) -> usize

Get sign class representative (smaller of {r, -r})

Source

pub fn count_sign_classes(&self, indices: &[usize]) -> usize

Count number of distinct sign classes used by a set of root indices

Source

pub fn roots(&self) -> &[Vector8]

Get all roots as a slice

Source

pub fn inner_product(&self, i: usize, j: usize) -> Rational

Compute inner product between two roots

Source

pub fn are_negatives(&self, i: usize, j: usize) -> bool

Check if two roots are negatives of each other

Returns true if root j is the negative of root i

Source

pub fn find_root(&self, root: &Vector8) -> Option<usize>

Find index of a given root vector

Returns None if root is not in the system.

Source

pub const fn simple_roots() -> [Vector8; 8]

Get the 8 simple roots of E₈

§Simple Roots

The simple roots form a basis for the root system, with special properties:

  • Every positive root is a non-negative integer linear combination of simple roots
  • They form a linearly independent set spanning the root space
  • The Weyl group is generated by reflections through these roots

For E₈, we use the standard simple root basis:

  • α₁ = e₁ - e₂ = (1, -1, 0, 0, 0, 0, 0, 0)
  • α₂ = e₂ - e₃ = (0, 1, -1, 0, 0, 0, 0, 0)
  • α₃ = e₃ - e₄ = (0, 0, 1, -1, 0, 0, 0, 0)
  • α₄ = e₄ - e₅ = (0, 0, 0, 1, -1, 0, 0, 0)
  • α₅ = e₅ - e₆ = (0, 0, 0, 0, 1, -1, 0, 0)
  • α₆ = e₆ - e₇ = (0, 0, 0, 0, 0, 1, -1, 0)
  • α₇ = e₇ + e₈ = (0, 0, 0, 0, 0, 0, 1, 1)
  • α₈ = ½(-1, -1, -1, -1, -1, -1, -1, -1)

This basis encodes the E₈ Dynkin diagram structure:

  • Roots α₁ through α₇ form an A₇ chain
  • Root α₈ connects to α₇, creating the E₈ branching
§Returns

Array of 8 simple roots with norm² = 2

Trait Implementations§

Source§

impl Clone for E8RootSystem

Source§

fn clone(&self) -> E8RootSystem

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for E8RootSystem

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for E8RootSystem

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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.