I need to show that if $3n-1$ is odd then $n$ must be even. I'm doing this in cases.
For the first case I am saying: $$n = 2k \Rightarrow 3n-1 = 6k-1$$ Let $$j = 3k \Rightarrow (3n-1) = (6k-1) = (2j - 1)$$ therefore if $n$ is even then $3n-1$ is odd: $$\forall x,y \in \mathbb{Z}:\quad n = 2x \Rightarrow 3n-1 = 2y + 1$$
Based on how I've seen the use of definitions to write proofs, I feel like this is an acceptable method of direct proof, but what is stopping me from defining: $$u = j-1$$ which would imply $3n-1 = 2u$ which by using definitions would make it even. I feel like I must have an intrinsic misunderstanding of how to do proofs. So I feel I should ask, is the proof above valid? Or if not then why?
$\mathbf {EDIT:}$
@Bernard
what if, just for the sake of argument, you defined $2(3k+1)$ to be equal to $2u-1$.
therefore $3n-1 = 2u-1$ (odd function).
You might then argue that
$$n=\frac 23u + \frac 23$$ is not an integer,
but couldn't I define $u$ as some real number s.t.
$$u\cdot\frac 23\equiv\frac 23$$ more than some integer $z$?
then n would be an integer and $3n-1 = 2u-1$ making it odd.
Is there any reason why one couldn't make this substitution?