The cohomology of non−locality and contextuality - Abramsky, S; Mansfield, S; Barbosa, R (Electronic Proceedings in Theoretical Computer Science, 2012)