Im confused by why epsilon delta proofs logically work.
An example is
Proof: Given $ε>0$, choose $δ = {ε\over3}$. For all $x$, if $0<|x−2|<δ$ then $|(3x−1)−5| < ε$.
That last part if $0<|x−2|<δ$ then $|(3x−1)−5| < ε$ LOOKS A LOT LIKE $P\to Q$ because of the "if then" but yet the proof in the book solves it like as if its $Q\to P$?:
$$\begin{align}|(3x−1)−5| &= |3x−6|\\ &= |3(x−2)|\\ &= 3|x−2|\\ &<3δ\\ &= 3\left({ε\over3}\right) \\ &= ε\end{align}$$
So my question is how come it looks like a $P\to Q$ proof but yet we start with $Q$ to show $P$?
The most basic way to prove a statement of the form "If $P$ then $Q$" is to assume $P$ and prove $Q$.
In this case $P$ is "$0<|x-2|<\delta$", and $Q$ is $|(3x-1)-5|<\epsilon$. Earlier in the proof we defined $\delta = \epsilon/3$.
So we assume $P$: Assume that the statement $0<|x-2|<\delta$ is true, and set out to show that $Q$ holds. We accomplish this by the string of inequalities
$$|(3x−1)−5| = |3x−6| = |3(x−2)| = 3|x−2|<3δ,$$
then we use $\delta = \epsilon/3$ to continue
$$3\delta = 3(\epsilon/3) = \epsilon.$$
Therefore the first term is less than the last, which is precisely $Q$.