ProgTutorial/Advanced.thy
author Christian Urban <urbanc@in.tum.de>
Sat, 05 Nov 2011 18:44:28 +0000
changeset 485 f3536f0b47a9
parent 484 490fe9483c0d
child 486 45cfd2ece7bd
permissions -rw-r--r--
added section about testboard
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
395
2c392f61f400 spilt the Essential's chapter
Christian Urban <urbanc@in.tum.de>
parents: 394
diff changeset
     1
theory Advanced
441
Christian Urban <urbanc@in.tum.de>
parents: 414
diff changeset
     2
imports Base First_Steps
318
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
begin
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
346
0fea8b7a14a1 tuned the ML-output mechanism; tuned slightly the text
Christian Urban <urbanc@in.tum.de>
parents: 345
diff changeset
     5
(*<*)
0fea8b7a14a1 tuned the ML-output mechanism; tuned slightly the text
Christian Urban <urbanc@in.tum.de>
parents: 345
diff changeset
     6
setup{*
0fea8b7a14a1 tuned the ML-output mechanism; tuned slightly the text
Christian Urban <urbanc@in.tum.de>
parents: 345
diff changeset
     7
open_file_with_prelude 
395
2c392f61f400 spilt the Essential's chapter
Christian Urban <urbanc@in.tum.de>
parents: 394
diff changeset
     8
  "Advanced_Code.thy"
441
Christian Urban <urbanc@in.tum.de>
parents: 414
diff changeset
     9
  ["theory Advanced", "imports Base First_Steps", "begin"]
346
0fea8b7a14a1 tuned the ML-output mechanism; tuned slightly the text
Christian Urban <urbanc@in.tum.de>
parents: 345
diff changeset
    10
*}
0fea8b7a14a1 tuned the ML-output mechanism; tuned slightly the text
Christian Urban <urbanc@in.tum.de>
parents: 345
diff changeset
    11
(*>*)
0fea8b7a14a1 tuned the ML-output mechanism; tuned slightly the text
Christian Urban <urbanc@in.tum.de>
parents: 345
diff changeset
    12
0fea8b7a14a1 tuned the ML-output mechanism; tuned slightly the text
Christian Urban <urbanc@in.tum.de>
parents: 345
diff changeset
    13
414
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
    14
chapter {* Advanced Isabelle\label{chp:advanced} *}
381
97518188ef0e added more to the unification section
Christian Urban <urbanc@in.tum.de>
parents: 380
diff changeset
    15
97518188ef0e added more to the unification section
Christian Urban <urbanc@in.tum.de>
parents: 380
diff changeset
    16
