LangToGroup-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

GRType

Description

This module represents group presentation and its sub-types.

Synopsis

Documentation

data A Source #

This is a data type of GR generators.

A_Y is a generators witch obtain from alphabet letters Y of S-machine.

A_K is a generators witch forms the hubRelation.

A_R is a generators witch obtain from rules SRule of S-machine.

A_Q is a generators witch obtain from states State of S-machine.

Constructors

A_Y Y 
A_K Int 
A_R SRule 
A_Q State 

Instances

Instances details
Eq A Source # 
Instance details

Defined in GRType

Methods

(==) :: A -> A -> Bool #

(/=) :: A -> A -> Bool #

Ord A Source # 
Instance details

Defined in GRType

Methods

compare :: A -> A -> Ordering #

(<) :: A -> A -> Bool #

(<=) :: A -> A -> Bool #

(>) :: A -> A -> Bool #

(>=) :: A -> A -> Bool #

max :: A -> A -> A #

min :: A -> A -> A #

Show A Source # 
Instance details

Defined in GRType

Methods

showsPrec :: Int -> A -> ShowS #

show :: A -> String #

showList :: [A] -> ShowS #

data SmbR Source #

This is a data type of symbols in GrRelation.

Symbols can represent generators A and its invertions.

SmbA represents generators.

SmbA' represents invertions of generators.

Constructors

SmbA A 
SmbA' A 

Instances

Instances details
Eq SmbR Source # 
Instance details

Defined in GRType

Methods

(==) :: SmbR -> SmbR -> Bool #

(/=) :: SmbR -> SmbR -> Bool #

Ord SmbR Source # 
Instance details

Defined in GRType

Methods

compare :: SmbR -> SmbR -> Ordering #

(<) :: SmbR -> SmbR -> Bool #

(<=) :: SmbR -> SmbR -> Bool #

(>) :: SmbR -> SmbR -> Bool #

(>=) :: SmbR -> SmbR -> Bool #

max :: SmbR -> SmbR -> SmbR #

min :: SmbR -> SmbR -> SmbR #

Show SmbR Source # 
Instance details

Defined in GRType

Methods

showsPrec :: Int -> SmbR -> ShowS #

show :: SmbR -> String #

showList :: [SmbR] -> ShowS #

data GrRelation Source #

This is a data type of GR relations.

Relation represents relation beetwen right and left symbols SmbR.

For example, relation ab=ba will coded like

>>> Relation ([a, b], [b, a])

where a, b are SmbR

Relator is relation in witch one part is identity.

For example, ab=1 is

>>> Relator [a,b]

Constructors

Relation ([SmbR], [SmbR]) 
Relator [SmbR] 

Instances

Instances details
Eq GrRelation Source # 
Instance details

Defined in GRType

Ord GrRelation Source # 
Instance details

Defined in GRType

Show GrRelation Source # 
Instance details

Defined in GRType

newtype GR Source #

GR is a group presentation type.

It consists of set of generators A and set of relations GrRelation.

Constructors

GR (Set A, Set GrRelation) 

Instances

Instances details
Eq GR Source # 
Instance details

Defined in GRType

Methods

(==) :: GR -> GR -> Bool #

(/=) :: GR -> GR -> Bool #

Ord GR Source # 
Instance details

Defined in GRType

Methods

compare :: GR -> GR -> Ordering #

(<) :: GR -> GR -> Bool #

(<=) :: GR -> GR -> Bool #

(>) :: GR -> GR -> Bool #

(>=) :: GR -> GR -> Bool #

max :: GR -> GR -> GR #

min :: GR -> GR -> GR #

Show GR Source # 
Instance details

Defined in GRType

Methods

showsPrec :: Int -> GR -> ShowS #

show :: GR -> String #

showList :: [GR] -> ShowS #

ShowInfo GR Source # 
Instance details

Defined in ShowInfo