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
[Merged by Bors] - feat(order/height): The height of a poset #15026
Conversation
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.
General comments + a few ramblings you can probably ignore
What do you want to do with this? I've thought about the height of an order myself and came to the conclusion that we would want it to be |
@YaelDillies I would like to define heights of primes, Krull dimensions of rings, codimensions of irreducible closed subsets etc. (cf This Zulip thread) What is the reason behind the conclusion? I don't have a good way to deal with the unbounded case when it is |
If we want a nat-valued height, perhaps we should define it on a type with well-founded |
I think |
Oh of course. But the nice thing is that all elements have a finite height iff |
Actually, more generally, we should have a |
Can't you just use |
Not really. Not every topological space (or ring) is catenary. |
Oh wait, I totally lied to you. Well founded orders don't necessarily have a nat-valued height function: consider |
Expanding on that previous thought: my relevant refactor introduces an This isn't really relevant to this PR though, I'm just thinking out loud. |
I think yes? |
I'm not sure this is the right way to do things. It certainly is a bit weird if you're interested in studying finite orders. Maybe a literature dive would help here. |
I could golf a bit further with your changes, so I integrated them. I'm quite happy with the current state of things although some golfing should still be possible. |
maintainer merge |
🚀 Pull request has been placed on the maintainer queue by alreadydone. |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
CI fails because the implicitness of the function in |
Please open a corresponding mathlib4 PR (even an empty one). |
Riccardo, it's already here: leanprover-community/mathlib4#1762 |
My bad, too many teaching hours these days. bors merge |
Co-authored-by: Andrew Yang <36414270+erdOne@users.noreply.github.com> Co-authored-by: Yaël Dillies <yael.dillies@gmail.com> Co-authored-by: Junyan Xu <junyanxumath@gmail.com> Co-authored-by: Junyan Xu <junyanxu.math@gmail.com>
Pull request successfully merged into master. Build succeeded: |
Match leanprover-community/mathlib4#1762