The Riemann–Roch theorem for analytic embeddings