src/Doc/IsarRef/Quick_Reference.thy
author wenzelm
Sat, 25 May 2013 17:40:44 +0200
changeset 52147 9943f8067f11
parent 48985 5386df44a037
child 52430 289e36c2870a
permissions -rw-r--r--
tuned;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26779
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
     1
theory Quick_Reference
42651
e3fdb7c96be5 formal Base theory;
wenzelm
parents: 40536
diff changeset
     2
imports Base Main
26779
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
     3
begin
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
     4
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
     5
chapter {* Isabelle/Isar quick reference \label{ap:refcard} *}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
     6
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
     7
section {* Proof commands *}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
     8
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
     9
subsection {* Primitives and basic syntax *}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    10
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    11
text {*
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    12
  \begin{tabular}{ll}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    13
    @{command "fix"}~@{text x} & augment context by @{text "\<And>x. \<box>"} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    14
    @{command "assume"}~@{text "a: \<phi>"} & augment context by @{text "\<phi> \<Longrightarrow> \<box>"} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    15
    @{command "then"} & indicate forward chaining of facts \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    16
    @{command "have"}~@{text "a: \<phi>"} & prove local result \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    17
    @{command "show"}~@{text "a: \<phi>"} & prove local result, refining some goal \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    18
    @{command "using"}~@{text a} & indicate use of additional facts \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    19
    @{command "unfolding"}~@{text a} & unfold definitional equations \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    20
    @{command "proof"}~@{text "m\<^sub>1"}~\dots~@{command "qed"}~@{text "m\<^sub>2"} & indicate proof structure and refinements \\
26852
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    21
    @{command "{"}~@{text "\<dots>"}~@{command "}"} & indicate explicit blocks \\
26779
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    22
    @{command "next"} & switch blocks \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    23
    @{command "note"}~@{text "a = b"} & reconsider facts \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    24
    @{command "let"}~@{text "p = t"} & abbreviate terms by higher-order matching \\
40535
732f0826f1ba cover 'write' as primitive proof command;
wenzelm
parents: 30242
diff changeset
    25
    @{command "write"}~@{text "c  (mx)"} & declare local mixfix syntax \\
26779
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    26
  \end{tabular}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    27
26852
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    28
  \medskip
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    29
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    30
  \begin{tabular}{rcl}
29724
48634259d410 proof/qed: optional methods;
wenzelm
parents: 26852
diff changeset
    31
    @{text "proof"} & = & @{text "prfx\<^sup>*"}~@{command "proof"}~@{text "method\<^sup>? stmt\<^sup>*"}~@{command "qed"}~@{text "method\<^sup>?"} \\
42667
3a365e95c84a fit page;
wenzelm
parents: 42651
diff changeset
    32
    & @{text "|"} & @{text "prfx\<^sup>*"}~@{command "done"} \\
26779
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    33
    @{text prfx} & = & @{command "apply"}~@{text method} \\
26852
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    34
    & @{text "|"} & @{command "using"}~@{text "facts"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    35
    & @{text "|"} & @{command "unfolding"}~@{text "facts"} \\
26779
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    36
    @{text stmt} & = & @{command "{"}~@{text "stmt\<^sup>*"}~@{command "}"} \\
26852
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    37
    & @{text "|"} & @{command "next"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    38
    & @{text "|"} & @{command "note"}~@{text "name = facts"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    39
    & @{text "|"} & @{command "let"}~@{text "term = term"} \\
40535
732f0826f1ba cover 'write' as primitive proof command;
wenzelm
parents: 30242
diff changeset
    40
    & @{text "|"} & @{command "write"}~@{text "name (mixfix)"} \\
26852
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    41
    & @{text "|"} & @{command "fix"}~@{text "var\<^sup>+"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    42
    & @{text "|"} & @{command "assume"}~@{text "name: props"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    43
    & @{text "|"} & @{command "then"}@{text "\<^sup>?"}~@{text goal} \\
26780
de781c5c48c1 tuned syntax: props and facts;
wenzelm
parents: 26779
diff changeset
    44
    @{text goal} & = & @{command "have"}~@{text "name: props proof"} \\
26852
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    45
    & @{text "|"} & @{command "show"}~@{text "name: props proof"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    46
  \end{tabular}
26779
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    47
*}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    48
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    49
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    50
subsection {* Abbreviations and synonyms *}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    51
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    52
text {*
26852
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    53
  \begin{tabular}{rcl}
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    54
    @{command "by"}~@{text "m\<^sub>1 m\<^sub>2"} & @{text "\<equiv>"} &
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    55
      @{command "proof"}~@{text "m\<^sub>1"}~@{command "qed"}~@{text "m\<^sub>2"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    56
    @{command ".."} & @{text "\<equiv>"} & @{command "by"}~@{text rule} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    57
    @{command "."} & @{text "\<equiv>"} & @{command "by"}~@{text this} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    58
    @{command "hence"} & @{text "\<equiv>"} & @{command "then"}~@{command "have"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    59
    @{command "thus"} & @{text "\<equiv>"} & @{command "then"}~@{command "show"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    60
    @{command "from"}~@{text a} & @{text "\<equiv>"} & @{command "note"}~@{text a}~@{command "then"} \\
42667
3a365e95c84a fit page;
wenzelm
parents: 42651
diff changeset
    61
    @{command "with"}~@{text a} & @{text "\<equiv>"} & @{command "from"}~@{text "a \<AND> this"} \\
26852
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    62
    @{command "from"}~@{text this} & @{text "\<equiv>"} & @{command "then"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    63
    @{command "from"}~@{text this}~@{command "have"} & @{text "\<equiv>"} & @{command "hence"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    64
    @{command "from"}~@{text this}~@{command "show"} & @{text "\<equiv>"} & @{command "thus"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    65
  \end{tabular}
26779
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    66
*}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    67
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    68
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    69
subsection {* Derived elements *}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    70
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    71
text {*
26852
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    72
  \begin{tabular}{rcl}
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    73
    @{command "also"}@{text "\<^sub>0"} & @{text "\<approx>"} &
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    74
      @{command "note"}~@{text "calculation = this"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    75
    @{command "also"}@{text "\<^sub>n\<^sub>+\<^sub>1"} & @{text "\<approx>"} &
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    76
      @{command "note"}~@{text "calculation = trans [OF calculation this]"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    77
    @{command "finally"} & @{text "\<approx>"} &
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    78
      @{command "also"}~@{command "from"}~@{text calculation} \\[0.5ex]
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    79
    @{command "moreover"} & @{text "\<approx>"} &
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    80
      @{command "note"}~@{text "calculation = calculation this"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    81
    @{command "ultimately"} & @{text "\<approx>"} &
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    82
      @{command "moreover"}~@{command "from"}~@{text calculation} \\[0.5ex]
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    83
    @{command "presume"}~@{text "a: \<phi>"} & @{text "\<approx>"} &
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    84
      @{command "assume"}~@{text "a: \<phi>"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    85
    @{command "def"}~@{text "a: x \<equiv> t"} & @{text "\<approx>"} &
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    86
      @{command "fix"}~@{text x}~@{command "assume"}~@{text "a: x \<equiv> t"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    87
    @{command "obtain"}~@{text "x \<WHERE> a: \<phi>"} & @{text "\<approx>"} &
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    88
      @{text "\<dots>"}~@{command "fix"}~@{text x}~@{command "assume"}~@{text "a: \<phi>"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    89
    @{command "case"}~@{text c} & @{text "\<approx>"} &
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    90
      @{command "fix"}~@{text x}~@{command "assume"}~@{text "c: \<phi>"} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    91
    @{command "sorry"} & @{text "\<approx>"} &
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    92
      @{command "by"}~@{text cheating} \\
a31203f58b20 misc tuning;
wenzelm
parents: 26780
diff changeset
    93
  \end{tabular}
26779
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    94
*}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    95
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    96
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    97
subsection {* Diagnostic commands *}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    98
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
    99
text {*
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   100
  \begin{tabular}{ll}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   101
    @{command "pr"} & print current state \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   102
    @{command "thm"}~@{text a} & print fact \\
40536
wenzelm
parents: 40535
diff changeset
   103
    @{command "prop"}~@{text \<phi>} & print proposition \\
26779
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   104
    @{command "term"}~@{text t} & print term \\
40536
wenzelm
parents: 40535
diff changeset
   105
    @{command "typ"}~@{text \<tau>} & print type \\
26779
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   106
  \end{tabular}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   107
*}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   108
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   109
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   110
section {* Proof methods *}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   111
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   112
text {*
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   113
  \begin{tabular}{ll}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   114
    \multicolumn{2}{l}{\textbf{Single steps (forward-chaining facts)}} \\[0.5ex]
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   115
    @{method assumption} & apply some assumption \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   116
    @{method this} & apply current facts \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   117
    @{method rule}~@{text a} & apply some rule  \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   118
    @{method rule} & apply standard rule (default for @{command "proof"}) \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   119
    @{method contradiction} & apply @{text "\<not>"} elimination rule (any order) \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   120
    @{method cases}~@{text t} & case analysis (provides cases) \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   121
    @{method induct}~@{text x} & proof by induction (provides cases) \\[2ex]
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   122
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   123
    \multicolumn{2}{l}{\textbf{Repeated steps (inserting facts)}} \\[0.5ex]
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   124
    @{method "-"} & no rules \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   125
    @{method intro}~@{text a} & introduction rules \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   126
    @{method intro_classes} & class introduction rules \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   127
    @{method elim}~@{text a} & elimination rules \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   128
    @{method unfold}~@{text a} & definitional rewrite rules \\[2ex]
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   129
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   130
    \multicolumn{2}{l}{\textbf{Automated proof tools (inserting facts)}} \\[0.5ex]
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   131
    @{method iprover} & intuitionistic proof search \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   132
    @{method blast}, @{method fast} & Classical Reasoner \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   133
    @{method simp}, @{method simp_all} & Simplifier (+ Splitter) \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   134
    @{method auto}, @{method force} & Simplifier + Classical Reasoner \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   135
    @{method arith} & Arithmetic procedures \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   136
  \end{tabular}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   137
*}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   138
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   139
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   140
section {* Attributes *}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   141
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   142
text {*
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   143
  \begin{tabular}{ll}
42667
3a365e95c84a fit page;
wenzelm
parents: 42651
diff changeset
   144
    \multicolumn{2}{l}{\textbf{Rules}} \\[0.5ex]
26779
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   145
    @{attribute OF}~@{text a} & rule resolved with facts (skipping ``@{text _}'') \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   146
    @{attribute of}~@{text t} & rule instantiated with terms (skipping ``@{text _}'') \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   147
    @{attribute "where"}~@{text "x = t"} & rule instantiated with terms, by variable name \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   148
    @{attribute symmetric} & resolution with symmetry rule \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   149
    @{attribute THEN}~@{text b} & resolution with another rule \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   150
    @{attribute rule_format} & result put into standard rule format \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   151
    @{attribute elim_format} & destruct rule turned into elimination rule format \\[1ex]
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   152
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   153
    \multicolumn{2}{l}{\textbf{Declarations}} \\[0.5ex]
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   154
    @{attribute simp} & Simplifier rule \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   155
    @{attribute intro}, @{attribute elim}, @{attribute dest} & Pure or Classical Reasoner rule \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   156
    @{attribute iff} & Simplifier + Classical Reasoner rule \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   157
    @{attribute split} & case split rule \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   158
    @{attribute trans} & transitivity rule \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   159
    @{attribute sym} & symmetry rule \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   160
  \end{tabular}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   161
*}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   162
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   163
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   164
section {* Rule declarations and methods *}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   165
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   166
text {*
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   167
  \begin{tabular}{l|lllll}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   168
      & @{method rule} & @{method iprover} & @{method blast} & @{method simp} & @{method auto} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   169
      &                &                   & @{method fast} & @{method simp_all} & @{method force} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   170
    \hline
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   171
    @{attribute Pure.elim}@{text "!"} @{attribute Pure.intro}@{text "!"}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   172
      & @{text "\<times>"}    & @{text "\<times>"} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   173
    @{attribute Pure.elim} @{attribute Pure.intro}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   174
      & @{text "\<times>"}    & @{text "\<times>"} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   175
    @{attribute elim}@{text "!"} @{attribute intro}@{text "!"}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   176
      & @{text "\<times>"}    &                    & @{text "\<times>"}          &                     & @{text "\<times>"} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   177
    @{attribute elim} @{attribute intro}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   178
      & @{text "\<times>"}    &                    & @{text "\<times>"}          &                     & @{text "\<times>"} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   179
    @{attribute iff}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   180
      & @{text "\<times>"}    &                    & @{text "\<times>"}          & @{text "\<times>"}         & @{text "\<times>"} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   181
    @{attribute iff}@{text "?"}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   182
      & @{text "\<times>"} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   183
    @{attribute elim}@{text "?"} @{attribute intro}@{text "?"}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   184
      & @{text "\<times>"} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   185
    @{attribute simp}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   186
      &                &                    &                      & @{text "\<times>"}         & @{text "\<times>"} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   187
    @{attribute cong}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   188
      &                &                    &                      & @{text "\<times>"}         & @{text "\<times>"} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   189
    @{attribute split}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   190
      &                &                    &                      & @{text "\<times>"}         & @{text "\<times>"} \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   191
  \end{tabular}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   192
*}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   193
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   194
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   195
section {* Emulating tactic scripts *}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   196
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   197
subsection {* Commands *}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   198
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   199
text {*
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   200
  \begin{tabular}{ll}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   201
    @{command "apply"}~@{text m} & apply proof method at initial position \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   202
    @{command "apply_end"}~@{text m} & apply proof method near terminal position \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   203
    @{command "done"} & complete proof \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   204
    @{command "defer"}~@{text n} & move subgoal to end \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   205
    @{command "prefer"}~@{text n} & move subgoal to beginning \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   206
    @{command "back"} & backtrack last command \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   207
  \end{tabular}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   208
*}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   209
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   210
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   211
subsection {* Methods *}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   212
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   213
text {*
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   214
  \begin{tabular}{ll}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   215
    @{method rule_tac}~@{text insts} & resolution (with instantiation) \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   216
    @{method erule_tac}~@{text insts} & elim-resolution (with instantiation) \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   217
    @{method drule_tac}~@{text insts} & destruct-resolution (with instantiation) \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   218
    @{method frule_tac}~@{text insts} & forward-resolution (with instantiation) \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   219
    @{method cut_tac}~@{text insts} & insert facts (with instantiation) \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   220
    @{method thin_tac}~@{text \<phi>} & delete assumptions \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   221
    @{method subgoal_tac}~@{text \<phi>} & new claims \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   222
    @{method rename_tac}~@{text x} & rename innermost goal parameters \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   223
    @{method rotate_tac}~@{text n} & rotate assumptions of goal \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   224
    @{method tactic}~@{text "text"} & arbitrary ML tactic \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   225
    @{method case_tac}~@{text t} & exhaustion (datatypes) \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   226
    @{method induct_tac}~@{text x} & induction (datatypes) \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   227
    @{method ind_cases}~@{text t} & exhaustion + simplification (inductive predicates) \\
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   228
  \end{tabular}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   229
*}
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   230
35809287ab23 converted refcard.tex to Thy/Quick_Reference.thy;
wenzelm
parents:
diff changeset
   231
end