theory AssnsLemmaThmEtc imports "../ontologies/Conceptual/Conceptual" "../ontologies/math_paper/math_paper" begin section\Elementary Creation of Doc-items and Access of their Attibutes\ text\Current status:\ print_doc_classes print_doc_items section\Definitions, Lemmas, Theorems, Assertions\ text*[aa::F, property = "[@{term ''True''}]"] \Our definition of the HOL-Logic has the following properties:\ assert*[aa::F] "True" (* does not work in batch mode ... (* sample for accessing a property filled with previous assert's of "aa" *) ML\ ISA_core.property_list_dest @{context} @{docitem_attribute property :: aa};\ assert*[aa::F] " X \ Y \ True" (*example with uni-code *) ML\ ISA_core.property_list_dest @{context} @{docitem_attribute property :: aa}; app writeln (tl (rev it));\ *) assert*[aa::F] "\x::bool. X \ Y \ True" (*problem with uni-code *) ML\ Syntax.read_term_global @{theory} "[@{termrepr ''True @ True''}]"; (* this only works because the isa check is not activated in "term" !!! *) @{term "[@{term '' True @ True ''}]"}; (* with isa-check *) @{term "[@{termrepr '' True @ True ''}]"}; (* without isa check *) \ (* ML\val [_,_,Const _ $ s,_] = (HOLogic.dest_list @{docitem_attribute property :: aa}); val t = HOLogic.dest_string s; holstring_to_bstring @{context} t \ *) lemma "All (\x. X \ Y \ True)" oops text\An example for the ontology specification character of the short-cuts such as @{command "assert*"}: in the following, we use the same notation referring to a completely different class. "F" and "assertion" have only in common that they posses the attribute \<^verbatim>\property\: \ text\Creation just like that: \ assert*[aaa::assertion] "3 < (4::int)" assert*[aaa::assertion] "0 < (4::int)" end (*>*)