Formalising an easy proof: Dirichlet's approximation theorem

from blog lawrencecpaulson.github.io, | ↗ original
For many, the process of transforming a textbook mathematical proof into a formal document remains mysterious. Here, we look at a straightforward example. Dirichlet’s approximation theorem states that each real number has a rational approximation with a relatively small denominator. The proof combines an application of the pigeonhole principle...