text {*
410
Christian Urban <urbanc@in.tum.de>
parents: 408
diff changeset
    17
   \begin{flushright}
Christian Urban <urbanc@in.tum.de>
parents: 408
diff changeset
    18
  {\em All things are difficult before they are easy.} \\[1ex]
Christian Urban <urbanc@in.tum.de>
parents: 408
diff changeset
    19
  proverb
Christian Urban <urbanc@in.tum.de>
parents: 408
diff changeset
    20
  \end{flushright}
Christian Urban <urbanc@in.tum.de>
parents: 408
diff changeset
    21
Christian Urban <urbanc@in.tum.de>
parents: 408
diff changeset
    22
  \medskip
400
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
    23
  While terms, types and theorems are the most basic data structures in
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
    24
  Isabelle, there are a number of layers built on top of them. Most of these
408
Christian Urban <urbanc@in.tum.de>
parents: 401
diff changeset
    25
  layers are concerned with storing and manipulating data. Handling them
Christian Urban <urbanc@in.tum.de>
parents: 401
diff changeset
    26
  properly is an essential skill for programming on the ML-level of Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 401
diff changeset
    27
  programming. The most basic layer are theories. They contain global data and
Christian Urban <urbanc@in.tum.de>
parents: 401
diff changeset
    28
  can be seen as the ``long-term memory'' of Isabelle. There is usually only
Christian Urban <urbanc@in.tum.de>
parents: 401
diff changeset
    29
  one theory active at each moment. Proof contexts and local theories, on the
400
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
    30
  other hand, store local data for a task at hand. They act like the
408
Christian Urban <urbanc@in.tum.de>
parents: 401
diff changeset
    31
  ``short-term memory'' and there can be many of them that are active in
Christian Urban <urbanc@in.tum.de>
parents: 401
diff changeset
    32
  parallel.
318
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
*}
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
358
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    35
section {* Theories\label{sec:theories} (TBD) *}
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    36
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    37
text {*
401
36d61044f9bf updated to new Isabelle and clarified Skip_Proof
Christian Urban <urbanc@in.tum.de>
parents: 400
diff changeset
    38
  Theories, as said above, are the most basic layer in Isabelle. They contain
400
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
    39
  definitions, syntax declarations, axioms, proofs etc. If a definition is
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
    40
  stated, it must be stored in a theory in order to be usable later
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
    41
  on. Similar with proofs: once a proof is finished, the proved theorem needs
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
    42
  to be stored in the theorem database of the theory in order to be
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
    43
  usable. All relevant data of a theory can be queried as follows.
358
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    44
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    45
  \begin{isabelle}
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    46
  \isacommand{print\_theory}\\
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    47
  @{text "> names: Pure Code_Generator HOL \<dots>"}\\
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    48
  @{text "> classes: Inf < type \<dots>"}\\
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    49
  @{text "> default sort: type"}\\
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    50
  @{text "> syntactic types: #prop \<dots>"}\\
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    51
  @{text "> logical types: 'a \<times> 'b \<dots>"}\\
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    52
  @{text "> type arities: * :: (random, random) random \<dots>"}\\
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    53
  @{text "> logical constants: == :: 'a \<Rightarrow> 'a \<Rightarrow> prop \<dots>"}\\
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    54
  @{text "> abbreviations: \<dots>"}\\
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    55
  @{text "> axioms: \<dots>"}\\
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    56
  @{text "> oracles: \<dots>"}\\
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    57
  @{text "> definitions: \<dots>"}\\
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    58
  @{text "> theorems: \<dots>"}
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    59
  \end{isabelle}
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    60
400
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
    61
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
    62
358
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    63
  \begin{center}
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    64
  \begin{tikzpicture}
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    65
  \node[top color=white, bottom color=gray!30, draw=black!100, drop shadow] {A};
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    66
  \end{tikzpicture}
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    67
  \end{center}
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    68
392
47e5b71c7f6c modified the typ-pretty-printer and added parser exercise
Christian Urban <urbanc@in.tum.de>
parents: 389
diff changeset
    69
  \footnote{\bf FIXME: list append in merge operations can cause 
47e5b71c7f6c modified the typ-pretty-printer and added parser exercise
Christian Urban <urbanc@in.tum.de>
parents: 389
diff changeset
    70
  exponential blowups.}
358
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    71
*}
9cf3bc448210 some polishing
Christian Urban <urbanc@in.tum.de>
parents: 356
diff changeset
    72
348
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
    73
section {* Setups (TBD) *}
318
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
348
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
    75
text {*
485
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
    76
  In the previous section we used \isacommand{setup} in order, for example, 
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
    77
  to make a theorem attribute known to Isabelle or register a theorem under
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
    78
  a name. What happens behind the scenes is that \isacommand{setup} expects a 
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
    79
  function of type @{ML_type "theory -> theory"}: the input theory is the current
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
    80
  theory and the output the theory where the theory attribute or theorem has been
484
490fe9483c0d more material
Christian Urban <urbanc@in.tum.de>
parents: 481
diff changeset
    81
  stored.
361
Christian Urban <urbanc@in.tum.de>
parents: 360
diff changeset
    82
484
490fe9483c0d more material
Christian Urban <urbanc@in.tum.de>
parents: 481
diff changeset
    83
  This is a fundamental principle in Isabelle. A similar situation arises
490fe9483c0d more material
Christian Urban <urbanc@in.tum.de>
parents: 481
diff changeset
    84
  with declaring constants. The function that declares a 
490fe9483c0d more material
Christian Urban <urbanc@in.tum.de>
parents: 481
diff changeset
    85
  constant on the ML-level is @{ML_ind  declare_const in Sign}. 
485
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
    86
  However, note that if you simply write\footnote{Recall that ML-code  needs to be 
348
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
    87
  enclosed in \isacommand{ML}~@{text "\<verbopen> \<dots> \<verbclose>"}.} 
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
    88
*}  
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
    89
