-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharticle_examples.py
More file actions
156 lines (133 loc) · 5.45 KB
/
Copy patharticle_examples.py
File metadata and controls
156 lines (133 loc) · 5.45 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
from pomonoid import *
"""
Models of partially ordered monoids appearing in `The radical-annihilator
monoid of a ring`
"""
kura_order_relations = {('k', 'kckck'),
('k','1'),
('1','ckc'),
('kckck','ckck'),
('kckck','kckc'),
('ckck','ckckckc'),
('kckc','ckckckc'),
('ckckckc','ckc'),
('kc', 'kckckc'),
('kc','c'),
('c','ck'),
('kckckc','ckckc'),
('kckckc','kck'),
('ckckc','ckckck'),
('kck','ckckck'),
('ckckck','ck'),
}
kura = Pomonoid(base_relations={('cc', '1'), ('kk', 'k'), ('kckckck', 'kck'),
('1c','c'), ('1k','k'), ('c1','c'), ('k1','k'),
('11','1')},
base_generators={'c','k'})
kura.attach_order(ordering=kura_order_relations)
kuraED = Pomonoid(base_relations={('cc', '1'), ('kk', 'k'), ('kckckck', 'kck'),
('ckckckc', 'kckc'),
('kckck', 'ckck'),
('1c','c'), ('1k','k'), ('c1','c'), ('k1','k'),
('11','1')},
base_generators={'c','k'})
# kuraED.attach_order(ordering=kura_order_relations)
kuraEDOU = Pomonoid(base_relations={('cc', '1'), ('kk', 'k'), ('kckckck', 'kck'),
('ckck', 'kckc'),
('1c','c'), ('1k','k'), ('c1','c'), ('k1','k'),
('11','1')},
base_generators={'c','k'})
kuraOU = Pomonoid(base_relations={('cc', '1'), ('kk', 'k'), ('kckckck', 'kck'),
('ckckckc', 'ckck'),
('kckck', 'kckc'),
('1c','c'), ('1k','k'), ('c1','c'), ('k1','k'),
('11','1')},
base_generators={'c','k'})
kuraPart = Pomonoid(base_relations={('cc', '1'), ('kk', 'k'), ('kckckck', 'kck'),
('ckck', 'k'),
('1c','c'), ('1k','k'), ('c1','c'), ('k1','k'),
('11','1')},
base_generators={'c','k'})
kuraDisc = Pomonoid(base_relations={('cc', '1'), ('kk', 'k'), ('kckckck', 'kck'),
('ckc', 'k'),
('1c','c'), ('1k','k'), ('c1','c'), ('k1','k'),
('11','1')},
base_generators={'c','k'})
field = Pomonoid(elements={'1', 'a'},
relations={('r', '1'), ('aa', '1')},
override_elements=True)
field.attach_order(ordering = set())
# Dual rings
dual = Pomonoid(relations={('aa', '1'), ('rara', 'rar')})
dual.attach_order(ordering={('r', '1'), ('r', 'rar'),
('ra', 'rar'), ('ra', 'a'),
('1', 'ara'),
('a', 'ar'),
('rar', 'arar'),
('arar', 'ara'), ('arar', 'ar')})
largest_dual = ProductPomonoid(dual, field).export()
# Semiprime rings
semiprime = Pomonoid(relations={('ra', 'ar'), ('ar', 'a')})
semiprime.attach_order(ordering={('aa', 'r'), ('r', '1')})
# Zero dimensional local rings
ZDLRb = Pomonoid(relations={('rara', 'rar'), ('aar', 'r'), ('raa', 'r')})
ZDLRb.attach_order(ordering={
('r', 'aa'), ('r', 'rar'),
('ra', 'rar'), ('ra', 'a'),
('aa', 'ara'), ('aa', '1'),
('a', 'ar'),
('rar', 'arar'),
('arar', 'ara'), ('arar', 'ar')})
ZDLRc = Pomonoid(relations={('ara', 'ar'),
('raar', 'aar')})
ZDLRc.attach_order(ordering={
('aar', 'raa'), ('aar', 'ra'),
('raa', 'aa'), ('raa', 'r'),
('ra', 'rar'), ('ra', 'a'),
('aa', '1'),
('r', '1'), ('r', 'rar'),
('a', 'ar'),
('1', 'ar'),
('rar', 'ar')})
ZDLRbf = ProductPomonoid(ZDLRb, field)
ZDLRcf = ProductPomonoid(ZDLRc, field)
ZDLRbc = ProductPomonoid(ZDLRb, ZDLRc)
# The minify() method only removes the simplest redundant paths
# The following corrections are manually removing 2-and 3-step redundancies
ZDLRbc.order.incidence[ZDLRbc.lookup['aar']][ZDLRbc.lookup['1']] = False
ZDLRbc.order.incidence[ZDLRbc.lookup['ra']][ZDLRbc.lookup['ara']] = False
ZDLRbc.order.incidence[ZDLRbc.lookup['r']][ZDLRbc.lookup['ar']] = False
#ZDLRbc.order.incidence[ZDLRbc.lookup['aarar']][ZDLRbc.lookup['ar']] = False
#ZDLRbc.order.incidence[ZDLRbc.lookup['aarar']][ZDLRbc.lookup['ara']] = False
# test4 = ProductPomonoid(ZDLRbc.export(), semiprime)
largest_zdr = ProductPomonoid(ZDLRbc.export(), field)
# largest_zdr.order.incidence[largest_zdr.lookup['aarar']][largest_zdr.lookup['ar']] = False
# largest_zdr.order.incidence[largest_zdr.lookup['aarara']][largest_zdr.lookup['ara']] = False
# semiprime.draw('semiprime')
# dual.draw('dual')
largest_dual.draw('largest_dual')
largest_zdr.draw('largest_zdr')
#
ZDLRb.draw('ZDRLb')
ZDLRc.draw('ZDRLc')
ZDLRbf.draw('ZDLRbf')
ZDLRcf.draw('ZDLRcf')
ZDLRbc.draw('ZDLRbc')
# test4.draw('test4')
trial=Pomonoid(relations={
('ararar', 'rar'),
('ararara', 'rara'),
('arararaa', 'raraa'),
('aarar', 'rar'),
('aarara', 'rara'),
('aararaa', 'raraa'),
})
# if a(I)!=0, I is contained in a minimal prime
# then rI is in the lattice I studied.
# if rI is contained in (x,y), then rarI=aN
# if rI is not contained in (x,y), then rarI=N
# furthermore rN=N and aaN=N
# consequently, the following are equal to rar:
# aarar, ararar, and any
# need to get relations working for exported monoids to do the following
# test4 = ProductPomonoid(semiprime, ZDLRbc.export())