Admin/page/dist-content/notes_win_cygwin.content
author haftmann
Fri, 06 May 2005 15:00:08 +0200
changeset 15934 eb92bebb925e
child 15942 55c3932335b9
permissions -rw-r--r--
Added notes for installation on Windows
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15934
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
     1
%title%
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
     2
Isabelle on Windows
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
     3
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
     4
%body%
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
     5
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
     6
<h2>Preconditions and restrictions</h2>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
     7
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
     8
<p>Please notice before you go ahead:
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
     9
<ul>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    10
    <li>The ML system these notes apply to is
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    11
    <a href="http://www.smlnj.org/">Standard ML of New Jersey</a>;
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    12
    it is <em>not</em> known yet how to get Isabelle run completely with
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    13
    <a href="www.polyml.org/">Poly/ML</a>. See <a href="#polyml">a note
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    14
    on Poly/ML</a> down this page.</li>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    15
    <li>It is assumed you have some experience with an Unix operating
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    16
    system (e.&nbsp;g. what a shell is for and how to use it basically).
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    17
    This is neccessary since the ML system has to be compiled from scratch.</li>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    18
</ul>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    19
</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    20
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    21
<p>Thanks to
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    22
<a href="http://cswww.essex.ac.uk/Research/FSS/projects/isawin/">Norbert V&ouml;ker</a>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    23
and <a href="http://www.abo.fi/~viorel.preoteasa/isabelle/">Viorel Preoteasa</a>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    24
whose efforts helped a lot to get Isabelle run this way.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    25
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    26
<h2>Installing Cygwin</h2>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    27
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    28
<p>Cygwin is a POSIX emulation layer for windows; it contains ports of a large
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    29
collection of common Unix software (shells, perl, gcc, X11, latex, ImageMagick,
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    30
&hellip;).</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    31
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    32
<p>To install it, get the installer from the
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    33
<a href="http://www.cygwin.com">Cygwin website</a> and run it. It will ask you
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    34
which packages to install, and then downloads and installs them.
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    35
Please make sure you install everything needed by Isabelle; it is hard to give
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    36
a concise list of packages here since the bundling of Cygwin packages may vary
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    37
over time, but installing the base packages, perl, make, xemacs and x-server
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    38
should be a good choice for the beginning.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    39
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    40
<p>By default, cygwin installs to <tt>c:\cygwin</tt>; you may choose an arbitrary
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    41
location, but it is recommended that it does not include any space or exotic
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    42
characters. This directory will then become the root directory of the Cygwin
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    43
filesystem tree, i.&nbsp;e. the Cygwin path <tt>/opt/smlnj</tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    44
will be mapped to Windows path <tt>c:\cygwin\opt\smlnj</tt>.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    45
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    46
<p>After installation, open a Cygwin shell window (normally the installer
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    47
makes a shortcut for you).</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    48
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    49
<h2>Getting and building SML/NJ</h2>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    50
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    51
<p>Now we are ready to get and build <a href="http://www.smlnj.org/">SML/NJ</a>;
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    52
before this, set the environment variable SMLNJ_CYGWIN_RUNTIME to 1:
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    53
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    54
    <blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    55
        <tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    56
          export SMLNJ_CYGWIN_RUNTIME=1
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    57
        </tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    58
    </blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    59
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    60
    <blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    61
    (or
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    62
        <tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    63
          setenv SMLNJ_CYGWIN_RUNTIME 1
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    64
        </tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    65
    for c shells).
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    66
    </blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    67
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    68
This setting will tell the build process that it should <em>not</em> attempt
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    69
to build SML/NJ natively for Win32 but for Cygwin instead (see further
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    70
<a href="http://smlnj.cs.uchicago.edu/dist/working/110.53/CYGWININSTALL">CYGWININSTALL</a>).</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    71
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    72
<p>So far, this whole setup was tested using the latest working version (110.53)
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    73
of SML/NJ from <a href="http://smlnj.cs.uchicago.edu/dist/working/110.53/">http://smlnj.cs.uchicago.edu/dist/working/110.53/</a>.
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    74
SML/NJ provides a nice installer enabling you to download and build it.
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    75
Read <a href="http://smlnj.cs.uchicago.edu/dist/working/110.53/INSTALL">INSTALL</a>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    76
to learn about the different possibilites to do this. The default packages
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    77
should be sufficient.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    78
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    79
<p>In the following, it is assumed that you install SML/NJ to Cygwin path <tt>/opt/smlnj</tt>;
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    80
if you choose an other
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    81
location, some tweaking in the <a href="#config"><tt>etc/settings</tt> file</a>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    82
may be neccessary later.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    83
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    84
<p>Whenever SMLNJ is used, the SMLNJ_CYGWIN_RUNTIME environment variable
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    85
must be set to 1 (lateron a convenient mechanism to make this the default
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    86
is proposed).</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    87
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    88
<h2>Installing Isabelle</h2>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    89
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    90
<p>Download the latest Isabelle and ProofGeneral release packages from 
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    91
<a href="http://isabelle.in.tum.de/dist/packages.html">http://isabelle.in.tum.de/dist/packages.html</a>.
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    92
Assuming that you are in the directory where
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    93
you downloaded the files, install them into <tt>/opt</tt> by typing into the
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    94
bash shell:
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    95
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    96
    <blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    97
        <tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    98
            tar -C /usr/opt -xvzf <a href="http://isabelle.in.tum.de/dist/Isabelle2004.tar.gz">Isabelle2004.tar.gz</a><br />
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
    99
            tar -C /usr/opt -xvzf <a href="http://isabelle.in.tum.de/dist/ProofGeneral-3.5.tar.gz">ProofGeneral-3.5.tar.gz</a>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   100
        </tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   101
    </blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   102
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   103
During extracting, one inconvenience may occur, see <a href="inconvenience">below</a>.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   104
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   105
<p>The location <tt>/opt</tt> again is just a proposal; if you choose other
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   106
locations, some tweaking in the <a href="#config"><tt>etc/settings</tt> file</a>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   107
may be neccessary later.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   108
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   109
<h2 id="config">Configuring Isabelle</h2>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   110
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   111
<p>Edit the file <tt>/opt/Isabelle/etc/settings</tt>; first, uncomment the lines
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   112
about SMLNJ. Also set the variable SMLNJ_CYGWIN_RUNTIME to 1, in order the
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   113
cygwin version of SMLNJ is used. As mentioned above, the path variables for 
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   114
the ML system and ProofGeneral may need adjustions, depending on your different
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   115
installation locations.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   116
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   117
<p>Take heed of the setting of ISABELLE_HOME_USER; by default, this is
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   118
<tt>~/isabelle</tt>. To detect to which Windows path this will be mapped,
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   119
type into the Cygwin bash shell:
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   120
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   121
    <blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   122
        <tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   123
            cygpath --windows ~/isabelle
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   124
        </tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   125
    </blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   126
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   127
If you don't like this location to be the isabelle home directory, consider
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   128
setting of ISABELLE_HOME_USER to another value; use <tt>cygpath --unix
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   129
&lt;winpath&gt;</tt> to detect which Cygwin path a given Windows path is mapped to.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   130
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   131
<p>A typical change could look like this:
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   132
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   133
    <blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   134
        from<br/>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   135
        <tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   136
            # Standard ML of New Jersey 110 or later<br>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   137
            #ML_SYSTEM=smlnj-110<br>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   138
            #ML_HOME="$ISABELLE_HOME/../smlnj/bin"<br>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   139
            #ML_OPTIONS="@SMLdebug=/dev/null"<br>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   140
            #ML_PLATFORM=$(eval $("$ML_HOME/.arch-n-opsys" 2>/dev/null); echo "$HEAP_SUFFIX")<br>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   141
        </tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   142
    </blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   143
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   144
    <blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   145
        to<br/>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   146
        <tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   147
            # Standard ML of New Jersey 110 or later<br>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   148
            SMLNJ_CYGWIN_RUNTIME=1<br>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   149
            ML_SYSTEM=smlnj-110<br>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   150
            ML_HOME="$ISABELLE_HOME/../smlnj/bin"<br>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   151
            ML_OPTIONS="@SMLdebug=/dev/null"<br>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   152
            ML_PLATFORM=$(eval $("$ML_HOME/.arch-n-opsys" 2>/dev/null); echo "$HEAP_SUFFIX")
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   153
        </tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   154
    </blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   155
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   156
</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   157
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   158
<h2>Building logics</h2>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   159
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   160
<p>Now we can compile some logics. Start the cygwin shell (if not still
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   161
running) and type:
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   162
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   163
    <blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   164
        <tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   165
            cd /opt/Isabelle<br>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   166
            build HOL<br>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   167
            build ZF
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   168
        </tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   169
    </blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   170