485
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
    90
ML{*let
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
    91
  val thy = @{theory}
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
    92
  val bar_const = ((@{binding "BAR"}, @{typ "nat"}), NoSyn)
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
    93
in 
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
    94
  Sign.declare_const @{context} bar_const thy  
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
    95
end*}
348
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
    96
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
    97
text {*
484
490fe9483c0d more material
Christian Urban <urbanc@in.tum.de>
parents: 481
diff changeset
    98
  with the intention of declaring the constant @{text "BAR"} with type @{typ nat} 
490fe9483c0d more material
Christian Urban <urbanc@in.tum.de>
parents: 481
diff changeset
    99
  and  run the code, then indeed you obtain a theory as result. But if you 
348
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   100
  query the constant on the Isabelle level using the command \isacommand{term}
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   101
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   102
  \begin{isabelle}
485
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   103
  \isacommand{term}~@{text BAR}\\
348
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   104
  @{text "> \"BAR\" :: \"'a\""}
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   105
  \end{isabelle}
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   106
485
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   107
  you can see that you do \emph{not} obtain a constant of type @{typ nat}, but a free 
484
490fe9483c0d more material
Christian Urban <urbanc@in.tum.de>
parents: 481
diff changeset
   108
  variable (printed in blue) of polymorphic type. The problem is that the 
490fe9483c0d more material
Christian Urban <urbanc@in.tum.de>
parents: 481
diff changeset
   109
  ML-expression above did not ``register'' the declaration with the current theory. 
490fe9483c0d more material
Christian Urban <urbanc@in.tum.de>
parents: 481
diff changeset
   110
  This is what the command \isacommand{setup} is for. The constant is properly 
490fe9483c0d more material
Christian Urban <urbanc@in.tum.de>
parents: 481
diff changeset
   111
  declared with
348
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   112
*}
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   113
485
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   114
setup %gray {* let
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   115
  val bar_const = ((@{binding "BAR"}, @{typ "nat"}), NoSyn)
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   116
in 
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   117
  Sign.declare_const @{context} bar_const #> snd 
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   118
end *}
348
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   119
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   120
text {* 
485
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   121
  where the declaration is actually applied to the theory and
348
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   122
  
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   123
  \begin{isabelle}
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   124
  \isacommand{term}~@{text [quotes] "BAR"}\\
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   125
  @{text "> \"BAR\" :: \"nat\""}
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   126
  \end{isabelle}
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   127
484
490fe9483c0d more material
Christian Urban <urbanc@in.tum.de>
parents: 481
diff changeset
   128
  returns a (black) constant with the type @{typ nat}, as expected.
348
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   129
485
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   130
  In a sense, \isacommand{setup} can be seen as a transaction that takes the
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   131
  current theory, applies an operation, and produces a new current theory. This
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   132
  means that we have to be careful to apply operations always to the current
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   133
  theory, not to a \emph{stale} one. The code below produces
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   134
f3536f0b47a9 added section about testboard
Christian Urban <urbanc@in.tum.de>
parents: 484
diff changeset
   135
348
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   136
  A similar command is \isacommand{local\_setup}, which expects a function
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   137
  of type @{ML_type "local_theory -> local_theory"}. Later on we will also
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   138
  use the commands \isacommand{method\_setup} for installing methods in the
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   139
  current theory and \isacommand{simproc\_setup} for adding new simprocs to
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   140
  the current simpset.
Christian Urban <urbanc@in.tum.de>
parents: 347
diff changeset
   141
*}
318
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   142
341
62dea749d5ed more work on theorem section
Christian Urban <urbanc@in.tum.de>
parents: 340
diff changeset
   143
