From 9603311a9aa81e8291e94625dcf640a0e39a6dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20M=C3=A9ric?= Date: Fri, 1 Apr 2022 09:54:16 +0200 Subject: [PATCH] Fix DOF manual and tests to work with assert* --- .../Isabelle_DOF-Manual/04_RefMan.thy | 7 ++++--- src/tests/AssnsLemmaThmEtc.thy | 11 ++++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/examples/technical_report/Isabelle_DOF-Manual/04_RefMan.thy b/examples/technical_report/Isabelle_DOF-Manual/04_RefMan.thy index 31fc481..56646ed 100755 --- a/examples/technical_report/Isabelle_DOF-Manual/04_RefMan.thy +++ b/examples/technical_report/Isabelle_DOF-Manual/04_RefMan.thy @@ -707,9 +707,10 @@ author*[bu::author, email = "\wolff@lri.fr\", \ text\Assertions allow for logical statements to be checked in the global context. -This is particularly useful to explore formal definitions wrt. their border cases. \ - -assert*[ass1::assertion, short_name = "\This is an assertion\"] \last [3] < (4::int)\ +This is particularly useful to explore formal definitions wrt. their border cases. +@{boxed_theory_text [display]\ +assert*[ass1::assertion, short_name = "\This is an assertion\"] \last [3] < (4::int)\\} +\ text\We want to check the consequences of this definition and can add the following statements: @{boxed_theory_text [display]\ diff --git a/src/tests/AssnsLemmaThmEtc.thy b/src/tests/AssnsLemmaThmEtc.thy index 299c7d6..b9d216d 100755 --- a/src/tests/AssnsLemmaThmEtc.thy +++ b/src/tests/AssnsLemmaThmEtc.thy @@ -29,10 +29,15 @@ print_doc_items section\Definitions, Lemmas, Theorems, Assertions\ - +term\True\ text*[aa::F, properties = "[@{term ''True''}]"] \Our definition of the HOL-Logic has the following properties:\ -assert*[aa::F] "True" +assert*\F.properties @{F \aa\} = [@{term ''True''}]\ + +text\For now, as the term annotation is not bound to a meta logic which will translate +\<^term>\[@{term ''True''}]\ to \<^term>\[True]\, we can not use the HOL \<^const>\True\ constant +in the assertion. +\ (* does not work in batch mode ... (* sample for accessing a property filled with previous assert's of "aa" *) @@ -70,7 +75,7 @@ different class. "F" and "assertion" have only in common that they posses the at text\Creation just like that: \ assert*[ababa::assertion] "3 < (4::int)" -assert*[ababa::assertion] "0 < (4::int)" +assert*[ababab::assertion] "0 < (4::int)" end