-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.sage
62 lines (56 loc) · 1.67 KB
/
scripts.sage
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
53
54
55
56
57
58
59
60
61
62
T = posets.TamariLattice(3)
for c in T.maximal_antichains():
if len(c) == 2:
for i in c:
i = list(i)
i.pop()
t = DyckWord(i).to_binary_tree_tamari()
ascii_art(t)
DyckWord(i).to_312_avoiding_permutation()
print('\n')
print('\n\n')
T = posets.TamariLattice(4)
for c in T.maximal_antichains():
if len(c) == 4:
len(T.order_ideal(c))
for i in c:
i = list(i)[:-1]
t = DyckWord(i).to_binary_tree_tamari()
ascii_art(t)
DyckWord(i).to_312_avoiding_permutation()
print('\n')
print('\n\n')
T = posets.TamariLattice(5)
for c in T.maximal_antichains():
if len(c) == 9:
for i in c:
i = list(i)[:-1]
t = DyckWord(i).to_binary_tree_tamari()
ascii_art(t)
DyckWord(i).to_312_avoiding_permutation()
print('\n')
break
#print('\n\n')
T = posets.TamariLattice(6)
for c in T.random_maximal_antichain():
i = list(c)[:-1]
t = DyckWord(i).to_binary_tree_tamari()
ascii_art(t)
DyckWord(i).to_312_avoiding_permutation()
T = posets.TamariLattice(6)
for c in T.dilworth_decomposition():
for t in c:
l = list(t)[:-1]
t = DyckWord(l).to_binary_tree_tamari()
ascii_art(t)
#DyckWord(l).to_312_avoiding_permutation()
print('\n\n')
for c in P.maximal_antichains():
if len(c) == 6:
for w in c:
Cl = Permutation([int(i) for i in w]).sylvester_class()
for j in Cl:
print(j)
break
def lala(m,n):
return (m+1) * binomial((m+1)^2*n+m,n-1) / (n*(m*n+1))