The fundamental theorem for divergences (Divergence theorem, Gauss's theorem)
$$\oint_{\mathcal{S}}\mathbf{v}\cdot d\mathbf{a} = \oint_{\mathcal{S}_1}\mathbf{v}\cdot d\mathbf{a} + \oint_{\mathcal{S}_2}\mathbf{v}\cdot d\mathbf{a} = \sum_i^N \oint_{\mathcal{S}_i}\mathbf{v}\cdot d\mathbf{a} = \sum_i^{\color{red}\infty} \color{blue}{\underbrace{\oint_{\mathcal{S}_i}\mathbf{v}\cdot d\mathbf{a}}_{\color{red}\to\, 0}}$$
Recalling the definition of divergence,
$$\nabla\cdot\mathbf{v} = \lim_{V\to 0}\frac{\oint_{\mathcal{S}}\mathbf{v}\cdot d\mathbf{a}}{V} \quad\longrightarrow\quad \color{blue}{\oint_{\mathcal{S}_i}\mathbf{v}\cdot d\mathbf{a} = (\nabla\cdot\mathbf{v})\,d\tau}$$
$$\Rightarrow\quad \oint_{\mathcal{S}}\mathbf{v}\cdot d\mathbf{a} = \int_{\mathcal{V}}(\nabla\cdot\mathbf{v})\,d\tau$$
The fundamental theorem for curls (Stokes' theorem)
$$\oint_{\mathcal{P}}\mathbf{v}\cdot d\mathbf{l} = \oint_{\mathcal{P}_1}\mathbf{v}\cdot d\mathbf{l} + \oint_{\mathcal{P}_2}\mathbf{v}\cdot d\mathbf{l} = \sum_i^N \oint_{\mathcal{P}_i}\mathbf{v}\cdot d\mathbf{l} = \sum_i^{\color{red}\infty} \color{blue}{\underbrace{\oint_{\mathcal{P}_i}\mathbf{v}\cdot d\mathbf{l}}_{\color{red}\to\, 0}}$$
Recalling the definition of curl,
$$(\nabla\times\mathbf{v})\cdot\hat{\mathbf{n}} = \lim_{a\to 0}\frac{\oint_{\mathcal{P}}\mathbf{v}\cdot d\mathbf{l}}{a} \quad\longrightarrow\quad \color{blue}{\oint_{\mathcal{P}_i}\mathbf{v}\cdot d\mathbf{l} = (\nabla\times\mathbf{v})\cdot\hat{\mathbf{n}}\,da}$$
$$\Rightarrow\quad \int_{\mathcal{S}}(\nabla\times\mathbf{v})\cdot d\mathbf{a} = \oint_{\mathcal{P}}\mathbf{v}\cdot d\mathbf{l}$$