-
Notifications
You must be signed in to change notification settings - Fork 0
/
MyGroupAlgebra.py
52 lines (43 loc) · 1.52 KB
/
MyGroupAlgebra.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from sage.categories.tensor import tensor
class MyGroupAlgebra(CombinatorialFreeModule):
def __init__(self, R, G, *args, **kwargs):
'''
Which instance variables are important? Which object should you use to
index a basis for this algebra? Which category should you use?
'''
pass
def __repr__(self):
pass
def product_on_basis(self, left, right):
'''
left and right are two elements of G. These two elements correspond
to two elements of this group algebra. This function should return the
product of those two elements.
'''
pass
def one_basis(self):
'''
This function should return the element of G whose corresponding group
algebra element is the identity of the algebra.
'''
pass
# Implement the following if you know what a Hopf Algebra is.
def coproduct_on_basis(self, g):
'''
g is an element of G. This function should return the co-multiplication
of the corresponding group algebra element.
'''
pass
def antipode_on_basis(self, g):
'''
g is an element of G. This function should return the antipode of the
group algebra element corresponding to g.
'''
pass
def counit_on_basis(self, g):
'''
g is an element of G. This function should return the field element
which is the counit applied to the group algebra element corresponding
to g.
'''
pass