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 |
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 |