doc-src/IsarRef/Thy/Symbols.thy
author Walther Neuper <neuper@ist.tugraz.at>
Thu, 12 Aug 2010 15:03:34 +0200
branchisac-from-Isabelle2009-2
changeset 37913 20e3616b2d9c
parent 30242 aea5d7fa7ef5
child 43522 e3fdb7c96be5
permissions -rw-r--r--
prepare reactivation of isac-update-Isa09-2
     1 theory Symbols
     2 imports Pure
     3 begin
     4 
     5 chapter {* Predefined Isabelle symbols \label{app:symbols} *}
     6 
     7 text {*
     8   Isabelle supports an infinite number of non-ASCII symbols, which are
     9   represented in source text as @{verbatim "\\"}@{verbatim "<"}@{text
    10   name}@{verbatim ">"} (where @{text name} may be any identifier).  It
    11   is left to front-end tools how to present these symbols to the user.
    12   The collection of predefined standard symbols given below is
    13   available by default for Isabelle document output, due to
    14   appropriate definitions of @{verbatim "\\"}@{verbatim isasym}@{text
    15   name} for each @{verbatim "\\"}@{verbatim "<"}@{text name}@{verbatim
    16   ">"} in the @{verbatim isabellesym.sty} file.  Most of these symbols
    17   are displayed properly in Proof~General if used with the X-Symbol
    18   package.
    19 
    20   Moreover, any single symbol (or ASCII character) may be prefixed by
    21   @{verbatim "\\"}@{verbatim "<^sup>"}, for superscript and @{verbatim
    22   "\\"}@{verbatim "<^sub>"}, for subscript, such as @{verbatim
    23   "A\\"}@{verbatim "<^sup>\<star>"}, for @{text "A\<^sup>\<star>"} the alternative
    24   versions @{verbatim "\\"}@{verbatim "<^isub>"} and @{verbatim
    25   "\\"}@{verbatim "<^isup>"} are considered as quasi letters and may
    26   be used within identifiers.  Sub- and superscripts that span a
    27   region of text are marked up with @{verbatim "\\"}@{verbatim
    28   "<^bsub>"}@{text "\<dots>"}@{verbatim "\\"}@{verbatim "<^esub>"}, and
    29   @{verbatim "\\"}@{verbatim "<^bsup>"}@{text "\<dots>"}@{verbatim
    30   "\\"}@{verbatim "<^esup>"} respectively.  Furthermore, all ASCII
    31   characters and most other symbols may be printed in bold by
    32   prefixing @{verbatim "\\"}@{verbatim "<^bold>"} such as @{verbatim
    33   "\\"}@{verbatim "<^bold>\\"}@{verbatim "<alpha>"} for @{text
    34   "\<^bold>\<alpha>"}.  Note that @{verbatim "\\"}@{verbatim "<^bold>"}, may
    35   \emph{not} be combined with sub- or superscripts for single symbols.
    36 
    37   Further details of Isabelle document preparation are covered in
    38   \chref{ch:document-prep}.
    39 
    40   \begin{center}
    41   \begin{isabellebody}
    42   \input{syms}  
    43   \end{isabellebody}
    44   \end{center}
    45 *}
    46 
    47 end