doc-src/TutorialI/Documents/document/Documents.tex
author wenzelm
Sat, 05 Jan 2002 01:15:12 +0100
changeset 12635 e2d44df29c94
parent 12627 08eee994bf99
child 12642 40fbd988b59b
permissions -rw-r--r--
more on concrete syntax;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11648
d78a82d112e4 *** empty log message ***
wenzelm
parents:
diff changeset
     1
%
d78a82d112e4 *** empty log message ***
wenzelm
parents:
diff changeset
     2
\begin{isabellebody}%
d78a82d112e4 *** empty log message ***
wenzelm
parents:
diff changeset
     3
\def\isabellecontext{Documents}%
11866
fbd097aec213 updated;
wenzelm
parents: 11648
diff changeset
     4
\isamarkupfalse%
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
     5
%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
     6
\isamarkupsection{Concrete syntax \label{sec:concrete-syntax}%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
     7
}
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
     8
\isamarkuptrue%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
     9
%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    10
\begin{isamarkuptext}%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    11
Concerning Isabelle's ``inner'' language of simply-typed \isa{{\isasymlambda}}-calculus, the core concept of Isabelle's elaborate infrastructure
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    12
  for concrete syntax is that of general \emph{mixfix
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    13
  annotations}\index{mixfix annotations|bold}.  Associated with any
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    14
  kind of name and type declaration, mixfixes give rise both to
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    15
  grammar productions for the parser and output templates for the
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    16
  pretty printer.
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    17
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    18
  In full generality, the whole affair of parser and pretty printer
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    19
  configuration is rather subtle.  Any syntax specifications given by
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    20
  end-users need to interact properly with the existing setup of
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    21
  Isabelle/Pure and Isabelle/HOL; see \cite{isabelle-ref} for further
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    22
  details.  It is particularly important to get the precedence of new
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    23
  syntactic constructs right, avoiding ambiguities with existing
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    24
  elements.
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    25
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    26
  \medskip Subsequently we introduce a few simple declaration forms
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    27
  that already cover the most common situations fairly well.%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    28
\end{isamarkuptext}%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    29
\isamarkuptrue%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    30
%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    31
\isamarkupsubsection{Infixes%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    32
}
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    33
\isamarkuptrue%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    34
%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    35
\begin{isamarkuptext}%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    36
Syntax annotations may be included wherever constants are declared
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    37
  directly or indirectly, including \isacommand{consts},
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    38
  \isacommand{constdefs}, or \isacommand{datatype} (for the
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    39
  constructor operations).  Type-constructors may be annotated as
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    40
  well, although this is less frequently encountered in practice
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    41
  (\isa{{\isacharasterisk}} and \isa{{\isacharplus}} types may come to mind).
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    42
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    43
  Infix declarations\index{infix annotations|bold} provide a useful
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    44
  special case of mixfixes, where users need not care about the full
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    45
  details of priorities, nesting, spacing, etc.  The subsequent
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    46
  example of the exclusive-or operation on boolean values illustrates
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    47
  typical infix declarations.%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    48
