Let $A \subset \mathbb{R}^2$ be open and connected and let $u \in C^2(A)$ be harmonic. Then $u$ satisfies $$u(x)=\frac{1}{2\pi}\int_0^{2\pi}u(x+r\hat n(\theta)) \, d\theta$$
I'm given the following proof:
Let $x \in A$ and take $r>0$ so that $B_r(x) \subset A$ . Since $u$ is harmonic it satisfies $$0= \int_{B_r(x)} \Delta u(y) \, dy = \int_{B_r(0)} \Delta u(x+y) \, dy = \int_{\partial B_r(0)} \nabla u(x+y) \cdot \hat{n} \, ds$$ and then some more follows from here.
My problem is with how the last equality is made. I know that the divergence theorem says that $$\int_V \nabla\cdot F \, dV = \int_{\partial V} F \cdot d\vec S = \int_{\partial V}F \cdot \hat{n} \, dS$$ where $V$ is some volume in $\mathbb{R}^3$.
So is some sort of analagous statement in $\mathbb{R}^2$ being used here? That is, is there a statement saying that $$\int_S \nabla \cdot F \, dS = \int_{\partial S} F \cdot d\vec{r}$$? And then I assume $d\vec{r} = \hat{n} \, ds$
Yes, the divergence theorem holds in any dimension (even in one dimension where it's known as the fundamental theorem of calculus).
There are two approaches how to formulate it, either you define the surface integral of a scalar or you define the directed surface integral of a field both being equivalent:
$$\int_{\partial S} u \overline{dS} = \int_{\partial S} u\cdot \overline{n}dS$$
Perhaps you by $\overrightarrow{dr}$ mean the (normal) directed surface measure?