Annotated code for Patrick Maiden & Jonathan Schear's cs195y: Logic for Hackers Alloy case studies.