\end{isamarkuptext}%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    49
\isamarkuptrue%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    50
\isacommand{constdefs}\isanewline
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    51
\ \ xor\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequote}bool\ {\isasymRightarrow}\ bool\ {\isasymRightarrow}\ bool{\isachardoublequote}\ \ \ \ {\isacharparenleft}\isakeyword{infixl}\ {\isachardoublequote}{\isacharbrackleft}{\isacharplus}{\isacharbrackright}{\isachardoublequote}\ {\isadigit{6}}{\isadigit{0}}{\isacharparenright}\isanewline
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    52
\ \ {\isachardoublequote}A\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ B\ {\isasymequiv}\ {\isacharparenleft}A\ {\isasymand}\ {\isasymnot}\ B{\isacharparenright}\ {\isasymor}\ {\isacharparenleft}{\isasymnot}\ A\ {\isasymand}\ B{\isacharparenright}{\isachardoublequote}\isamarkupfalse%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    53
%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    54
\begin{isamarkuptext}%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    55
Any curried function with at least two arguments may be associated
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    56
  with infix syntax: \isa{xor\ A\ B} and \isa{A\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ B} refer to
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    57
  the same expression internally.  In partial applications with less
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    58
  than two operands there is a special notation with \isa{op} prefix:
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    59
  \isa{xor} without arguments is represented as \isa{op\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}};
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    60
  combined with plain prefix application this turns \isa{xor\ A}
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    61
  into \isa{op\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ A}.
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    62
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    63
  \medskip The string \isa{{\isachardoublequote}{\isacharbrackleft}{\isacharplus}{\isacharbrackright}{\isachardoublequote}} in the above declaration
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    64
  refers to the bit of concrete syntax to represent the operator,
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    65
  while the number \isa{{\isadigit{6}}{\isadigit{0}}} determines the precedence of the whole
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    66
  construct.
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    67
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    68
  As it happens, Isabelle/HOL already spends many popular combinations
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    69
  of ASCII symbols for its own use, including both \isa{{\isacharplus}} and
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    70
  \isa{{\isacharplus}{\isacharplus}}.  Slightly more awkward combinations like the present
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    71
  \isa{{\isacharbrackleft}{\isacharplus}{\isacharbrackright}} tend to be available for user extensions.  The current
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    72
  arrangement of inner syntax may be inspected via
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    73
  \commdx{print\protect\_syntax}, albeit its output is enormous.
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    74
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    75
  Operator precedence also needs some special considerations.  The
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    76
  admissible range is 0--1000.  Very low or high priorities are
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    77
  basically reserved for the meta-logic.  Syntax of Isabelle/HOL
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    78
  mainly uses the range of 10--100: the equality infix \isa{{\isacharequal}} is
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    79
  centered at 50, logical connectives (like \isa{{\isasymor}} and \isa{{\isasymand}}) are below 50, and algebraic ones (like \isa{{\isacharplus}} and \isa{{\isacharasterisk}}) above 50.  User syntax should strive to coexist with common
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    80
  HOL forms, or use the mostly unused range 100--900.
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    81
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    82
  \medskip The keyword \isakeyword{infixl} specifies an operator that
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    83
  is nested to the \emph{left}: in iterated applications the more
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    84
  complex expression appears on the left-hand side: \isa{A\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ B\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ C} stands for \isa{{\isacharparenleft}A\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ B{\isacharparenright}\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ C}.  Similarly,
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
    85
  \isakeyword{infixr} refers to nesting to the \emph{right}, reading
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
    86
  \isa{A\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ B\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ C} as \isa{A\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ {\isacharparenleft}B\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ C{\isacharparenright}}.  In contrast,
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
    87
  a \emph{non-oriented} declaration via \isakeyword{infix} would
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
    88
  always demand explicit parentheses.
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    89
  
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    90
  Many binary operations observe the associative law, so the exact
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    91
  grouping does not matter.  Nevertheless, formal statements need be
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    92
  given in a particular format, associativity needs to be treated
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    93
  explicitly within the logic.  Exclusive-or is happens to be
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    94
  associative, as shown below.%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    95
\end{isamarkuptext}%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    96
\isamarkuptrue%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    97
\isacommand{lemma}\ xor{\isacharunderscore}assoc{\isacharcolon}\ {\isachardoublequote}{\isacharparenleft}A\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ B{\isacharparenright}\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ C\ {\isacharequal}\ A\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ {\isacharparenleft}B\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ C{\isacharparenright}{\isachardoublequote}\isanewline
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    98
\ \ \isamarkupfalse%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
    99