section {* Contexts (TBD) *}
62dea749d5ed more work on theorem section
Christian Urban <urbanc@in.tum.de>
parents: 340
diff changeset
   144
475
25371f74c768 updated to post-2011-1 Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 471
diff changeset
   145
ML{*Proof_Context.debug*}
25371f74c768 updated to post-2011-1 Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 471
diff changeset
   146
ML{*Proof_Context.verbose*}
413
95461cf6fd07 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 410
diff changeset
   147
95461cf6fd07 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 410
diff changeset
   148
341
62dea749d5ed more work on theorem section
Christian Urban <urbanc@in.tum.de>
parents: 340
diff changeset
   149
section {* Local Theories (TBD) *}
62dea749d5ed more work on theorem section
Christian Urban <urbanc@in.tum.de>
parents: 340
diff changeset
   150
394
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   151
text {*
400
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
   152
  In contrast to an ordinary theory, which simply consists of a type
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
   153
  signature, as well as tables for constants, axioms and theorems, a local
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
   154
  theory contains additional context information, such as locally fixed
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
   155
  variables and local assumptions that may be used by the package. The type
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
   156
  @{ML_type local_theory} is identical to the type of \emph{proof contexts}
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
   157
  @{ML_type "Proof.context"}, although not every proof context constitutes a
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
   158
  valid local theory.
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
   159
Christian Urban <urbanc@in.tum.de>
parents: 396
diff changeset
   160
  @{ML "Context.>> o Context.map_theory"}
394
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   161
  @{ML_ind "Local_Theory.declaration"}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   162
*}
318
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   163
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   164
(*
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   165
setup {*
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   166
 Sign.add_consts_i [(Binding"bar", @{typ "nat"},NoSyn)] 
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   167
*}
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   168
lemma "bar = (1::nat)"
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   169
  oops
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   170
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   171
setup {*   
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   172
  Sign.add_consts_i [("foo", @{typ "nat"},NoSyn)] 
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   173
 #> PureThy.add_defs false [((@{binding "foo_def"}, 
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   174
       Logic.mk_equals (Const ("FirstSteps.foo", @{typ "nat"}), @{term "1::nat"})), [])] 
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   175
 #> snd
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   176
*}
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   177
*)
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   178
(*
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   179
lemma "foo = (1::nat)"
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   180
  apply(simp add: foo_def)
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   181
  done
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   182
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   183
thm foo_def
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   184
*)
336
a12bb28fe2bd polished on the pretty printing section
Christian Urban <urbanc@in.tum.de>
parents: 335
diff changeset
   185
394
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   186
section {* Morphisms (TBD) *}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   187
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   188
text {*
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   189
  Morphisms are arbitrary transformations over terms, types, theorems and bindings.
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   190
  They can be constructed using the function @{ML_ind morphism in Morphism},
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   191
  which expects a record with functions of type
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   192
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   193
  \begin{isabelle}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   194
  \begin{tabular}{rl}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   195
  @{text "binding:"} & @{text "binding -> binding"}\\
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   196
  @{text "typ:"}     & @{text "typ -> typ"}\\
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   197
  @{text "term:"}    & @{text "term -> term"}\\
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   198
  @{text "fact:"}    & @{text "thm list -> thm list"}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   199
  \end{tabular}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   200
  \end{isabelle}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   201
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   202
  The simplest morphism is the  @{ML_ind identity in Morphism}-morphism defined as
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   203
*}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   204
481
32323727af96 updated
Christian Urban <urbanc@in.tum.de>
parents: 475
diff changeset
   205
