I am having some issues with the positioning of a page break with align.
My code is roughly the following.
\documentclass{article}
\usepackage{amsmath, amsthm}
\begin{document}
%Lots of text to force the page break.
Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text. Lots of text.
\begin{proof}
%Some more text to force the page break and get the "$a=b$." in the correct position.
Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some $a=b$.
\begin{align*}
%Something pretty long to force a new page whilst leaving a blank area.
a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b\\a&b
\end{align*}
\end{proof}
\end{document}
Now, align takes a new page and leaves a large blank bit at the bottom of the previous page, which is fine. However, it also takes the last line of text with it, and the last line of text is simply $a=b$. Which is silly! So I want to utilise this large blank space by putting the $a=b$. there. Is there a proper way of doing this? (I got a "hackey" answer by putting a \newpage before the \align, but this is immoral!)
I believe the standard answer would be to use a \minipage. However, the \proof reacts oddly to this.
Note: I found this question, this one, and this one. All have close-but-no-cigar answers (the last one seems promising, but has the same issue as minipage does).

aligncannot be broken across pages. You can tell it is allowed to break thealign(see theamsmathmanual), or you can add some comments using\intertext{...}or\shortintertextfrommathtools), with add break points. – daleif May 20 '14 at 11:23\newpagehack (although I am not sure I understand what you mean by them)? – user1729 May 20 '14 at 11:28aligninstead of attempting to control what it brings along to the next page and leaving behind an unfinished page. – daleif May 20 '14 at 11:35\pagebreakbetween two words in the last but two line before the display; or simply have~instead of a space before$a=b$. If you are keen to split the display, add\displaybreakbefore the\\that ends one line. – egreg May 20 '14 at 12:40~$a=b$.before I posted this question, and really should have mentioned this because it was so impressively not what I was expecting to happen - it kept thea=on the first page and I was left withb.on the next page. Which is impressively worse! In the example above, it brings the "some" onto the next page also, so you getSome $a=b$.on the next page. Again, this is not ideal. – user1729 May 20 '14 at 12:44Some~$a=\nolinebreak b$; if you don't want to split the display, you have no way: it doesn't fit on the page, so it goes to a new page. If the needed space is small, you can use\enlargethispage; actually if I say\enlargethispage{\baselineskip}just before the display, it fits. – egreg May 20 '14 at 12:56alignenvironment (which is what daleif was wanting to split, and as there are no other \s...). – user1729 May 20 '14 at 13:01alignenvironment. If Andrew Swann's answer is good for you, then I see a contradiction with you saying “I want to utilise the large empty space”, for the display will entirely go to the next page, so you're left with a big blank chunk. – egreg May 20 '14 at 13:14$a=b$.to go there, but I didn't mind the space in principle. I just wanted to stop the (in my specific case) silliness of having to turn a page to see$a=b$.rather than it being on the same page as the rest of the text. – user1729 May 20 '14 at 13:26align) will allow a page break there. but if you rewrite anything before that, and the display then fits, the vertical spacing will be all wrong. – barbara beeton May 20 '14 at 14:38