Install DM-Check

Follow these steps to install Maude and set up DM-Check on your system.

Step 1: Install Maude

DM-Check runs on top of Maude, a high-performance rewriting logic system. The current DM-Check release is tested with Maude alpha 165.

Note: If Maude is already installed and accessible from your terminal, skip to the next step.

Step 2: Download DM-Check

Get the latest public release of DM-Check (public alpha 12).

Step 3: Extract the Archive

Unzip the downloaded file to a directory of your choice. The folder will contain:

  • dm-check.maude – the tool core functionalities and interface.
  • NuITP.maude – the compatible NuITP release used to discharge proof obligations.
  • examples/ – the case studies of this site: each folder has the Maude module, a ready-to-run .dmc script with the DM-Check commands, and the NuITP proof material when needed.

Keep dm-check.maude and NuITP.maude in the same directory. No separate NuITP installation is required.

Step 4: Load DM-Check in Maude

Launch Maude from the folder where you extracted the archive, load your theory, then load DM-Check and set the main module. Start Maude with -allow-files so that DM-Check can read and write script files (load and save proof):

$ maude -allow-files
Maude> load {YOUR-THEORY}.maude
Maude> load {FILE-PATH}/dm-check.maude

DM-Check> set module {YOUR-MODULE} .

Note: Without the flag everything works except reading and writing script files: those commands answer File operations disabled. -trust also enables them.

You’re now ready to use DM-Check. For the complete command reference, verification workflow, and specification requirements, see the user manual.

Step 5: Run a script

A .dmc file is a plain-text DM-Check script. The load command runs it as if its commands were typed at the prompt, and prints each command before executing it. Try the Bakery case study from the extracted folder:

$ maude -allow-files
Maude> load examples/bakery/bakery.maude
Maude> load dm-check.maude

DM-Check> load examples/bakery/bakery.dmc

Script format and related commands:

  • One command per line; end a line with \ to continue the command on the next line.
  • Blank lines and comments are ignored: lines starting with ---, *** or #, and Maude block comments ***( ... ).
  • The script stops at the end of the file, or as soon as a command cannot be parsed or executed (for instance, when NuITP cannot process one of its formulas). Other warnings do not stop it, so read the whole output.
  • load <file> and save proof <file> take no final “ .” (unlike the other commands). save proof writes the commands accepted so far as a new script, so an interactive session can be replayed later.

Node numbers in a script refer to the numbering of the session that produced it, so a script is replayed faithfully only from the same starting commands. Scripts written with save proof always are.