From e69808750c70be6548836bb26d64e29c4f70e9d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20M=C3=A9ric?= Date: Fri, 22 Apr 2022 15:45:27 +0200 Subject: [PATCH] Polish layout and fix typos --- .../scholarly_paper/2021-ITP-PMTI/paper.thy | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/examples/scholarly_paper/2021-ITP-PMTI/paper.thy b/examples/scholarly_paper/2021-ITP-PMTI/paper.thy index ddc5355..6e79552 100644 --- a/examples/scholarly_paper/2021-ITP-PMTI/paper.thy +++ b/examples/scholarly_paper/2021-ITP-PMTI/paper.thy @@ -353,7 +353,7 @@ side_by_side_figure*["text-elements"::side_by_side_figure,anchor="''fig-Req-Def- src2="''figures/Req-Appl-ex''"]\Referencing a Requirement. \ text\@{figure "text-elements"} shows an ontological annotation of a requirement and its referencing - via an antiquotation \<^theory_text>\requirement \req1\\; the latter is generated from the above + via an antiquotation \<^theory_text>\@{requirement \req1\}\; the latter is generated from the above class definition. Undefined or ill-typed references were rejected, the high-lighting displays the hyperlinking which is activated on a click. The class-definition of \requirement\ and its documentation is also revisited via one activation click.\ @@ -730,8 +730,8 @@ value*\filter (\\. myresult.evidence \ = argument) @ (*>*) text\ - Any class definition generates term antiquotations checking a class instance or - the set of instances in a particular logical context; these references were + Any class definition generates term antiquotations checking a class instance reference + in a particular logical context; these references were elaborated to objects they refer to. This paves the way for a new mechanism to query the ``current'' instances presented as a \<^hol> \<^type>\list\. @@ -909,6 +909,7 @@ onto_class Hardware = Informatic + This ontology defines the \<^typ>\Resource\, \<^typ>\Electronic\, \<^typ>\Component\, \<^typ>\Informatic\ and \<^typ>\Hardware\ concepts. In our example, we focus on the \<^typ>\Hardware\ class containing a \<^const>\Component.mass\ attribute +inherited from the \<^typ>\Component\ class and composed of a list of components with a \<^const>\Component.mass\ attribute formalising the mass value of each component. The \<^typ>\Hardware\ class also contains a local \<^theory_text>\invariant c1\ @@ -960,7 +961,7 @@ from the one of a standard ontology it references. \ text\ -The following example proof for a simple, but typical example of reformatting +The following example proofs for a simple, but typical example of reformatting meta-data into another format along an ontological mapping are nearly trivial: %\begin{figure} @@ -968,9 +969,9 @@ meta-data into another format along an ontological mapping are nearly trivial: \lemma inv_c2_preserved : "c2_inv \ \ c1_inv (\ \Hardware\\<^sub>C\<^sub>o\<^sub>m\<^sub>p\<^sub>u\<^sub>t\<^sub>e\<^sub>r\<^sub>H\<^sub>a\<^sub>r\<^sub>d\<^sub>w\<^sub>a\<^sub>r\<^sub>e)" unfolding c1_inv_def c2_inv_def - Computer_Hardware_to_Hardware_morphism_def + Computer_Hardware_to_Hardware_morphism_def Product_to_Component_morphism_def - using comp_def by auto + by (auto simp: comp_def) lemma Computer_Hardware_to_Hardware_total : "Computer_Hardware_to_Hardware_morphism ` ({X. c2_inv X}) @@ -1083,8 +1084,8 @@ the textual structure of a chapter (the \<^emph>\level\-attribute i ontology library specifying basic text-elements) as well as the two-eyes-principle between authors and checkers of these chapters. \ -text\ The concrete sub-class of \<^typ>\cenelec_document\ is the -\<^typ>\software_interface_specification\-class (\<^typ>\SWIS\ for short) as shown below, +text\ The concrete sub-class of \<^typ>\cenelec_document\ is the class \<^typ>\SWIS\ +(``software interface specification'') as shown below, which provides the role assignment required for this document type: @{boxed_theory_text [display] \ @@ -1114,7 +1115,7 @@ is executed during the evaluation phase of these invariants and that checks: \<^vs>\-0.3cm\ @{cartouche [display,indent=10,margin=70] \pre_ (a\<^sub>1::\\<^sub>1) ... (a\<^sub>n::\\<^sub>n) \ ,\} \<^vs>\-0.3cm\ - where the \(a\<^sub>1::\\<^sub>1) ... (a\<^sub>n::\\<^sub>n)\ correspond to the argument list. + where \(a\<^sub>1::\\<^sub>1) ... (a\<^sub>n::\\<^sub>n)\ correspond to the argument list. \<^item> The case for the post-condition is treated analogously. \ text\Note that this technique can also be applied to impose specific syntactic constraints on