\isacommand{by}\ {\isacharparenleft}auto\ simp\ add{\isacharcolon}\ xor{\isacharunderscore}def{\isacharparenright}\isamarkupfalse%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   100
%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   101
\begin{isamarkuptext}%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   102
Such rules may be used in simplification to regroup nested
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   103
  expressions as required.  Note that the system would actually print
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   104
  the above statement as \isa{A\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ B\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ C\ {\isacharequal}\ A\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ {\isacharparenleft}B\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}\ C{\isacharparenright}}
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   105
  (due to nesting to the left).  We have preferred to give the fully
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   106
  parenthesized form in the text for clarity.  Only in rare situations
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   107
  one may consider to force parentheses by use of non-oriented infix
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   108
  syntax; equality would probably be a typical candidate.%
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   109
\end{isamarkuptext}%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   110
\isamarkuptrue%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   111
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   112
\isamarkupsubsection{Mathematical symbols \label{sec:thy-present-symbols}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   113
}
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   114
\isamarkuptrue%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   115
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   116
\begin{isamarkuptext}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   117
Concrete syntax based on plain ASCII characters has its inherent
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   118
  limitations.  Rich mathematical notation demands a larger repertoire
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   119
  of symbols.  Several standards of extended character sets have been
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   120
  proposed over decades, but none has become universally available so
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   121
  far, not even Unicode\index{Unicode}.
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   122
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   123
  Isabelle supports a generic notion of
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   124
  \emph{symbols}\index{symbols|bold} as the smallest entities of
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   125
  source text, without referring to internal encodings.  Such
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   126
  ``generalized characters'' may be of one of the following three
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   127
  kinds:
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   128
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   129
  \begin{enumerate}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   130
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   131
  \item Traditional 7-bit ASCII characters.
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   132
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   133
  \item Named symbols: \verb,\,\verb,<,$ident$\verb,>, (or
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   134
  \verb,\\,\verb,<,$ident$\verb,>,).
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   135
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   136
  \item Named control symbols: \verb,\,\verb,<^,$ident$\verb,>, (or
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   137
  \verb,\\,\verb,<^,$ident$\verb,>,).
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   138
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   139
  \end{enumerate}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   140
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   141
  Here $ident$ may be any identifier according to the usual Isabelle
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   142
  conventions.  This results in an infinite store of symbols, whose
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   143
  interpretation is left to further front-end tools.  For example, the
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   144
  \verb,\,\verb,<forall>, symbol of Isabelle is really displayed as
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   145
  $\forall$ --- both by the user-interface of Proof~General + X-Symbol
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   146
  and the Isabelle document processor (see \S\ref{FIXME}).
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   147
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   148
  A list of standard Isabelle symbols is given in
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   149
  \cite[appendix~A]{isabelle-sys}.  Users may introduce their own
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   150
  interpretation of further symbols by configuring the appropriate
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   151
  front-end tool accordingly, e.g.\ defining appropriate {\LaTeX}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   152
  macros for document preparation.  There are also a few predefined
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   153
  control symbols, such as \verb,\,\verb,<^sub>, and
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   154
  \verb,\,\verb,<^sup>, for sub- and superscript of the subsequent
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   155
  (printable) symbol, respectively.
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   156
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   157
  \medskip The following version of our \isa{xor} definition uses a
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   158
  standard Isabelle symbol to achieve typographically pleasing output.%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   159
\end{isamarkuptext}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   160
\isamarkuptrue%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   161
\isamarkupfalse%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   162
\isamarkupfalse%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   163
\isacommand{constdefs}\isanewline
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   164
\ \ xor\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequote}bool\ {\isasymRightarrow}\ bool\ {\isasymRightarrow}\ bool{\isachardoublequote}\ \ \ \ {\isacharparenleft}\isakeyword{infixl}\ {\isachardoublequote}{\isasymoplus}{\isachardoublequote}\ {\isadigit{6}}{\isadigit{0}}{\isacharparenright}\isanewline
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   165
\ \ {\isachardoublequote}A\ {\isasymoplus}\ B\ {\isasymequiv}\ {\isacharparenleft}A\ {\isasymand}\ {\isasymnot}\ B{\isacharparenright}\ {\isasymor}\ {\isacharparenleft}{\isasymnot}\ A\ {\isasymand}\ B{\isacharparenright}{\isachardoublequote}\isamarkupfalse%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   166
\isamarkupfalse%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   167
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   168
\begin{isamarkuptext}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   169
The X-Symbol package within Proof~General provides several input
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   170
  methods to enter \isa{{\isasymoplus}} in the text.  If all fails one may just
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   171
  type \verb,\,\verb,<oplus>, by hand; the display is adapted
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   172
  immediately after continuing further input.
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   173
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   174
  \medskip A slightly more refined scheme is to provide alternative
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   175
  syntax via the \emph{print mode}\index{print mode} concept of
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   176
  Isabelle (see also \cite{isabelle-ref}).  By convention, the mode
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   177
  ``$xsymbols$'' is enabled whenever X-Symbol is active.  Consider the
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   178
  following hybrid declaration of \isa{xor}.%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   179
