My question reads:
Let $a<b$ be real numbers and let the set $T$= $\mathbb{Q}$ $\cap$ $[a,b]$. Prove $sup T=b$.
My work so far:
(Showing $b$ is an upper bound). Let $y\in\ T$. Then $y\in\ [a,b]$ since the intersection of the rationals and an interval between two real numbers is just said interval. Then, $y\leq\ b$ which shows $b$ is an upper bound.
(Showing least upper bound-Proof by Contradiction)
Let $w\in\ T$ and suppose $w< b$. Then by density, there exists an $x$ such that $b<x<w$.
Here is where I get stuck. I am not too sure how to continue with density here to arrive at a contradiction. I think I am on the right track, but I am missing a step somewhere here.
Best Answer
proof-verification
To fix the second step, assume instead, $b$ is not a strict upper of $T$, namely there exists a real number $c<b$ such that $c$ is an upper bound "of the set $T$" (one should not miss this phrase!). Now try to see what contradiction you can get.