</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   171
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   172
<p>The compilation process may take quite a lot of time (depending also on 
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   173
how fast the computer is). When starting building some logic the build
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   174
program shows some variables and expects the user input &ndash; just hit enter.
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   175
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   176
<h2>Running Isabelle with ProofGeneral</h2>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   177
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   178
<p>On Linux Isabelle can be started by two scripts located in <tt>Isabelle/bin</tt>:
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   179
<tt>Isabelle</tt> and <tt>isabelle</tt>. <tt>Isabelle</tt> attempts to start
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   180
ProofGeneral with XEmacs, and isabelle starts it in an SML shell session.
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   181
However Windows treats the two names as one. To get around this just copy
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   182
<tt>/opt/Isabelle/bin/isabelle</tt> to <tt>/opt/Isabelle/bin/Isabell</tt>.
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   183
The script <tt>/opt/Isabelle/bin/Isabell</tt> will start Isabelle with ProofGeneral.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   184
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   185
<p>How everything is ready to test some theory. Start the cygwin shell 
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   186
(if not already running) and type
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   187
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   188
    <blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   189
        <tt>startx &amp;</tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   190
    </blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   191
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   192
This will start the cygwin X server and an X shell window. In the X shell window,
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   193
type
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   194
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   195
    <blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   196
        <tt>/opt/Isabelle/bin/Isabell &amp;</tt>.
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   197
    </blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   198
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   199
This will start the ProofGeneral interface for Isabelle. After a while an empty buffer 
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   200
<tt>scratch.thy</tt> is created. You can turn on X-Symbol and Electric Terminator
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   201
from the menu Proof-General &rarrow; Options.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   202
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   203
<p>Load one of your favorite theory and test your Isabelle installation
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   204
by proving something.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   205
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   206
<p>To simplify starting ProofGeneral, consider writing a Windows command script,
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   207
e.&nbsp;g.
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   208
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   209
    <blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   210
        <tt>@bash startx -geometry 30x4 -iconic -e Isabell</tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   211
    </blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   212
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   213
and assigning a shortcut in the start menu to it.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   214
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   215
<h2 id="inconvenience">Inconveniencies with the current version of Isabelle</h2>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   216
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   217
<p>With the current Isabelle release (Isabelle 2004), there are two inconveniencies:
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   218
<ul>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   219
    <li>During extraction you will get a warning that file <tt>Real/HahnBanach/Aux.thy</tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   220
      can not be created. This is  because <tt>Aux</tt> is not allowed as a
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   221
      filename under Windows. If you do not want to run the HahnBanach example,
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   222
      you might simply want to ignore this warning.</li>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   223
    <li>The tool <tt>isatool mkdir</tt> tries to detect the name of the current
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   224
    user, to put it into the generated <tt>root.tex</tt>. Alas, on Windows, this
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   225
    leads to an unquoted <tt>\</tt> in the TeX file. So you either must edit
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   226
    your <tt>root.tex</tt> manually to fix this, or directly patch <tt>/opt/Isabelle/lib/Tools/mkdir</tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   227
    by replacing
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   228
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   229
        <blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   230
            <tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   231
                AUTHOR=$("$AUTO_PERL" -e "@pw = getpwnam(\"$USER\"); print @pw[6]" | tr _ -)
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   232
            </tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   233
        </blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   234
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   235
        with
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   236
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   237
        <blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   238
            <tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   239
                AUTHOR="default author name"
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   240
            </tt>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   241
        </blockquote>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   242
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   243
    </li>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   244