\end{isamarkuptext}%
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   180
\isamarkuptrue%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   181
\isamarkupfalse%
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   182
\isamarkupfalse%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   183
\isacommand{constdefs}\isanewline
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   184
\ \ xor\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequote}bool\ {\isasymRightarrow}\ bool\ {\isasymRightarrow}\ bool{\isachardoublequote}\ \ \ \ {\isacharparenleft}\isakeyword{infixl}\ {\isachardoublequote}{\isacharbrackleft}{\isacharplus}{\isacharbrackright}{\isasymignore}{\isachardoublequote}\ {\isadigit{6}}{\isadigit{0}}{\isacharparenright}\isanewline
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   185
\ \ {\isachardoublequote}A\ {\isacharbrackleft}{\isacharplus}{\isacharbrackright}{\isasymignore}\ B\ {\isasymequiv}\ {\isacharparenleft}A\ {\isasymand}\ {\isasymnot}\ B{\isacharparenright}\ {\isasymor}\ {\isacharparenleft}{\isasymnot}\ A\ {\isasymand}\ B{\isacharparenright}{\isachardoublequote}\isanewline
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   186
\isanewline
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   187
\isamarkupfalse%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   188
\isacommand{syntax}\ {\isacharparenleft}xsymbols{\isacharparenright}\isanewline
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   189
\ \ xor\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequote}bool\ {\isasymRightarrow}\ bool\ {\isasymRightarrow}\ bool{\isachardoublequote}\ \ \ \ {\isacharparenleft}\isakeyword{infixl}\ {\isachardoublequote}{\isasymoplus}{\isasymignore}{\isachardoublequote}\ {\isadigit{6}}{\isadigit{0}}{\isacharparenright}\isamarkupfalse%
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   190
\isamarkupfalse%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   191
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   192
\begin{isamarkuptext}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   193
Here the \commdx{syntax} command acts like \isakeyword{consts}, but
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   194
  without declaring a logical constant, and with an optional print
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   195
  mode specification.  Note that the type declaration given here
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   196
  merely serves for syntactic purposes, and is not checked for
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   197
  consistency with the real constant.
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   198
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   199
  \medskip Now we may write either \isa{{\isacharbrackleft}{\isacharplus}{\isacharbrackright}} or \isa{{\isasymoplus}} in
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   200
  input, while output uses the nicer syntax of $xsymbols$, provided
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   201
  that print mode is presently active.  This scheme is particularly
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   202
  useful for interactive development, with the user typing plain ASCII
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   203
  text, but gaining improved visual feedback from the system (say in
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   204
  current goal output).
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   205
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   206
  \begin{warn}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   207
  Using alternative syntax declarations easily results in varying
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   208
  versions of input sources.  Isabelle provides no systematic way to
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   209
  convert alternative expressions back and forth.  Print modes only
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   210
  affect situations where formal entities are pretty printed by the
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   211
  Isabelle process (e.g.\ output of terms and types), but not the
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   212
  original theory text.
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   213
  \end{warn}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   214
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   215
  \medskip The following variant makes the alternative \isa{{\isasymoplus}}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   216
  notation only available for output.  Thus we may enforce input
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   217
  sources to refer to plain ASCII only.%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   218