ML{*val identity = Morphism.morphism {binding = [], typ = [], term = [], fact = []}*}
394
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   206
  
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   207
text {*
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   208
  Morphisms can be composed with the function @{ML_ind "$>" in Morphism}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   209
*}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   210
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   211
ML{*fun trm_phi (Free (x, T)) = Var ((x, 0), T) 
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   212
  | trm_phi (Abs (x, T, t)) = Abs (x, T, trm_phi t)
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   213
  | trm_phi (t $ s) = (trm_phi t) $ (trm_phi s)
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   214
  | trm_phi t = t*}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   215
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   216
ML{*val phi = Morphism.term_morphism trm_phi*}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   217
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   218
ML{*Morphism.term phi @{term "P x y"}*}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   219
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   220
text {*
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   221
  @{ML_ind term_morphism in Morphism}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   222
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   223
  @{ML_ind term in Morphism},
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   224
  @{ML_ind thm in Morphism}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   225
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   226
  \begin{readmore}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   227
  Morphisms are implemented in the file @{ML_file "Pure/morphism.ML"}.
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   228
  \end{readmore}
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   229
*}
318
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   230
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   231
section {* Misc (TBD) *}
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   232
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   233
ML {*Datatype.get_info @{theory} "List.list"*}
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   234
319
6bce4acf7f2a added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents: 318
diff changeset
   235
text {* 
6bce4acf7f2a added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents: 318
diff changeset
   236
FIXME: association lists:
6bce4acf7f2a added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents: 318
diff changeset
   237
@{ML_file "Pure/General/alist.ML"}
6bce4acf7f2a added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents: 318
diff changeset
   238
6bce4acf7f2a added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents: 318
diff changeset
   239
FIXME: calling the ML-compiler
6bce4acf7f2a added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents: 318
diff changeset
   240
6bce4acf7f2a added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents: 318
diff changeset
   241
*}
6bce4acf7f2a added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents: 318
diff changeset
   242
