AtlasE8Embedding

Struct AtlasE8Embedding 

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

Atlas→E₈ embedding

Maps the 96 vertices of the Atlas to 96 of the 240 E₈ roots, preserving the graph structure.

Implementations§

Source§

impl AtlasE8Embedding

Source

pub const fn new() -> Self

Create the canonical Atlas→E₈ embedding

This embedding was computed via backtracking search and certified in the Python implementation. It is the unique embedding (up to E₈ symmetry) that preserves edges and produces exactly 48 sign classes.

Source

pub const fn map_vertex(&self, atlas_vertex: usize) -> usize

Map an Atlas vertex to its corresponding E₈ root

§Arguments
  • atlas_vertex - Atlas vertex index (0..96)
§Returns

E₈ root index (0..240)

§Panics

Panics if atlas_vertex >= 96

Source

pub const fn mapping(&self) -> &[usize; 96]

Get the full mapping as a slice

Source

pub fn verify_root_norms(&self) -> bool

Verify all mapped roots have correct norm

All 96 embedded E₈ roots must have norm² = 2.

§Returns

true if all roots have norm² = 2

Source

pub fn verify_injective(&self) -> bool

Verify that the embedding is injective

No two Atlas vertices should map to the same E₈ root.

Source

pub fn count_sign_classes(&self) -> usize

Count sign classes in the embedding

A sign class is a pair of Atlas vertices that map to negatives of each other in E₈. The canonical embedding has exactly 48 sign classes.

§Returns

Number of sign class pairs (should be 48)

Source

pub fn verify_all(&self) -> bool

Verify all embedding properties

Checks:

  • Injectivity (96 distinct roots)
  • Root norms (all have norm² = 2)
  • Sign classes (exactly 48 pairs)
§Returns

true if all properties verified

Trait Implementations§

Source§

impl Clone for AtlasE8Embedding

Source§

fn clone(&self) -> AtlasE8Embedding

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 AtlasE8Embedding

Source§

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

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

impl Default for AtlasE8Embedding

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.