\end{isamarkuptext}%
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   219
\isamarkuptrue%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   220
\isacommand{syntax}\ {\isacharparenleft}xsymbols\ \isakeyword{output}{\isacharparenright}\isanewline
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   221
\ \ xor\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequote}bool\ {\isasymRightarrow}\ bool\ {\isasymRightarrow}\ bool{\isachardoublequote}\ \ \ \ {\isacharparenleft}\isakeyword{infixl}\ {\isachardoublequote}{\isasymoplus}{\isasymignore}{\isachardoublequote}\ {\isadigit{6}}{\isadigit{0}}{\isacharparenright}\isamarkupfalse%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   222
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   223
\isamarkupsubsection{Prefixes%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   224
}
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   225
\isamarkuptrue%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   226
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   227
\begin{isamarkuptext}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   228
Prefix syntax annotations\index{prefix annotation|bold} are just a
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   229
  very degenerate of the general mixfix form \cite{isabelle-ref},
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   230
  without any template arguments or priorities --- just some piece of
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   231
  literal syntax.
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   232
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   233
  The following example illustrates this idea idea by associating
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   234
  common symbols with the constructors of a currency datatype.%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   235
\end{isamarkuptext}%
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   236
\isamarkuptrue%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   237
\isacommand{datatype}\ currency\ {\isacharequal}\isanewline
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   238
\ \ \ \ Euro\ nat\ \ \ \ {\isacharparenleft}{\isachardoublequote}{\isasymeuro}{\isachardoublequote}{\isacharparenright}\isanewline
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   239
\ \ {\isacharbar}\ Pounds\ nat\ \ {\isacharparenleft}{\isachardoublequote}{\isasympounds}{\isachardoublequote}{\isacharparenright}\isanewline
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   240
\ \ {\isacharbar}\ Yen\ nat\ \ \ \ \ {\isacharparenleft}{\isachardoublequote}{\isasymyen}{\isachardoublequote}{\isacharparenright}\isanewline
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   241
\ \ {\isacharbar}\ Dollar\ nat\ \ {\isacharparenleft}{\isachardoublequote}{\isachardollar}{\isachardoublequote}{\isacharparenright}\isamarkupfalse%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   242
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   243
\begin{isamarkuptext}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   244
Here the degenerate mixfix annotations on the rightmost column
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   245
  happen to consist of a single Isabelle symbol each:
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   246
  \verb,\,\verb,<euro>,, \verb,\,\verb,<pounds>,,
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   247
  \verb,\,\verb,<yen>,, and \verb,\,\verb,<dollar>,.
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   248
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   249
  Recall that a constructor like \isa{Euro} actually is a function
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   250
  \isa{nat\ {\isasymRightarrow}\ currency}.  An expression like \isa{Euro\ {\isadigit{1}}{\isadigit{0}}} will
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   251
  be printed as \isa{{\isasymeuro}\ {\isadigit{1}}{\isadigit{0}}}.  Merely the head of the application is
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   252
  subject to our trivial concrete syntax; this form is sufficient to
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   253
  achieve fair conformance to EU~Commission standards of currency
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   254
  notation.
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   255
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   256
  \medskip Certainly, the same idea of prefix syntax also works for
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   257
  \isakeyword{consts}, \isakeyword{constdefs} etc.  For example, we
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   258
  might introduce a (slightly unrealistic) function to calculate an
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   259
  abstract currency value, by cases on the datatype constructors and
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   260
  fixed exchange rates.%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   261
\end{isamarkuptext}%
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   262
\isamarkuptrue%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   263
\isacommand{consts}\isanewline
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   264
\ \ currency\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequote}currency\ {\isasymRightarrow}\ nat{\isachardoublequote}\ \ \ \ {\isacharparenleft}{\isachardoublequote}{\isasymcurrency}{\isachardoublequote}{\isacharparenright}\isamarkupfalse%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   265
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   266
\begin{isamarkuptext}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   267
\noindent The funny symbol encountered here is that of
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   268
  \verb,\<currency>,.%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   269
