diff --git a/NOTES.thy b/NOTES.thy index f45aea3..32ab328 100644 --- a/NOTES.thy +++ b/NOTES.thy @@ -253,6 +253,22 @@ text \ \ \ +text \Adhoc examples:\ + +ML \ + fun mk_plus x y = \<^Const>\plus \<^Type>\nat\ for x y\; + + fn \<^Const_>\plus \<^Type>\nat\ for \<^Const_>\Groups.zero \<^Type>\nat\\ y\ => y; +\ + +ML \ + fn (A, B) => + \<^instantiate>\A and B in term \A \ B \ B \ A\\; + + fn (A, B) => + \<^instantiate>\A and B in lemma \A \ B \ B \ A\ by simp\; +\ + end (* :maxLineLen=75: *) \ No newline at end of file