forked from Isabelle_DOF/Isabelle_DOF
Fix DOF manual and tests to work with assert*
This commit is contained in:
parent
2351e00be6
commit
9603311a9a
|
@ -707,9 +707,10 @@ author*[bu::author, email = "\<open>wolff@lri.fr\<close>",
|
||||||
\<close>
|
\<close>
|
||||||
|
|
||||||
text\<open>Assertions allow for logical statements to be checked in the global context.
|
text\<open>Assertions allow for logical statements to be checked in the global context.
|
||||||
This is particularly useful to explore formal definitions wrt. their border cases. \<close>
|
This is particularly useful to explore formal definitions wrt. their border cases.
|
||||||
|
@{boxed_theory_text [display]\<open>
|
||||||
assert*[ass1::assertion, short_name = "\<open>This is an assertion\<close>"] \<open>last [3] < (4::int)\<close>
|
assert*[ass1::assertion, short_name = "\<open>This is an assertion\<close>"] \<open>last [3] < (4::int)\<close>\<close>}
|
||||||
|
\<close>
|
||||||
|
|
||||||
text\<open>We want to check the consequences of this definition and can add the following statements:
|
text\<open>We want to check the consequences of this definition and can add the following statements:
|
||||||
@{boxed_theory_text [display]\<open>
|
@{boxed_theory_text [display]\<open>
|
||||||
|
|
|
@ -29,10 +29,15 @@ print_doc_items
|
||||||
|
|
||||||
section\<open>Definitions, Lemmas, Theorems, Assertions\<close>
|
section\<open>Definitions, Lemmas, Theorems, Assertions\<close>
|
||||||
|
|
||||||
|
term\<open>True\<close>
|
||||||
text*[aa::F, properties = "[@{term ''True''}]"]
|
text*[aa::F, properties = "[@{term ''True''}]"]
|
||||||
\<open>Our definition of the HOL-Logic has the following properties:\<close>
|
\<open>Our definition of the HOL-Logic has the following properties:\<close>
|
||||||
assert*[aa::F] "True"
|
assert*\<open>F.properties @{F \<open>aa\<close>} = [@{term ''True''}]\<close>
|
||||||
|
|
||||||
|
text\<open>For now, as the term annotation is not bound to a meta logic which will translate
|
||||||
|
\<^term>\<open>[@{term ''True''}]\<close> to \<^term>\<open>[True]\<close>, we can not use the HOL \<^const>\<open>True\<close> constant
|
||||||
|
in the assertion.
|
||||||
|
\<close>
|
||||||
|
|
||||||
(* does not work in batch mode ...
|
(* does not work in batch mode ...
|
||||||
(* sample for accessing a property filled with previous assert's of "aa" *)
|
(* 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\<open>Creation just like that: \<close>
|
text\<open>Creation just like that: \<close>
|
||||||
assert*[ababa::assertion] "3 < (4::int)"
|
assert*[ababa::assertion] "3 < (4::int)"
|
||||||
assert*[ababa::assertion] "0 < (4::int)"
|
assert*[ababab::assertion] "0 < (4::int)"
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue