I've been told that principal $G$-bundles $E \to M$ are classified by specifying a characteristic class $c(E) \in H^2(M,\pi_1(G)) ≈ \pi_1(G)$
I have a few questions
- Given a bundle $E$ how do we get a $c(E)$ and conversely?
I've seen something like this before where the Picard group is isomorphic to $H^1(O^*)$ because of transition functions but I'm not sure why here we have the second cohomology and the sheaf is the constant sheaf of fundamental group?
- Why is the second sheaf cohomology isomorphic to $\pi_1(G)$?
Here M is a smooth orientable surface and G is a Lie group