280 \isatagmlref |
280 \isatagmlref |
281 % |
281 % |
282 \begin{isamarkuptext}% |
282 \begin{isamarkuptext}% |
283 \begin{mldecls} |
283 \begin{mldecls} |
284 \indexdef{}{ML type}{Proof.context}\verb|type Proof.context| \\ |
284 \indexdef{}{ML type}{Proof.context}\verb|type Proof.context| \\ |
285 \indexdef{}{ML}{ProofContext.init}\verb|ProofContext.init: theory -> Proof.context| \\ |
285 \indexdef{}{ML}{ProofContext.init\_global}\verb|ProofContext.init_global: theory -> Proof.context| \\ |
286 \indexdef{}{ML}{ProofContext.theory\_of}\verb|ProofContext.theory_of: Proof.context -> theory| \\ |
286 \indexdef{}{ML}{ProofContext.theory\_of}\verb|ProofContext.theory_of: Proof.context -> theory| \\ |
287 \indexdef{}{ML}{ProofContext.transfer}\verb|ProofContext.transfer: theory -> Proof.context -> Proof.context| \\ |
287 \indexdef{}{ML}{ProofContext.transfer}\verb|ProofContext.transfer: theory -> Proof.context -> Proof.context| \\ |
288 \end{mldecls} |
288 \end{mldecls} |
289 |
289 |
290 \begin{description} |
290 \begin{description} |
291 |
291 |
292 \item \verb|Proof.context| represents proof contexts. Elements |
292 \item \verb|Proof.context| represents proof contexts. Elements |
293 of this type are essentially pure values, with a sliding reference |
293 of this type are essentially pure values, with a sliding reference |
294 to the background theory. |
294 to the background theory. |
295 |
295 |
296 \item \verb|ProofContext.init|~\isa{thy} produces a proof context |
296 \item \verb|ProofContext.init_global|~\isa{thy} produces a proof context |
297 derived from \isa{thy}, initializing all data. |
297 derived from \isa{thy}, initializing all data. |
298 |
298 |
299 \item \verb|ProofContext.theory_of|~\isa{ctxt} selects the |
299 \item \verb|ProofContext.theory_of|~\isa{ctxt} selects the |
300 background theory from \isa{ctxt}, dereferencing its internal |
300 background theory from \isa{ctxt}, dereferencing its internal |
301 \verb|theory_ref|. |
301 \verb|theory_ref|. |
353 |
353 |
354 \item \verb|Context.theory_of|~\isa{context} always produces a |
354 \item \verb|Context.theory_of|~\isa{context} always produces a |
355 theory from the generic \isa{context}, using \verb|ProofContext.theory_of| as required. |
355 theory from the generic \isa{context}, using \verb|ProofContext.theory_of| as required. |
356 |
356 |
357 \item \verb|Context.proof_of|~\isa{context} always produces a |
357 \item \verb|Context.proof_of|~\isa{context} always produces a |
358 proof context from the generic \isa{context}, using \verb|ProofContext.init| as required (note that this re-initializes the |
358 proof context from the generic \isa{context}, using \verb|ProofContext.init_global| as required (note that this re-initializes the |
359 context data with each invocation). |
359 context data with each invocation). |
360 |
360 |
361 \end{description}% |
361 \end{description}% |
362 \end{isamarkuptext}% |
362 \end{isamarkuptext}% |
363 \isamarkuptrue% |
363 \isamarkuptrue% |