From 698da3dd240ab563ee334ce54b06089d32133773 Mon Sep 17 00:00:00 2001 From: Burkhart Wolff Date: Tue, 24 Nov 2020 10:57:17 +0100 Subject: [PATCH] intermediate session with Macro-Bug. --- examples/CENELEC_50128/mini_odo/mini_odo.thy | 18 ++++++++++++------ .../scholarly_paper/2020-iFM-CSP/paper.thy | 10 +++++----- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/examples/CENELEC_50128/mini_odo/mini_odo.thy b/examples/CENELEC_50128/mini_odo/mini_odo.thy index 6216bbc..1d9da10 100755 --- a/examples/CENELEC_50128/mini_odo/mini_odo.thy +++ b/examples/CENELEC_50128/mini_odo/mini_odo.thy @@ -443,13 +443,13 @@ integrated source, we will, in the following, point out three scenarios.\ subsection\Internal Verification of Claims in the Requirements Specification.\ text\In our case, the SR-team early on detected a property necessary -for error-detection of the device (c.f. @{docitem verific}): +for error-detection of the device (c.f. @{technical verific}): \enlargethispage{2\baselineskip}\begin{isar} text*[encoder_props::requirement] The requirement specification team ... C1 & C2 & C3 = 0 (bitwise logical AND operation) C1 | C2 | C3 = 1 (bitwise logical OR operation) \end{isar} -After the Isabelle proofs shown in @{docitem verific}, we can either register the theorems +After the Isabelle proofs shown in @{technical verific}, we can either register the theorems directly in an evidence statement: \begin{isar} @@ -562,13 +562,19 @@ to a test-environment or test-engine. \ text\Finally some examples of references to doc-items, i.e. text-elements with declared meta-information and status. \ -text \ As established by @{docitem (unchecked) \t10\}, - @{docitem (define) \t10\} \ -text \ the @{docitem \t10\} - as well as the @{docitem \ass122\}\ +text \ As established by @{test_result (unchecked) \t10\}, + @{test_result (define) \t10\} \ +text \ the @{test_result \t10\} + as well as the @{SRAC \ass122\}\ text \ represent a justification of the safety related applicability condition @{SRAC \ass122\} aka exported constraint @{EC \ass122\}.\ +(* due to notational conventions for antiquotations, one may even write: *) +(* CRASHES WITH LaTeX backend error. *) +text \ represent a justification of the safety related applicability + condition \<^SRAC>\ass122\ aka exported constraint \<^EC>\ass122\.\ + + (*<*) end (*>*) diff --git a/examples/scholarly_paper/2020-iFM-CSP/paper.thy b/examples/scholarly_paper/2020-iFM-CSP/paper.thy index e4563d1..3302e56 100644 --- a/examples/scholarly_paper/2020-iFM-CSP/paper.thy +++ b/examples/scholarly_paper/2020-iFM-CSP/paper.thy @@ -527,16 +527,16 @@ To handle termination better, we added two new processes \CHAOS\<^sub>S\<^ %Note that we do not redefine \RUN\ with \SKIP\ because this process is supposed to never terminate, %thus must be without it. \ -(* -Definition*[X22]\\RUN A \ \ X. \ x \ A \ X\ \<^vs>\-0.7cm\\ -Definition*[X32]\\CHAOS A \ \ X. (STOP \ (\ x \ A \ X))\ \<^vs>\-0.7cm\\ -Definition*[X42]\\CHAOS\<^sub>S\<^sub>K\<^sub>I\<^sub>P A \ \ X. (SKIP \ STOP \ (\ x \ A \ X))\\<^vs>\-0.7cm\\ + +text*[X22::"definition"]\\RUN A \ \ X. \ x \ A \ X\ \ +text*[X32::"definition"]\\CHAOS A \ \ X. (STOP \ (\ x \ A \ X))\ \ +Definition*[X42::"definition"]\\CHAOS\<^sub>S\<^sub>K\<^sub>I\<^sub>P A \ \ X. (SKIP \ STOP \ (\ x \ A \ X))\\ text\ The \RUN\-process defined @{definition X22} represents the process that accepts all events, but never stops nor deadlocks. The \CHAOS\-process comes in two variants shown in @{definition X32} and @{definition X42}: the process that non-deterministically stops or accepts any offered event, whereas \CHAOS\<^sub>S\<^sub>K\<^sub>I\<^sub>P\ can additionally terminate.\ -*) + Definition*[X2]\\RUN A \ \ X. \ x \ A \ X\ \<^vs>\-0.7cm\\ Definition*[X3]\\CHAOS A \ \ X. (STOP \ (\ x \ A \ X))\ \<^vs>\-0.7cm\\