Zulip Chat Archive
Stream: mathlib4
Topic: Scattered orders
Erica Assang (Dec 30 2025 at 13:22):
Hi all! I’m Erica, an undergrad at CMU, and I recently formalized Hausdorff’s characterization of scattered orders with the help of Profs. Jeremy Avigad and James Cummings. Is this something that would be a good fit for mathlib?
More precisely, the main theorem is: the set of scattered orders (those which do not contain a copy of the rationals) is equal to the smallest set of linear orders containing every singleton order and that is closed under well-ordered and reverse well-ordered lexicographic sums. The project also contains a proof that every linear order has a well-ordered cofinal subset.
Here is the repo: https://github.com/avoair/Hausdorff.git
Yaël Dillies (Dec 30 2025 at 17:13):
That looks like something @Bhavik Mehta would be very interested in!
Bhavik Mehta (Dec 30 2025 at 17:19):
Yes, these orders also came up for me a few times! I think this definition would make sense for mathlib
Bhavik Mehta (Dec 30 2025 at 17:20):
The stuff in #28278 looks like it'll be relevant for you too, eg your definition of Scattered is equivalent to (where is the order type of the rationals)
Yaël Dillies (Dec 30 2025 at 17:21):
cc @Yan Yablonovskiy 🇺🇦
Eric Paul (Dec 30 2025 at 18:25):
Awesome, I'm excited to see this formalized!
I'm also quite interested in lots of relations like your hausdorffScattered_rel, i.e. equivalence relations where the equivalence classes are intervals in the linear order. I think it'd be great to have these convex equivalence relations and their theory for linear orders in mathlib.
Yan Yablonovskiy 🇺🇦 (Dec 31 2025 at 01:59):
I have order types with some basics and the order type of rationals/ order on order types , in fact it may already be enough to define what you like: OrderTypes . It’s a bit old though, I am about to merge more recent code and try get some into Mathlib potentially.
Erica Assang (Jan 02 2026 at 01:29):
Thank you all for the references and feedback! @Yan Yablonovskiy 🇺🇦 that looks great. I think reframing some of my definitions in terms of order types could definitely tighten things up -- I will see what I can do!
Last updated: Feb 28 2026 at 14:05 UTC