\end{isamarkuptext}%
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   270
\isamarkuptrue%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   271
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   272
\isamarkupsubsection{Syntax translations \label{sec:def-translations}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   273
}
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   274
\isamarkuptrue%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   275
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   276
\begin{isamarkuptext}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   277
FIXME
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   278
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   279
\index{syntax translations|(}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   280
\index{translations@\isacommand {translations} (command)|(}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   281
Isabelle offers an additional definitional facility,
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   282
\textbf{syntax translations}.
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   283
They resemble macros: upon parsing, the defined concept is immediately
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   284
replaced by its definition.  This effect is reversed upon printing.  For example,
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   285
the symbol \isa{{\isasymnoteq}} is defined via a syntax translation:%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   286
\end{isamarkuptext}%
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   287
\isamarkuptrue%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   288
\isacommand{translations}\ {\isachardoublequote}x\ {\isasymnoteq}\ y{\isachardoublequote}\ {\isasymrightleftharpoons}\ {\isachardoublequote}{\isasymnot}{\isacharparenleft}x\ {\isacharequal}\ y{\isacharparenright}{\isachardoublequote}\isamarkupfalse%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   289
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   290
\begin{isamarkuptext}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   291
\index{$IsaEqTrans@\isasymrightleftharpoons}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   292
\noindent
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   293
Internally, \isa{{\isasymnoteq}} never appears.
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   294
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   295
In addition to \isa{{\isasymrightleftharpoons}} there are
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   296
\isa{{\isasymrightharpoonup}}\index{$IsaEqTrans1@\isasymrightharpoonup}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   297
and \isa{{\isasymleftharpoondown}}\index{$IsaEqTrans2@\isasymleftharpoondown}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   298
for uni-directional translations, which only affect
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   299
parsing or printing.  This tutorial will not cover the details of
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   300
translations.  We have mentioned the concept merely because it
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   301
crops up occasionally; a number of HOL's built-in constructs are defined
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   302
via translations.  Translations are preferable to definitions when the new 
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   303
concept is a trivial variation on an existing one.  For example, we
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   304
don't need to derive new theorems about \isa{{\isasymnoteq}}, since existing theorems
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   305
about \isa{{\isacharequal}} still apply.%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   306
\index{syntax translations|)}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   307
\index{translations@\isacommand {translations} (command)|)}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   308
\end{isamarkuptext}%
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   309
\isamarkuptrue%
12635
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   310
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   311
\isamarkupsection{Document preparation%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   312
}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   313
\isamarkuptrue%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   314
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   315
\isamarkupsubsection{Batch-mode sessions%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   316
}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   317
\isamarkuptrue%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   318
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   319
\isamarkupsubsection{{\LaTeX} macros%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   320
}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   321
\isamarkuptrue%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   322
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   323
\isamarkupsubsubsection{Structure markup%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   324
}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   325
\isamarkuptrue%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   326
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   327
\isamarkupsubsubsection{Symbols and characters%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   328
}
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   329
\isamarkuptrue%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   330
%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   331
\begin{isamarkuptext}%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   332
FIXME%
e2d44df29c94 more on concrete syntax;
wenzelm
parents: 12627
diff changeset
   333
\end{isamarkuptext}%
12627
08eee994bf99 updated;
wenzelm
parents: 11866
diff changeset
   334
\isamarkuptrue%
11866
fbd097aec213 updated;
wenzelm
parents: 11648
diff changeset
   335
\isamarkupfalse%
11648
d78a82d112e4 *** empty log message ***
wenzelm
parents:
diff changeset
   336
\end{isabellebody}%
d78a82d112e4 *** empty log message ***
wenzelm
parents:
diff changeset
   337
%%% Local Variables:
d78a82d112e4 *** empty log message ***
wenzelm
parents:
diff changeset
   338
%%% mode: latex
d78a82d112e4 *** empty log message ***
wenzelm
parents:
diff changeset
   339
%%% TeX-master: "root"
d78a82d112e4 *** empty log message ***
wenzelm
parents:
diff changeset
   340
%%% End: