Zulip Chat Archive

Stream: mathlib4

Topic: Icc/Ioc/Ico/Ici/Iic intervals are not open


Aaron Hill (Oct 09 2024 at 19:02):

When using IsPreconnected.mem_intervals, I ended up proving that several different kinds of intervals are not open (in R, but this could probably be generalized). Would this make sense to PR to mathlib?

Yury G. Kudryashov (Oct 09 2024 at 19:11):

I think that these lemmas can go to a new file, probably with Not (IsClosed (Ioi _)) etc.

Floris van Doorn (Oct 09 2024 at 19:37):

Is there a reason to not just put them in file#Topology/Order/OrderClosed where docs#isOpen_Ioo is?
(note: that lemma probably has the right generality we want)

Yury G. Kudryashov (Oct 09 2024 at 20:02):

I expect them to be used less than isOpen_Ioo.

Yury G. Kudryashov (Oct 09 2024 at 20:03):

So, there is no reason to include them in a file many other files depend on.

Yury G. Kudryashov (Oct 09 2024 at 20:03):

But I like smaller files than many other people here, possibly because my laptop is slow.

Violeta Hernández (Oct 10 2024 at 02:34):

Yeah, I'm not a fan of granular files that only prove a handful of theorems. I get it when it's for imports reasons (e.g. something like SetTheory.Cardinal.Finsupp with the odd combination of Cardinal and Finsupp imports), but here it seems like the theorems would fit right besides isOpen_Ioo very well.

Violeta Hernández (Oct 10 2024 at 02:36):

I agree that these lemmas are less useful, but I think it's perfectly reasonable to assume the file with the theorems about Ioo, Iio, etc. being open would also contain results about the other types of intervals not being open.

François G. Dorais (Oct 10 2024 at 05:48):

The key idea here is gaps (i.e. a < b such that ]a,b[ is empty). Surely this has been considered elsewhere in Mathlib?

Ruben Van de Velde (Oct 10 2024 at 05:50):

Is that what something finite order is for?

Yaël Dillies (Oct 10 2024 at 07:24):

François G. Dorais said:

The key idea here is gaps (i.e. a < b such that ]a,b[ is empty). Surely this has been considered elsewhere in Mathlib?

docs#CovBy ?

Yury G. Kudryashov (Oct 11 2024 at 04:57):

See also docs#IsSuccLimit which is equivalent to NeBot (nhdsWithin x (Set.Iio x))

Yury G. Kudryashov (Oct 11 2024 at 04:58):

... and docs#IsSuccPrelimit


Last updated: May 02 2025 at 03:31 UTC