Compare the melting points of hydrogen fluoride (HF) and hydrogen iodide (HI).
I know the following things:
$\ce{HF}$ melts at $189.6~\mathrm{K}$ and $\ce{HI}$ at $222.35~\mathrm{K}$.
There are a lot of factors that have to be considered while comparing melting point, i.e., lattice enthalpy, packing fraction, intermolecular forces.
Generally, compounds that show hydrogen bonding show it in the solid and liquid phases because in the gaseous phase the molecules have enough energy to break the electrostatic interactions of hydrogen bonding.
So, HF shows hydrogen bonding in solid state. In fact, it even shows hydrogen bonding in gaseous state, though its not relevant here.As molecular mass increases, van der Waals interactions between molecules also increase. If we only consider this factor, then melting point of HI must be definitely higher.
The strength of hydrogen bonding of HF is so much that the boiling point of $\ce{HF}>\ce{HI}$ although boiling point of $\ce{SbH3}>\ce{NH3}$, i.e. the hydrogen bonding dominates the van der Waals interactions in HI molecules because of their high molecular mass.
It's the combined effect of all the factors that determine the melting point of a substance.
Lattice energy is inversely related to the internuclear distance, it is also inversely proportional to the size of the ions. So, I expect HF to have more lattice energy.
Every factor that I can think of is in favour of HF except molecular mass. But if molecular mass of iodine is the reason that melting point of HI is higher, than boiling point of HI must have also been higher. Then why is the melting point of HI higher than that of HF?
Why is this contradiction?
Do let me know if I am wrong in the above mentioned facts or if I have any gaps in my understanding of the above points.