Zulip Chat Archive

Stream: Is there code for X?

Topic: Length of longest chain


Andrew Yang (Jun 26 2022 at 13:52):

Is there any results regarding the length of a the longest ascending chain in an order? One that presumably takes values in N{}\mathbb{N} \cup \{\infty\}.

I would like to define the Krull dimension of rings and topological spaces, and also height of primes, codimensions of subspaces, etc.

Junyan Xu (Jun 26 2022 at 15:33):

I guess you can work with docs#is_max_chain and just prove every max chain has the same cardinality, etc.?

Junyan Xu (Jun 26 2022 at 15:39):

When the chain is finite, I think we'd like to know it can be arranged into a list in ascending order. Can we use some development from docs#composition_series ?

Junyan Xu (Jun 26 2022 at 16:04):

I suspect it's easier to work with docs#list.chain has_lt.lt, then we can talk about length of the list instead of cardinality. "maximal length" just means having max length among all chains. However it seems we don't have a predicate on it saying the chain is maximal (i.e. nothing can be inserted while keeping it a chain). The max length is infinity precisely when there is no list that is a max length chain.

Violeta Hernández (Jun 26 2022 at 16:07):

Part of the problem with having API for "length of longest chain" is that the output type is far from obvious, particularly regarding infinite chains

Violeta Hernández (Jun 26 2022 at 16:08):

A quite natural output type is enat, but if you're working with finite structures, you'll probably want instead, and if you're working with well-founded orders, you'll want ordinal instead, and there's a case to be made for cardinal too.

Violeta Hernández (Jun 26 2022 at 16:09):

I agree with Junyan in that you might be better off working with is_max_chain directly and adding the necessary lemmas that suit your needs

Andrew Yang (Jun 26 2022 at 16:17):

I was planning on considering the sup (in enat) of all the lengths of finite strictly ascending chains. I think this is what @Junyan Xu is talking about as well?

Junyan Xu (Jun 26 2022 at 16:20):

enat didn't come to my mind before Violeta mentioned it, but it seems the right way to go, yes.


Last updated: Dec 20 2023 at 11:08 UTC