Non-commutative spectral theory for affine function spaces on convex sets