aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2002-07-18 18:47:03 +0000
committerDavid Aspinall2002-07-18 18:47:03 +0000
commit001ae6f91d8eb2e847e0bf8a1ed04cac12321c3e (patch)
treec82870592381dacc852e378d65258f76e091bb2d
parent487ce28ec1eb510d23db616509cc9aa817c8c043 (diff)
New files.
-rw-r--r--etc/isar/XSymbolTests.thy36
1 files changed, 36 insertions, 0 deletions
diff --git a/etc/isar/XSymbolTests.thy b/etc/isar/XSymbolTests.thy
new file mode 100644
index 00000000..7402ed81
--- /dev/null
+++ b/etc/isar/XSymbolTests.thy
@@ -0,0 +1,36 @@
+(* Some checks for X-Symbol behaviour.
+ $Id$
+*)
+
+theory XSymbolTests = Main:
+
+constdefs
+ P1 :: bool ("P\<^sub>1") (* subscript *)
+ "P\<^sub>1 == True"
+
+theorem "P\<^sub>1"; (* check subscript appears in goals window *)
+by (simp add: P1_def) (* .. and response window *)
+
+consts
+ "P\<^sup>\<alpha>" :: bool (* superscript of a token char *)
+ "\<^bold>X" :: bool (* bold character *)
+
+
+
+(*
+ Another X-Symbol oddity: sometimes the _first_ buffer to
+ be visited displays _some_ characters wrongly, e.g. \234
+ for \<circ>. But subsequent buffers to be visited work
+ fine. Problem is stable for turning x-symbol on/off.
+ Revisting the first buffer cures the problem.
+*)
+
+consts
+ iter :: "('a => 'a) => nat => ('a => 'a)"
+primrec
+ "iter f 0 = id"
+ "iter f (Suc n) = f \<circ> (iter f n)"
+
+
+end
+