knots-0.1.0.0: Khovanov homology computations

Safe HaskellNone

Knots.PD

Synopsis

Documentation

data Node a Source

Constructors

N a a a a 

Instances

Functor Node 
Foldable Node 
Eq a => Eq (Node a) 
Read a => Read (Node a) 
Show a => Show (Node a) 

type PD a = [Node a]Source

indices :: Ord a => PD a -> Set aSource

data ElMo Source

ElMo is short for Elementary Morphism, for the building blocks of our matrices.

Constructors

Mult Int Int Int 
Comult Int Int Int 
Neg ElMo 

Instances

resolve_set :: Ord a => PD a -> Set (Set a)Source

resolve_one_set :: Ord a => Node a -> Set (Set a) -> Set (Set a)Source

mergeParts :: Ord a => a -> a -> Set (Set a) -> Set (Set a)Source

mirror :: PD a -> PD aSource

switch' :: Set Int -> PD a -> PD aSource

replaceBySeveral :: Eq a => a -> [a] -> PD a -> PD aSource

replaceFirst :: Eq a => a -> a -> PD a -> PD aSource

addHopfySource

Arguments

:: Ord a 
=> a

Position where to add hopfy

-> a

Fresh name (1)

-> a

Fresh name (2)

-> a

Fresh name (3)

-> a

Fresh name (4)

-> PD a 
-> PD a