Zulip Chat Archive

Stream: Is there code for X?

Topic: Density of Q in R


Bhavik Mehta (Apr 17 2020 at 11:03):

I'm struggling to find the statement that between any two different reals there's a rational but I find it hard to believe no-one's done it yet! Any help?

Mario Carneiro (Apr 17 2020 at 11:15):

It's in algebra.archimedean

Mario Carneiro (Apr 17 2020 at 11:16):

exists_rat_btwn

Patrick Massot (Apr 17 2020 at 11:18):

import analysis.normed_space.basic -- Just to make sure we have everything about real numbers

example (x y : ) (h : x < y):  z : , x < z  (z : ) < y :=
by library_search

Patrick Massot (Apr 17 2020 at 11:19):

But it doesn't feel right that this is not in data.real.basic

Mario Carneiro (Apr 17 2020 at 11:19):

It used to be, but it is generalized to archimedean fields now

Mario Carneiro (Apr 17 2020 at 11:20):

This is standard practice elsewhere in algebra

Bhavik Mehta (Apr 17 2020 at 13:11):

Thanks!


Last updated: Dec 20 2023 at 11:08 UTC