Cleanup of file “InnerSyntaxAntiquotations”.

This commit is contained in:
Burkhart Wolff 2018-09-17 16:58:38 +02:00
parent 385af317f3
commit 7847f1cf01
1 changed files with 13 additions and 7 deletions

View File

@ -2,27 +2,33 @@ theory InnerSyntaxAntiquotations
imports "../../ontologies/Conceptual"
begin
ML\<open> val ({tab = x, ...},y,z)= DOF_core.get_data @{context};
Symtab.dest z; \<close>
ML\<open> val ({tab = x, ...},y,z)= DOF_core.get_data @{context}; Symtab.dest z; \<close>
lemma murks : "T = {ert,dfg}" sorry
text\<open>Example for a meta-attribute of ODL-type @{typ "file"} with an appropriate ISA for the
file @{file "./Attributes.thy"}\<close>
text*[xcv::F, u="@{file ''./examples/conceptual/Attributes.thy''}"]\<open>Lorem ipsum ...\<close>
text*[xcv1::A, x=5]\<open>Lorem ipsum ...\<close>
text*[xcv2::C, g="@{thm ''HOL.refl''}"]\<open>Lorem ipsum ...\<close>
text*[xcv3::A, x=7]\<open>Lorem ipsum ...\<close>
text\<open>Example for a meta-attribute of ODL-type @{typ "typ"} with an appropriate ISA for the
theorem @{thm "refl"}}\<close>
text*[xcv2::C, g="@{thm ''HOL.refl''}"]\<open>Lorem ipsum ...\<close>
text\<open>Major sample: test-item of doc-class \verb+F+ with a relational link, and links to formal
Isabelle items. \<close>
text*[xcv4::F, r="[@{thm ''HOL.refl''},
@{thm ''InnerSyntaxAntiquotations.murks''}]",
b="{(@{docitem ''xcv1''},@{docitem ''xcv2''})}",
s="[@{typ ''int list''}]"]\<open>Lorem ipsum ...\<close>
text\<open>... and here we add a relation between @{docitem \<open>xcv3\<close>} and @{docitem \<open>xcv2\<close>}
in the relation \verb+b+ of @{docitem_ref \<open>xcv4\<close>} \<close>
into the relation \verb+b+ of @{docitem_ref \<open>xcv4\<close>} \<close>
update_instance*[xcv4::F, b+="{(@{docitem ''xcv3''},@{docitem ''xcv2''})}"]
ML\<open>
@{docitem_attr b::xcv4}
\<close>
text\<open>And here is the result on term level:\<close>
ML\<open> @{docitem_attr b::xcv4} \<close>
end