I have been working my way through an exercise from Pugh's "Real Mathematical Analysis" which asks me to prove that two dyadic squares in $\mathbb{R}^2$ of same size either intersect along a common edge, have a common vertex, are the same or are disjoint. It seems intuitively obvious to me (and I have made some progress in the proof as well), but I struggle with rigorously writing it down. Here's how far I got.
Intuition/Explanation
Dyadic cubes are fairly easy to explain: a dyadic cube in $\Bbb R^m$ is the cartesian product of $m$ intervals of same length, with the catch that the interval can be written as $[\frac{a}{2^k}, \frac{a+1}{2^k}]$, with $a\in\mathbb{Z}$ and $k\in\mathbb{N}$ including $k = 0$. So for example, $[\frac{a}{2^k}, \frac{a+1}{2^k}]\times[\frac{b}{2^k}, \frac{b+1}{2^k}]$ would be an example of a planar dyadic cube (dyadic square) as the length of both intervals is the same, namely $\frac{1}{2^k}$.
My idea has been that if there was a common point $x$ in any 2 different dyadic squares which is neither on a common edge nor vertex, then I could show that one of the squares would have their edge along a "coordinate line" which is not a dyadic number. To show what I mean, I attached the image below:
Suppose the green square was an ordinary dyadic square. My assumption is that if there was a square such as the red one intersecting the green one, then there's no way coordinate line A (I don't know the right term I could use to describe the line) has a natural number as its value (again I don't know how to say this in mathematical terms, as that would imply that there was a integer between two adjacent integers.
My question is: How could I put this into words?
My progress so far
Suppose there are 2 dyadic squares A, B of same size such that they are not the same, do not intersect along a common line or vertex. Let $M = \{x\in \mathbb{R}|x\in A \land x\in B\}$.
Since they intersect, they can intersect only in one of 2 possible ways (both drawn out below):
Let $x$ be any point in $M$. Consider the closest square side lying above $x$. This side is between two dyadic rationals, namely $\frac{a}{2^k}$ and $\frac{a+1}{2^k}$. This side lying between these two dyadic rationals would also be (by hypothesis) a dyadic rational (described in picture as $\frac{c}{2^k}$, implying that $\frac{a}{2^k} < \frac{c}{2^k} < \frac{a+1}{2^k}$, from which $a < c < a+1$ would follow, which is not possible for any $c\in \mathbb{Z}$
It is clear to me that there are some large gaps in this proof:
How could I show that the only way the two squares could intersect is in the ways I've drawn out below?
How could I show that it follows that there is a line lying above any point in the set M?
Overall, how do I make this proof more "mathematical"?
Lastly, I ask for some advice - I often catch myself having an idea such as this one but then greatly struggle with putting the proof together. How do I get better at this / practice this skill in a more targeted fashion?