Skip to content

Conversation

@fchapoton
Copy link
Contributor

Adding two new posets in our catalog : The Bubble lattices and the Shuffle lattices.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

@github-actions
Copy link

github-actions bot commented May 2, 2025

Documentation preview for this PR (built with commit fa8d02f; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@fchapoton
Copy link
Contributor Author

@tscrim, would you please have time for this one ?

Copy link
Collaborator

@tscrim tscrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two additional general comments:

I would call the file bubble_shuffle.py.

I would provide at least a sketch of the definitions of the posets in the construction functions.

Copy link
Collaborator

@tscrim tscrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Just now the annoying conftest.py deletion... (We really should complain on sage-devel about that.) Once addressed, then you can set a positive review.

@fchapoton fchapoton force-pushed the bubble_and_shuffle branch from 2792b47 to 4b2ded4 Compare May 13, 2025 13:15
@fchapoton
Copy link
Contributor Author

I have not yet added a mathematical definition of the posets.

@tscrim
Copy link
Collaborator

tscrim commented May 13, 2025

Ah, right, yes, please also add that.

Copy link
Collaborator

@tscrim tscrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Although I think it would be better to have the definitions local to each function so it can be read by posets.BubblePoset?.

@dimpase
Copy link
Member

dimpase commented May 15, 2025

Thank you. Just now the annoying conftest.py deletion... (We really should complain on sage-devel about that.) Once addressed, then you can set a positive review.

what exactly is the problem of conftest.py deletion? if you don't interrupt configure script manually or by breaking some autoconf macro, it gets restored just fine.

@fchapoton
Copy link
Contributor Author

Every time I compile using make build, the conftest.py is not restored. On several ubuntu machines, where I am using a source install done many years ago.

@dimpase
Copy link
Member

dimpase commented May 15, 2025

The whole idea that make build can invoke ./bootstrap and ./configure is silly --- that's not how GNU toolchain is designed to be used. I was always saying that make build must not touch ./configure, because one makes a configured build! If you want me to fix it, I can remove the ability of make build to mess around with ./configure, as this is the right fix IMHO.

@fchapoton
Copy link
Contributor Author

@tscrim : I have moved the doc as suggested, I think. Do you have any other suggestion or comment ?

Copy link
Collaborator

@tscrim tscrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. LGTM.

@tscrim
Copy link
Collaborator

tscrim commented May 19, 2025

@dimpase It would be appreciated if something could be done so this file is repeatedly deleted when building/upgrading Sage. It’s a hassle.

@dimpase
Copy link
Member

dimpase commented May 20, 2025

which file?

@tscrim
Copy link
Collaborator

tscrim commented May 21, 2025

which file?

conftest.py.

@dimpase
Copy link
Member

dimpase commented May 21, 2025

which file?

conftest.py.

Sorry, I explained above how to avoid deleting this file.
Otherwise, feel free to trace the biting you bug (or feature) in Sage's self-modifying bunch of config files and makefiles you prefer to the normal way of operating the GNU toolchain.

@tscrim
Copy link
Collaborator

tscrim commented May 21, 2025

Every time I compile using make build, the conftest.py is not restored. On several ubuntu machines, where I am using a source install done many years ago.

@dimpase I clearly am having this as well. Nothing is breaking for us during the build and it is not getting restored. It's also appeared for many other contributors' PRs.

@dimpase
Copy link
Member

dimpase commented May 21, 2025

If you change something that triggers a run of configure, such as a package update, and you don't run ./configure before hitting make build, then ./configure in our wonderful build system is invoked automatically, and it does modify makefiles and what not.

It's above my pay grade to search for bugs in recursively self-modifying systems like this.

I have been talking for years arguing that sage the distro is a bloatware, and needs to be simplified and streamlined - hearing in response mostly that it just works, so why bother.

@tscrim
Copy link
Collaborator

tscrim commented May 21, 2025

I run ./configure && make build when upgrading. Well, anyways, none of us have the ability to fix it...

@dimpase
Copy link
Member

dimpase commented May 21, 2025 via email

@tscrim
Copy link
Collaborator

tscrim commented May 21, 2025

I will do that to sage-devel soon. I usually forget about it because I reset it and just continue on my way each time I upgrade.

@dimpase
Copy link
Member

dimpase commented May 21, 2025

I run ./configure && make build when upgrading. Well, anyways, none of us have the ability to fix it...

For many upgrades you need to run ./bootstrap first. So this could be the culprit - make finds out you need to run it, it in turn triggers the run of ./configure, and the self-modifying hell breaks loose

@vbraun
Copy link
Member

vbraun commented May 21, 2025

! Undefined control sequence.
l.8176 ...s of Galois for elliptic curves over} \(\Q
                                                  \) (and an appendix with J...

@tscrim
Copy link
Collaborator

tscrim commented May 26, 2025

Thanks. That fixes it.

vbraun pushed a commit to vbraun/sage that referenced this pull request May 28, 2025
sagemathgh-40037: introduce the bubble and shuffle lattices
    
Adding two new posets in our catalog : The Bubble lattices and the
Shuffle lattices.

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.
    
URL: sagemath#40037
Reported by: Frédéric Chapoton
Reviewer(s): Travis Scrimshaw
@vbraun vbraun merged commit a034f8d into sagemath:develop Jun 1, 2025
14 of 24 checks passed
@fchapoton fchapoton deleted the bubble_and_shuffle branch June 2, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants