From 2547b2324ec65075365606e536648d8cc203150c Mon Sep 17 00:00:00 2001 From: Makarius Date: Mon, 20 Dec 2021 16:27:16 +0100 Subject: [PATCH] Adhoc examples for ML antiquotations. --- NOTES.thy | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/NOTES.thy b/NOTES.thy index f45aea38..32ab328f 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