414
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   243
section {* What Is In an Isabelle Name? (TBD) *}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   244
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   245
text {*
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   246
  On the ML-level of Isabelle, you often have to work with qualified names.
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   247
  These are strings with some additional information, such as positional
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   248
  information and qualifiers. Such qualified names can be generated with the
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   249
  antiquotation @{text "@{binding \<dots>}"}. For example
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   250
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   251
  @{ML_response [display,gray]
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   252
  "@{binding \"name\"}"
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   253
  "name"}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   254
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   255
  An example where a qualified name is needed is the function 
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   256
  @{ML_ind define in Local_Theory}.  This function is used below to define 
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   257
  the constant @{term "TrueConj"} as the conjunction @{term "True \<and> True"}.
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   258
*}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   259
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   260
local_setup %gray {* 
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   261
  Local_Theory.define ((@{binding "TrueConj"}, NoSyn), 
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   262
      (Attrib.empty_binding, @{term "True \<and> True"})) #> snd *}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   263
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   264
text {* 
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   265
  Now querying the definition you obtain:
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   266
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   267
  \begin{isabelle}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   268
  \isacommand{thm}~@{text "TrueConj_def"}\\
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   269
  @{text "> "}~@{thm TrueConj_def}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   270
  \end{isabelle}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   271
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   272
  \begin{readmore}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   273
  The basic operations on bindings are implemented in 
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   274
  @{ML_file "Pure/General/binding.ML"}.
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   275
  \end{readmore}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   276
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   277
  \footnote{\bf FIXME give a better example why bindings are important}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   278
  \footnote{\bf FIXME give a pointer to \isacommand{local\_setup}; if not, then explain
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   279
  why @{ML snd} is needed.}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   280
  \footnote{\bf FIXME: There should probably a separate section on binding, long-names
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   281
  and sign.}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   282
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   283
*}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   284
318
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   285
360
Christian Urban <urbanc@in.tum.de>
parents: 359
diff changeset
   286
ML {* Sign.intern_type @{theory} "list" *}
Christian Urban <urbanc@in.tum.de>
parents: 359
diff changeset
   287
ML {* Sign.intern_const @{theory} "prod_fun" *}
Christian Urban <urbanc@in.tum.de>
parents: 359
diff changeset
   288
414
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   289
text {*
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   290
  \footnote{\bf FIXME: Explain the following better; maybe put in a separate
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   291
  section and link with the comment in the antiquotation section.}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   292
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   293
  Occasionally you have to calculate what the ``base'' name of a given
462
1d1e795bc3ad updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 441
diff changeset
   294
  constant is. For this you can use the function @{ML_ind  Long_Name.base_name}. For example:
414
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   295
462
1d1e795bc3ad updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 441
diff changeset
   296
  @{ML_response [display,gray] "Long_Name.base_name \"List.list.Nil\"" "\"Nil\""}
414
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   297
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   298
  \begin{readmore}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   299
  Functions about naming are implemented in @{ML_file "Pure/General/name_space.ML"};
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   300
  functions about signatures in @{ML_file "Pure/sign.ML"}.
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   301
  \end{readmore}
5fc2fb34c323 polished
Christian Urban <urbanc@in.tum.de>
parents: 413
diff changeset
   302
*}
387
5dcee4d751ad completed the unification section
Christian Urban <urbanc@in.tum.de>
parents: 386
diff changeset
   303
5dcee4d751ad completed the unification section
Christian Urban <urbanc@in.tum.de>
parents: 386
diff changeset
   304
text {* 
5dcee4d751ad completed the unification section
Christian Urban <urbanc@in.tum.de>
parents: 386
diff changeset
   305
  @{ML_ind "Binding.name_of"} returns the string without markup
394
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   306
0019ebf76e10 updated to new Isabelle
Christian Urban <urbanc@in.tum.de>
parents: 393
diff changeset
   307
  @{ML_ind "Binding.conceal"} 
387
5dcee4d751ad completed the unification section
Christian Urban <urbanc@in.tum.de>
parents: 386
diff changeset
   308
*}
5dcee4d751ad completed the unification section
Christian Urban <urbanc@in.tum.de>
parents: 386
diff changeset
   309
388
0b337dedc306 added Skip_Proof.mk_thm and some pointers about concurrency
Christian Urban <urbanc@in.tum.de>
parents: 387
diff changeset
   310
section {* Concurrency (TBD) *}
0b337dedc306 added Skip_Proof.mk_thm and some pointers about concurrency
Christian Urban <urbanc@in.tum.de>
parents: 387
diff changeset
   311
0b337dedc306 added Skip_Proof.mk_thm and some pointers about concurrency
Christian Urban <urbanc@in.tum.de>
parents: 387
diff changeset
   312
text {*
0b337dedc306 added Skip_Proof.mk_thm and some pointers about concurrency
Christian Urban <urbanc@in.tum.de>
parents: 387
diff changeset
   313
  @{ML_ind prove_future in Goal}
0b337dedc306 added Skip_Proof.mk_thm and some pointers about concurrency
Christian Urban <urbanc@in.tum.de>
parents: 387
diff changeset
   314
  @{ML_ind future_result in Goal}
0b337dedc306 added Skip_Proof.mk_thm and some pointers about concurrency
Christian Urban <urbanc@in.tum.de>
parents: 387
diff changeset
   315
  @{ML_ind fork_pri in Future}
0b337dedc306 added Skip_Proof.mk_thm and some pointers about concurrency
Christian Urban <urbanc@in.tum.de>
parents: 387
diff changeset
   316
*}
387
5dcee4d751ad completed the unification section
Christian Urban <urbanc@in.tum.de>
parents: 386
diff changeset
   317
396
Christian Urban <urbanc@in.tum.de>
parents: 395
diff changeset
   318
section {* Parse and Print Translations (TBD) *}
Christian Urban <urbanc@in.tum.de>
parents: 395
diff changeset
   319
349
9e374cd891e1 updated to Isabelle changes
Christian Urban <urbanc@in.tum.de>
parents: 348
diff changeset
   320
section {* Summary *}
9e374cd891e1 updated to Isabelle changes
Christian Urban <urbanc@in.tum.de>
parents: 348
diff changeset
   321
9e374cd891e1 updated to Isabelle changes
Christian Urban <urbanc@in.tum.de>
parents: 348
diff changeset
   322
text {*
395
2c392f61f400 spilt the Essential's chapter
Christian Urban <urbanc@in.tum.de>
parents: 394
diff changeset
   323
  TBD
349
9e374cd891e1 updated to Isabelle changes
Christian Urban <urbanc@in.tum.de>
parents: 348
diff changeset
   324
*}
318
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   325
efb5fff99c96 split up the first-steps section into two chapters
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   326
end