Theorem 17.5.2. (Periods and exactness). Integration around cycles induces an isomorphism
Argument in the manuscript
Proof. For a -form , set . The period on a cycle is . If , these integrals are endpoint differences and all periods vanish.
Conversely suppose all periods vanish. Fix a basepoint and define by integrating along a path from it to . Any two paths differ by cycles, so is well defined. It is continuous and has derivative on each edge. Near a leaf, , so is constant. At a two-valent vertex, smooth matching of the one-form gives smooth matching of its primitive. At a higher-valent vertex, the outgoing derivatives of are the outgoing coefficients of , whose sum is zero. Thus belongs to and .
To prove surjectivity, represent a functional on by some vector . On each edge choose a smooth bump supported strictly inside the edge and of integral . These coefficients define a -form because they vanish near every vertex. Its periods are the prescribed functional. ◻