</ul>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   245
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   246
<p>To get around both inconveniencies, consider using a recent developer snapshot
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   247
of Isabelle; either, both inconveniencies won't be alive anymore in the next
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   248
Isabelle release.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   249
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   250
<h2 id="polyml">A note on Poly/ML</h2>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   251
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   252
<p>As indicated above, Isabelle does <em>not</em> run
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   253
neatlessly with <a href="www.polyml.org/">Poly/ML</a> on Windows, due to two
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   254
reasons:
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   255
<ul>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   256
    <li>The native port of Poly/ML for windows does not, for what reason
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   257
    ever, support shell-like stdin and stdout; instead, it implements
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   258
    its own &raquo;terminal&laquo;. Alas, all &raquo;higher&laquo;
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   259
    Isabelle features (Isar, ProofGeneral, &hellip;) depend on stdin and stdout.
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   260
    So, though on the pure ML level Isabelle may run, its usability will be
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   261
    very restricted.</li>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   262
    <li>It is not clear how Poly/ML has to be compiled for Cygwin.</li>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   263
</ul>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   264
</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   265
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   266
<p>If you know how to circumvent (fully or partially) any of these problems,
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   267
please let us know.</p>
eb92bebb925e Added notes for installation on Windows
haftmann
parents:
diff changeset
   268