next up previous contents
Next: 5. Exercises Up: 1. Introductory Material Previous: 3. A Brief Tutorial

Subsections

  
4. On-Line Help

Most of the help and documentation facilities described in this chapter require that you have a workstation running Emacs under X windows. In particular, you need a TEX previewer and one of the Emacs X-menu facilities. On-line help falls into three categories:

4.1 The Manual

The manual can be viewed on a TEX preview window by selecting the Manual option in the Help menu or by entering the Emacs command M-x imps-manual-entry. You will be prompted for a specific entry in the manual. The entry can be in one the following categories:

As usual, the Emacs input completion facility is available, so that you only need to type in the first few letters of the entry. When you complete your selection, the previewer window (which might be iconified) will display the IMPS manual on the page which contains the entry. However, other pages of the IMPS manual are accessible by using the previewer's page motion commands. This allows you to easily examine related entries in the manual.

4.2 Def-forms

All IMPS objects are built using a specification form called a def-form. The following are some examples of def-forms:

   (def-constant CONVERGENT%TO%INFINITY
     "lambda(s:[zz,rr],
        forall(m:rr,
          forsome(x:zz, 
            forall(j:zz, x<=j implies m<=s(j)))))"
     (theory h-o-real-arithmetic))
   (def-theory PARTIAL-ORDER
     (language language-for-partial-order)
     (component-theories h-o-real-arithmetic)
     (axioms
      (prec-transitivity
       "forall(a,b,c:uu, 
          a prec b and b prec c
           implies
          a prec c)")
      (prec-reflexivity
       "forall(a:uu, a prec a)")
      (prec-anti-symmetry
       "forall(a,b:uu, 
          a prec b and b prec a 
           implies
          a = b)")))
Def-forms have a tag which is the second s-expression of the form (that is, the name immediately following the string def-). Thus the tags of the two s-expressions above are convergent%to%infinity and partial-order. The tag of the def-form is usually the name of the object being defined or modified.

There are two good reasons you may want to locate def-forms:

Def-forms can be viewed in an Emacs buffer by selecting the Find def-form option in the Help menu or by typing C-c . in an IMPS buffer. IMPS will then request a name. As usual, the Emacs input completion facility is available, so that you only need to type in the first few letters of the entry. When you complete your selection, IMPS will then search in the theory library for those forms which define the selected entry. Note that there may be more than one entry. There are several reasons for this:

Note also that the located form may have a different tag than the name selected. For example, the definition of the theory partial-order contains the axiom prec-transitivity.

4.3 Using Menus

Almost all user interaction with IMPS can be initiated using menus. The method of menu invocation as well as the menu format depends on the version of Emacs you are using:

The options available to the user are determined by the buffer of the selected window. The following is a partial list of the options associated to the two IMPS-related buffer modes:

Note that the applicable commands and macetes are determined dynamically based on the form of the current sequent.


next up previous contents
Next: 5. Exercises Up: 1. Introductory Material Previous: 3. A Brief Tutorial
System Administrator
2000-07-23