Zulip Chat Archive

Stream: Is there code for X?

Topic: open interval


ZHAO Jinxiang (Aug 21 2022 at 10:07):

Is there any definition for open interval?
I want to descript a set of real is set.Ioo or set.Iio or set.Ioi.

Yaël Dillies (Aug 21 2022 at 10:14):

Do you want an order interval or a geometry interval?

ZHAO Jinxiang (Aug 21 2022 at 10:57):

What's the difference? I'm learning the topology chapter 1 now.

Yaël Dillies (Aug 21 2022 at 10:58):

One is about preorders, the other is about vector spaces.

ZHAO Jinxiang (Aug 21 2022 at 11:01):

Maybe preorder

Yaël Dillies (Aug 21 2022 at 11:09):

Then docs#set.Ioo

ZHAO Jinxiang (Aug 21 2022 at 11:10):

But I need set.Ioo or set.Iio or set.Ioi

Yaël Dillies (Aug 21 2022 at 11:11):

Then Ioo in docs#ereal is an option.

Yaël Dillies (Aug 21 2022 at 11:12):

Otherwise I have #14807 open to add the type of intervals.

ZHAO Jinxiang (Aug 21 2022 at 11:13):

This is the definition I used now.

def is_open_interval (s : set ) := ( a b, s = set.Ioo a b)  ( a, s = set.Iio a)  ( a, s = set.Ioi a)

But I want to find if there is any definition in mathlib

Yaël Dillies (Aug 21 2022 at 11:16):

What do you want to do with it? Maybe an open set is enough?

Andrew Yang (Aug 21 2022 at 11:17):

Maybe an open connected set?
Do we have the description of connected subsets of reals in mathlib?

Yaël Dillies (Aug 21 2022 at 11:18):

docs#set.ord_connected

ZHAO Jinxiang (Aug 21 2022 at 11:20):

Oh,yes. is_open is what I'm finding


Last updated: Dec 20 2023 at 11:08 UTC