Let denote ∠BAD=α. Then ∠BCA=BAD=α.
Since ∠BCA=90∘−α=∠AEM⇒∠MED=α and we conclude that △EMD is. Similarly, it is easy to show AM=EM=MD. In other words, point M is the midpoint of AD. Similarly, N is the midpoint of BC. Denote P as the midpoint of AC. It implies that NP=21AB and MP=21CD.

Therefore the inequality MN≤NP+MP=21(CD+AB) holds. If points N, P, M lie on a line then the MN=21(CD+AB) equality holds and NP∥MP⇒NP∥AB and MP∥CD⇒CD∥AB. It means ABCD is a trapezoid.