Computer-Supported Modeling and Reasoning WS03/04:   Exercises

You can see all exercises so far, or jump to a particular exercise sheet following the links below:

Number Date Additional files Model solutions
1 17.10.2003
2 24.10.2003
3 31.10.2003 ONE_AXIOM.thy, ONE_RULE_fragment.thy, NSet.thy, NSet.ML
4 07.11.2003 RED.thy, CONV.thy, CNUM.thy
5 14.11.2003 STT.thy, Encode_fragment.thy,
6 21.11.2003
7 28.11.2003
8 05.12.2003
(absence) 12.12.2003
9 19.12.2003 HOL_BASIC.thy, HOL_BASIC.ML
10 09.01.2004
11 16.01.2004 FinSet.thy
12 23.01.2004
13 30.01.2004
14 06.02.2004 AVL_fragment.thy
15 13.02.2004 AVL_fragment.ML

Configuring your system for Isabelle

Open a shell and type setup isabelle in it. This is a shellscript that will modify your path so that all files related to Isabelle will be found. In future sessions, this command should be invoked automatically. For this purpose, add the following line to your shell configuration file (called .cshrc if your shell is the c-shell or tc-shell):
setup isabelle
You will always run Isabelle by starting xemacs. Before starting xemacs, add the following line to the init.el file in your .xemacs directory:
(load-file "/usr/local/ProofGeneral-3.4/generic/proof-site.el")
This will instruct xemacs to use ProofGeneral, which is a sophisticated specialized interface providing many functionalities for running Isabelle.
It is important that you start xemacs from the shell (and not using, say, pop-up menus of your window manager). For the first week's exercises, create a working directory and type xemacs ex1.ML. The file ex1.ML will be your first proof script, that is, a file containing Isabelle proofs. Now customize xemacs using the rich menus provided:
  • Multiple Frames: Isabelle will use several xemacs subwindows (simply windows in emacs jargon). You may choose if you want these displayed all in one window (called frame in emacs jargon) split into several parts or as several windows. This is done by (un)ticking the box "Proof-General:Options:Multiple Frames".
  • X-Symbol: For a nice rendering of mathematical symbols, xemacs uses the X-symbol package. To enable it, tick the box "Proof-General:Options:X-Symbol".
    You should now select "Proof-General:Options:Save Options"
  • Choosing the logic: We will use the logic FOL. Go to "Proof-General:Advanced:Customize:Isabelle:Chosen Logic". This will open a new buffer. Set the logic to "FOL" in this buffer and click "Save".
  • Electric terminator: This will save you from having to type the return key to fire proof commands. Go to "Proof-General:Advanced:Customize:User Options:Electric Terminator Enable". This will open a new buffer. Set the option to "On" and click "Save".

The course is now finished (February 2004) and this page will no longer be maintained. A pointer to an up-to-date version of the course material will be given on my homepage.


Comments? Send an email to J.-G. Smaus.