Open the sample
file examples/toys/ceilingsAndFloors.als (using the icon
bar or File menu). The left half of the screen shows
the text of the model, the top-right area displays feedback and
visualizations, and the bottom-right corner lets you quickly
switch between models that are currently open.Now that we've got the model up on the screen, let's analyze it.
Build the model
(use the icon bar or Tools menu)
Execute that
command (icon bar or Tools menu).
Choose the
Layout option on the icon bar to customize the solution.
When you do so, the left hand side of the screen (the model text)
is replaced by a set of customization options. The right hand
side still displays the diagram of the solution Alloy found.
Select the rightmost tab on the top of the left window and play
around with the customization options. You can hide, rename, and
recolor nodes and arcs in the diagram. Choose "Update"
on the right end of the icon bar (
) to apply any
changes you make. 
) and select "chk BelowToo' [2] (exp 0)"
from the pull-down command selection bar. This one checks an
assertion about the model that is correct, so you won't get a
counterexample.
Execute that
command (icon bar or Tools menu). Note that you do not
need to re-build the model when you select a new command; you
only need to re-build if you change the text of the model.
You can learn more about modeling with the Alloy language from the Tutorial, the Reference Manual, and the FAQ. You can learn more about the research behind Alloy from our publications page. A good place to start is with the 'Micromodularity' paper and the 'Intentional Naming' case study. If you are an Alloy 2 user, you should read about what's new in Alloy 3.
Please send suggestions and bug reports to
. For other questions, try out the alloy-discuss
yahoo group.
Tiago Massoni Rohit Gheyi, and Paulo Borba have written a short list of hints and tips for using Alloy: