Isar.context ();
authorwenzelm
Thu, 06 Jul 2006 16:49:37 +0200
changeset 20025 95aeaa3ef35d
parent 20024 553d48cac687
child 20026 3469df62fe21
Isar.context ();
doc-src/IsarImplementation/Thy/integration.thy
--- a/doc-src/IsarImplementation/Thy/integration.thy	Thu Jul 06 16:49:36 2006 +0200
+++ b/doc-src/IsarImplementation/Thy/integration.thy	Thu Jul 06 16:49:37 2006 +0200
@@ -37,9 +37,9 @@
   @{text theory}, or @{text proof}.  On entering the main Isar loop we
   start with an empty toplevel.  A theory is commenced by giving a
   @{text \<THEORY>} header; within a theory we may issue theory
-  commands such as @{text \<CONSTS>} or @{text \<DEFS>}, or state a
-  @{text \<THEOREM>} to be proven.  Now we are within a proof state,
-  with a rich collection of Isar proof commands for structured proof
+  commands such as @{text \<DEFINITION>}, or state a @{text
+  \<THEOREM>} to be proven.  Now we are within a proof state, with a
+  rich collection of Isar proof commands for structured proof
   composition, or unstructured proof scripts.  When the proof is
   concluded we get back to the theory, which is then updated by
   storing the resulting fact.  Further theory declarations or theorem
@@ -276,6 +276,7 @@
   @{index_ML Isar.main: "unit -> unit"} \\
   @{index_ML Isar.loop: "unit -> unit"} \\
   @{index_ML Isar.state: "unit -> Toplevel.state"} \\
+  @{index_ML Isar.context: "unit -> Proof.context"} \\
   @{index_ML Isar.exn: "unit -> (exn * string) option"} \\
   \end{mldecls}
 
@@ -291,6 +292,9 @@
   toplevel state and optional error condition, respectively.  This
   only works after dropping out of the Isar toplevel loop.
 
+  \item @{ML "Isar.context ()"} produces the proof context from @{ML
+  "Isar.state ()"} above.
+
   \end{description}
 *}