I am new to Latex, and I am having some trouble with the align* environment. In the code below, the first two equations are horizontally spaced differently from the second two equations:
\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{amsmath}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\ex}{\:\exists\,}
\newcommand{\nex}{\:\nexists\,}
\newcommand{\all}{\:\forall\,}
\newcommand{\imp}{\Longrightarrow}
\begin{document}
For $A:=\left\{\dfrac{1}{n}-\dfrac{1}{m}:n,m\in\N\right\}$, $\sup(A) = 1, \inf(A)=-1$.\\\\
\textit{Proof}. Suppose for contradiction that $1$ is not an upper bound for $A$, i.e. $\exists n,m \in \mathbb{N} \mid \dfrac{1}{n} - \dfrac{1}{m} > 1$.
\begin{align*}
\iff&\frac{m}{m}\cdot\frac{1}{n} - \frac{n}{n}\cdot\frac{1}{m} > 1\\
\iff&\frac{m-n}{mn}>1\\
\iff& m-n> mn\\
\iff& m > mn + n\\
\iff& m > n(m+1)\\
\text{Because }n(m+1)\geq m+1,\text{ we have}\\
\iff& m > n(m+1) \geq m+1\\
\iff& m > m+1 &\bot\\
\end{align*}
$\newline$Suppose for contradiction that $-1$ is not a lower bound for $A$, i.e. $\ex n,m \in \N \mid$\\$ \dfrac{1}{n} - \dfrac{1}{m} < -1$.
\begin{align*}
\iff&\frac{m}{m}\cdot\frac{1}{n} - \frac{n}{n}\cdot\frac{1}{m} < -1\\
\iff&\frac{m-n}{mn}<-1\\
\iff& m-n<-mn\\
\iff& m +mn < n\\
\iff& m(1+n)< n\\
\text{Because }m(1+n)\geq 1+n, \text{ we have}\\
\iff& 1+n \leq m(1+n) < n\\
\iff& 1+n < n &\bot
\end{align*}
$\newline\newline$ Claim that $\lim\limits_{n=1, m \to \infty} \dfrac{1}{n} - \dfrac{1}{m} = 1$, or $\all \epsilon \in (0,\infty) \ex M \in \N \mid m \in \N: m>M \imp$\\$ \left|(1 - \dfrac{1}{m}) - 1\right| < \epsilon $.
\begin{align*}
\iff& \left| 1 - 1 - \frac{1}{m}\right|<\epsilon\\
\iff& \left|-\frac{1}{m}\right|<\epsilon\\
\iff& \frac{1}{m}<\epsilon\\
\iff& m > \frac{1}{\epsilon}
\end{align*}
Hence, for $M:=\left\lceil\dfrac{1}{\epsilon}\right\rceil+1$, $ m > M \imp \left| 1 - 1 - \dfrac{1}{m}\right|<\epsilon$. Because $\epsilon$ was arbitrarily chosen, it follows that $\lim\limits_{n=1, m \to \infty} \dfrac{1}{n} - \dfrac{1}{m} = 1$.
$\newline\newline$ Claim that $\lim\limits_{m=1, n \to \infty} \dfrac{1}{n} - \dfrac{1}{m} = -1$, or $\all \epsilon \in (0,\infty) \ex N \in \N \mid n \in \N: n>N \imp$\\$ \left|(\dfrac{1}{n}-1) -(-1)\right| < \epsilon $.
\begin{align*}
\iff& \left| -1 - (-1) + \frac{1}{n}\right|<\epsilon\\
\iff& \left| \frac{1}{n}\right|<\epsilon\\
\iff& \frac{1}{n} < \epsilon\\
\iff& n > \frac{1}{\epsilon}
\end{align*}
Hence, for $N:=\left\lceil \dfrac{1}{\epsilon}\right\rceil+1, n > N \imp \left|(\dfrac{1}{n}-1) -(-1)\right| < \epsilon$. Because $\epsilon$ was arbitrarily chosen, it follows that $\lim\limits_{m=1, n \to \infty} \dfrac{1}{n} - \dfrac{1}{m} = -1$.
\end{document}
I'm not exactly sure why this is happening. Perhaps it has something to with the \frac{}{} equations in the second two equations... and if so, how can I fix the spacing so that all the equations are aligned the same? Thank you.


align*, you need to combine them into a singlealign*enironment and use\intertext{}for the text that you have between the twoalign*blocks. – Peter Grill Nov 07 '17 at 06:07alignblocks due to the\fracs. But do you really want to change that? You don't need more space between the lines for the first two. (You can of course do it, see e.g. https://tex.stackexchange.com/questions/2929/how-to-increase-the-spacing-between-equations-in-gather/2931#2931, ) – Torbjørn T. Nov 07 '17 at 08:27&on the last line of the first twoalign– daleif Nov 07 '17 at 14:54