doc-src/IsarRef/pure.tex
changeset 19263 a86d09815dac
parent 19256 a49c0f7c9634
child 19626 ff7d6a847929
equal deleted inserted replaced
19262:b98b48496819 19263:a86d09815dac
   830 
   830 
   831 \subsection{Goal statements}\label{sec:goals}
   831 \subsection{Goal statements}\label{sec:goals}
   832 
   832 
   833 \indexisarcmd{lemma}\indexisarcmd{theorem}\indexisarcmd{corollary}
   833 \indexisarcmd{lemma}\indexisarcmd{theorem}\indexisarcmd{corollary}
   834 \indexisarcmd{have}\indexisarcmd{show}\indexisarcmd{hence}\indexisarcmd{thus}
   834 \indexisarcmd{have}\indexisarcmd{show}\indexisarcmd{hence}\indexisarcmd{thus}
       
   835 \indexisarcmd{print_statement}
   835 \begin{matharray}{rcl}
   836 \begin{matharray}{rcl}
   836   \isarcmd{lemma} & : & \isartrans{theory}{proof(prove)} \\
   837   \isarcmd{lemma} & : & \isartrans{theory}{proof(prove)} \\
   837   \isarcmd{theorem} & : & \isartrans{theory}{proof(prove)} \\
   838   \isarcmd{theorem} & : & \isartrans{theory}{proof(prove)} \\
   838   \isarcmd{corollary} & : & \isartrans{theory}{proof(prove)} \\
   839   \isarcmd{corollary} & : & \isartrans{theory}{proof(prove)} \\
   839   \isarcmd{have} & : & \isartrans{proof(state) ~|~ proof(chain)}{proof(prove)} \\
   840   \isarcmd{have} & : & \isartrans{proof(state) ~|~ proof(chain)}{proof(prove)} \\
   840   \isarcmd{show} & : & \isartrans{proof(state) ~|~ proof(chain)}{proof(prove)} \\
   841   \isarcmd{show} & : & \isartrans{proof(state) ~|~ proof(chain)}{proof(prove)} \\
   841   \isarcmd{hence} & : & \isartrans{proof(state)}{proof(prove)} \\
   842   \isarcmd{hence} & : & \isartrans{proof(state)}{proof(prove)} \\
   842   \isarcmd{thus} & : & \isartrans{proof(state)}{proof(prove)} \\
   843   \isarcmd{thus} & : & \isartrans{proof(state)}{proof(prove)} \\
       
   844   \isarcmd{print_statement}^* & : & \isarkeep{theory~|~proof} \\
   843 \end{matharray}
   845 \end{matharray}
   844 
   846 
   845 From a theory context, proof mode is entered by an initial goal command such
   847 From a theory context, proof mode is entered by an initial goal command such
   846 as $\LEMMANAME$, $\THEOREMNAME$, or $\COROLLARYNAME$.  Within a proof, new
   848 as $\LEMMANAME$, $\THEOREMNAME$, or $\COROLLARYNAME$.  Within a proof, new
   847 claims may be introduced locally as well; four variants are available here to
   849 claims may be introduced locally as well; four variants are available here to
   872 \begin{rail}
   874 \begin{rail}
   873   ('lemma' | 'theorem' | 'corollary') locale? (goal | longgoal)
   875   ('lemma' | 'theorem' | 'corollary') locale? (goal | longgoal)
   874   ;
   876   ;
   875   ('have' | 'show' | 'hence' | 'thus') goal
   877   ('have' | 'show' | 'hence' | 'thus') goal
   876   ;
   878   ;
       
   879   'print\_statement' modes? thmrefs
       
   880   ;
   877   
   881   
   878   goal: (props + 'and')
   882   goal: (props + 'and')
   879   ;
   883   ;
   880   longgoal: thmdecl? (contextelem *) conclusion
   884   longgoal: thmdecl? (contextelem *) conclusion
   881   ;
   885   ;
   922   goal to be proven by forward chaining the current facts.  Note that
   926   goal to be proven by forward chaining the current facts.  Note that
   923   $\HENCENAME$ is also equivalent to ``$\FROM{this}~\HAVENAME$''.
   927   $\HENCENAME$ is also equivalent to ``$\FROM{this}~\HAVENAME$''.
   924   
   928   
   925 \item [$\THUSNAME$] abbreviates ``$\THEN~\SHOWNAME$''.  Note that $\THUSNAME$
   929 \item [$\THUSNAME$] abbreviates ``$\THEN~\SHOWNAME$''.  Note that $\THUSNAME$
   926   is also equivalent to ``$\FROM{this}~\SHOWNAME$''.
   930   is also equivalent to ``$\FROM{this}~\SHOWNAME$''.
       
   931   
       
   932 \item [$\isarkeyword{print_statement}~\vec a$] prints theorems from
       
   933   the current theory or proof context in long statement form,
       
   934   according to the syntax for $\isarkeyword{lemma}$ given above.
   927 
   935 
   928 \end{descr}
   936 \end{descr}
   929 
   937 
   930 Any goal statement causes some term abbreviations (such as $\Var{thesis}$) to
   938 Any goal statement causes some term abbreviations (such as $\Var{thesis}$) to
   931 be bound automatically, see also \S\ref{sec:term-abbrev}.  Furthermore, the
   939 be bound automatically, see also \S\ref{sec:term-abbrev}.  Furthermore, the