-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sheaf cohomology tables and potential rework of Betti tables #2392
Conversation
src/Modules/ModulesGraded.jl
Outdated
grade_group = parent(first(keys(bt_table))[2]) | ||
if !(isone(ngens(grade_group)) && isone(nrels(grade_group))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is_z_graded
I would suggest that we do not add a dependency on PrettyTables.jl. |
Why exactly? Doing all these tables by hand, as it is implemented right now, is not a good way to do. What would be your suggestion? |
External dependencies which we do not control are bad. There was recently another fiasco, where a maintainer of heavily used packages went missing (https://github.com/JuliaFolds). |
The data structure of the Betti table as a Dict has an important mathematical meaning in the form it is, so it should please not be changed. I do not mind a different show function, as long as it prints as currently, which is exactly what we want. That show function would first have to generate internally a matrix and then print it. I would however also suggest that we are very cautious to add a dependency, since we can pretty easily produce our own generic code to handle the pretty printing. In case we would want to go into this deeper, there is the very nice conpept of a Net (which is modular and can be used for any sort of printing for tables, matrices, polynomials, maps, rings ...) in M2 and Singular. |
Ok, thanks for weighing in. In light of this and the above discussion I will leave the Betti table completely as is and simply also use its Just FYI, they are currently on hold due to an issue on the Singular side. |
0e76c13
to
1d8954c
Compare
Codecov Report
@@ Coverage Diff @@
## master #2392 +/- ##
==========================================
- Coverage 73.63% 73.57% -0.06%
==========================================
Files 455 455
Lines 64411 64517 +106
==========================================
+ Hits 47427 47467 +40
- Misses 16984 17050 +66 |
What's the status of this? Is the Singular issue resolved? If not, please add a link to the relevant issue at the Singular.jl and or Singular repository, so we can track its status |
The Singular part is settled, the cm-regularity is now in OSCAR, the rest will be finished as sooon as time permits.
… Am 22.08.2023 um 09:22 schrieb Max Horn ***@***.***>:
What's the status of this? Is the Singular issue resolved? If not, please add a link to the relevant issue at the Singular.jl and or Singular repository, so we can track its status
—
Reply to this email directly, view it on GitHub <#2392 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AASSXESPBY6GO6YPIH7LYODXWRM5FANCNFSM6AAAAAAYDIQ3NA>.
You are receiving this because you are subscribed to this thread.
|
2ad5589
to
bc76a8f
Compare
I added a first Wrapper for the |
40ff78a
to
4ef8487
Compare
I have several problems here. In particular, the results seem to be incorrect. @RafaelDavidMohr, @ederc: Can we discuss this in gathertown some time soon? For example, Tomorrow, 14.10., 11:00? |
* first sketch for print code * fixes header alignment * finishes printing code * first version of sheaf coh bgg * make it work for free modules * add indexing method for sheaf coh table * export * add some initial docu * fix extraction of cokernel repr * get weights correctly * cast weight to int * change name, take out regularity * new example in docu * add free module docu example * add some sheaf coh tests * remove error message (already covered by type) * add error message back in, adjust test instead * fix tests --------- Co-authored-by: Rafael Mohr <[email protected]>
This PR will implement the Oscar interface to the Singular function
sheafCohBGG
:https://www.singular.uni-kl.de/Manual/4-3-1/sing_1827.htm#SEC1908
Me and @ederc found that the easiest way to get the printing of the sheaf cohomology tables done as in Singular would be to use
PrettyTables.jl
. This package is already present as a test dependency for Oscar. If we print these tables using this package then it would have to be added as a "proper" dependency.If we decide to do use
PrettyTables.jl
then we could also use it to print Betti tables which would simplify theBase.show
implementation for Betti Tables (see theBase.show
implementation on this branch for a "preview" of what this could look like). Without pulling in extra dependencies,PrettyTables.jl
requires the data to be present in a matrix format in order to print it. As a consequence, if @jankoboehm agrees to usingPrettyTables.jl
for Betti tables, then I would also propose reworking the Betti table data structure to store it directly as a matrix and to also potentially implement aBase.getindex
method for Betti tables so that the user may easily query the tables.