TITLE: Using Stokes's theorem to prove $curl(F) = 0 \implies F$ is conservative.
QUESTION [5 upvotes]: A classical result from vector calculus says that if a vector field $F: \mathbb{R}^3 \to \mathbb{R}^3$ satisfies curl$(F) = 0$, then $F$ is conservative, i.e. $F = \nabla f$ for some $f: \mathbb{R}^3 \to \mathbb{R}$. I am curious about the following rough sketch of a proof of this fact, using Stokes's theorem:
"Proof:" Recall that $F$ is conservative if and only if $\int_C F \cdot dr = 0$ for every closed curve $C$. To show the latter condition, let $C$ be any curve, and choose an oriented surface $S$ with $\partial S = C$(!). By Stokes's theorem,
$\int_C F \cdot dr = \int_S \text{curl}(F) \cdot dS = \int_S 0 \cdot dS = 0.$
Thus $F$ is conservative. 
I am wondering how the formal details of (!) would go: namely, how does one show that any closed curve $C$ is the boundary of some oriented surface $S$? This seems intuitively obvious. I would be happy with a proof of this fact even under very nice assumptions on $C$, say if $C$ is a simple, closed, smooth curve. 
I haven't been able to find a reference for this, other than a parenthetical mention in Stewart's calculus, which says 'This can be done, but the proof requires advanced techniques.'

REPLY [2 votes]: You don't need to prove that it is the boundary of a surface. In fact, most calculus courses won't define what "being a surface" means, which is one of the reasons for which I personally think it would be more pedagogical to focus on "homotopy" terminology and not on "surface" terminology on calculus courses, since what you will generally see is an homotopy (and homotopies are much easier to define and understand elementarily and rigorously at the same time). 
That personal output aside, what you need is to build a (smooth) map $H:I \times I \to \mathbb{R}^3$ such that $H(t,0)=c_1(t/2)$, $H(t,1)=c_1(1-t/2)$. This is trivial by convexity of $\mathbb{R}^3$ (note that this point of view also directly points out the reason as to why the topology of the ambient space is relevant for the result to be true) - just pick $H(t,s)=(1-s)c_1(t/2)+sc_1(1-t/2)$.
Then you have two options: prove Stokes' theorem for homotopies, which is a nice exercise through an explicit calculation: Define $I(s)=\int_{H(s,\cdot)} F$, calculate its derivative and use the fundamental theorem of calculus...
...or you can apply the "conventional" Stokes' theorem to the pull-back of the form you are integrating to $I \times I$, which is essentially the same thing but in more generality and using the traditional Stokes' theorem for manifolds with boundaries.