The Sobolev space is a separable Hilbert space. A bounded sequence therefore has a weakly convergent subsequence by the weak subsequence of a bounded Hilbert-space sequence; write in . Since is bounded with smooth boundary, the Rellich-Kondrachov compactness theorem says that is compact. Passing to a further subsequence gives
Let . For each , Bessel inequality gives
so the th coordinate sequence is bounded. By the Bolzano-Weierstrass theorem, choose a subsequence on which the first coordinate converges. From it choose a further subsequence on which the second coordinate converges, and continue.
Take the diagonal subsequence . For every fixed , its th coordinate converges, and it remains bounded by . The coordinate criterion for weak convergence in a separable Hilbert space supplies an such that
This proves the theorem on a weak subsequence of a bounded Hilbert-space sequence.
Choose . The assumed bound and the weak subsequence of a bounded Hilbert-space sequence result give a subsequence for which
For every test function , a change of variables yields the difference-quotient integration-by-parts identity
The right side converges to , while the left side converges to . Thus is the th weak derivative of . This holds for every , so