blob: d8a679b473ecd01381490b9468aa4407f2550952 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
;; ID: $Id$
;; Author: David von Oheimb
;; Copyright 1998 Technische Universitaet Muenchen
;; token language "Isabelle Symbols" for package x-symbol
;;
;; NB: this file is copied directly from isa/x-symbol-isa.el
(provide 'x-symbol-isar)
(defvar x-symbol-isar-required-fonts nil)
(defvar x-symbol-isar-header-groups-alist nil)
;'(("Operator" bigop operator)
; ("Relation" relation)
; ("Arrow, Punctuation" arrow triangle shape
; white line dots punctuation quote parenthesis)
; ("Symbol" symbol currency mathletter setsymbol)
; ("Greek Letter" greek greek1)
; ("Acute, Grave" acute grave))
; "*If non-nil, used in isasym specific grid/menu.
(defvar x-symbol-isar-class-alist
'((VALID "Isabelle Symbol" (x-symbol-info-face))
(INVALID "no Isabelle Symbol" (red x-symbol-info-face))))
(defvar x-symbol-isar-class-face-alist nil)
(defvar x-symbol-isar-electric-ignore "[:'][A-Za-z]\\|<=")
(defvar x-symbol-isar-font-lock-keywords nil)
(defvar x-symbol-isar-master-directory 'ignore)
(defvar x-symbol-isar-image-searchpath '("./"))
(defvar x-symbol-isar-image-cached-dirs '("images/" "pictures/"))
(defvar x-symbol-isar-image-file-truename-alist nil)
(defvar x-symbol-isar-image-keywords nil)
(defvar x-symbol-isar-case-insensitive nil)
;(defvar x-symbol-isar-token-shape '(?\\ "\\\\\\<[A-Za-z][A-Za-z0-9_']*>\\a'" . "[A-Za-z]"))
(defvar x-symbol-isar-token-shape nil)
(defvar x-symbol-isar-exec-specs '(nil ("\\`\\\\<[A-Za-z][A-Za-z0-9_']*>\\'" .
"\\\\<[A-Za-z][A-Za-z0-9_']*>")))
(defvar x-symbol-isar-input-token-ignore nil)
(defun x-symbol-isar-default-token-list (tokens) tokens)
(defvar x-symbol-isar-token-list 'x-symbol-isar-default-token-list)
(defvar x-symbol-isar-symbol-table '(;;symbols (isabelle14 font)
(visiblespace () "\\\\<spacespace>" "\\<spacespace>")
(Gamma () "\\\\<Gamma>" "\\<Gamma>")
(Delta () "\\\\<Delta>" "\\<Delta>")
(Theta () "\\\\<Theta>" "\\<Theta>")
(Lambda () "\\\\<Lambda>" "\\<Lambda>")
(Pi () "\\\\<Pi>" "\\<Pi>")
(Sigma () "\\\\<Sigma>" "\\<Sigma>")
(Phi () "\\\\<Phi>" "\\<Phi>")
(Psi () "\\\\<Psi>" "\\<Psi>")
(Omega () "\\\\<Omega>" "\\<Omega>")
(alpha () "\\\\<alpha>" "\\<alpha>")
(beta () "\\\\<beta>" "\\<beta>")
(gamma () "\\\\<gamma>" "\\<gamma>")
(delta () "\\\\<delta>" "\\<delta>")
(epsilon1 () "\\\\<epsilon>" "\\<epsilon>")
(zeta () "\\\\<zeta>" "\\<zeta>")
(eta () "\\\\<eta>" "\\<eta>")
(theta1 () "\\\\<theta>" "\\<theta>")
(kappa1 () "\\\\<kappa>" "\\<kappa>")
(lambda () "\\\\<lambda>" "\\<lambda>")
(mu () "\\\\<mu>" "\\<mu>")
(nu () "\\\\<nu>" "\\<nu>")
(xi () "\\\\<xi>" "\\<xi>")
(pi () "\\\\<pi>" "\\<pi>")
(rho () "\\\\<rho>" "\\<rho>")
(sigma () "\\\\<sigma>" "\\<sigma>")
(tau () "\\\\<tau>" "\\<tau>")
(phi1 () "\\\\<phi>" "\\<phi>")
(chi () "\\\\<chi>" "\\<chi>")
(psi () "\\\\<psi>" "\\<psi>")
(omega () "\\\\<omega>" "\\<omega>")
(notsign () "\\\\<not>" "\\<not>")
(logicaland () "\\\\<and>" "\\<and>")
(logicalor () "\\\\<or>" "\\<or>")
(universal1 () "\\\\<forall>" "\\<forall>")
(existential1 () "\\\\<exists>" "\\<exists>")
(biglogicaland () "\\\\<And>" "\\<And>")
(ceilingleft () "\\\\<lceil>" "\\<lceil>")
(ceilingright () "\\\\<rceil>" "\\<rceil>")
(floorleft () "\\\\<lfloor>" "\\<lfloor>")
(floorright () "\\\\<rfloor>" "\\<rfloor>")
(bardash () "\\\\<turnstile>" "\\<turnstile>")
(bardashdbl () "\\\\<Turnstile>" "\\<Turnstile>")
(semanticsleft () "\\\\<lbrakk>" "\\<lbrakk>")
(semanticsright () "\\\\<rbrakk>" "\\<rbrakk>")
(periodcentered () "\\\\<cdot>" "\\<cdot>")
(element () "\\\\<in>" "\\<in>")
(reflexsubset () "\\\\<subseteq>" "\\<subseteq>")
(intersection () "\\\\<inter>" "\\<inter>")
(union () "\\\\<union>" "\\<union>")
(bigintersection () "\\\\<Inter>" "\\<Inter>")
(bigunion () "\\\\<Union>" "\\<Union>")
(sqintersection () "\\\\<sqinter>" "\\<sqinter>")
(squnion () "\\\\<squnion>" "\\<squnion>")
(bigsqintersection () "\\\\<Sqinter>" "\\<Sqinter>")
(bigsqunion () "\\\\<Squnion>" "\\<Squnion>")
(perpendicular1 () "\\\\<bottom>" "\\<bottom>")
(dotequal () "\\\\<doteq>" "\\<doteq>")
(equivalence () "\\\\<equiv>" "\\<equiv>")
(notequal () "\\\\<noteq>" "\\<noteq>")
(propersqsubset () "\\\\<sqsubset>" "\\<sqsubset>")
(reflexsqsubset () "\\\\<sqsubseteq>" "\\<sqsubseteq>")
(properprec () "\\\\<prec>" "\\<prec>")
(reflexprec () "\\\\<preceq>" "\\<preceq>")
(propersucc () "\\\\<succ>" "\\<succ>")
(approxequal () "\\\\<approx>" "\\<approx>")
(similar () "\\\\<sim>" "\\<sim>")
(simequal () "\\\\<simeq>" "\\<simeq>")
(lessequal () "\\\\<le>" "\\<le>")
(coloncolon () "\\\\<Colon>" "\\<Colon>")
(arrowleft () "\\\\<leftarrow>" "\\<leftarrow>")
(endash () "\\\\<midarrow>" "\\<midarrow>")
(arrowright () "\\\\<rightarrow>" "\\<rightarrow>")
(arrowdblleft () "\\\\<Leftarrow>" "\\<Leftarrow>")
; (rightleftharpoons () "\\\\<Midarrow>" "\\<Midarrow>") ;missing symbol (but not necessary)
(arrowdblright () "\\\\<Rightarrow>" "\\<Rightarrow>")
(frown () "\\\\<bow>" "\\<bow>")
(mapsto () "\\\\<mapsto>" "\\<mapsto>")
(leadsto () "\\\\<leadsto>" "\\<leadsto>")
(arrowup () "\\\\<up>" "\\<up>")
(arrowdown () "\\\\<down>" "\\<down>")
(notelement () "\\\\<notin>" "\\<notin>")
(multiply () "\\\\<times>" "\\<times>")
(circleplus () "\\\\<oplus>" "\\<oplus>")
(circleminus () "\\\\<ominus>" "\\<ominus>")
(circlemultiply () "\\\\<otimes>" "\\<otimes>")
(circleslash () "\\\\<oslash>" "\\<oslash>")
(propersubset () "\\\\<subset>" "\\<subset>")
(infinity () "\\\\<infinity>" "\\<infinity>")
(box () "\\\\<box>" "\\<box>")
(lozenge1 () "\\\\<diamond>" "\\<diamond>")
(circ () "\\\\<circ>" "\\<circ>")
(bullet () "\\\\<bullet>" "\\<bullet>")
(bardbl () "\\\\<parallel>" "\\<parallel>")
(radical () "\\\\<surd>" "\\<surd>")
(copyright () "\\\\<copyright>" "\\<copyright>")
))
(defvar x-symbol-isar-xsymbol-table '(;;xsymbols
(plusminus () "\\\\<plusminus>" "\\<plusminus>")
(division () "\\\\<div>" "\\<div>")
(longarrowright () "\\\\<longrightarrow>" "\\<longrightarrow>")
(longarrowleft () "\\\\<longleftarrow>" "\\<longleftarrow>")
(longarrowboth () "\\\\<longleftrightarrow>" "\\<longleftrightarrow>")
(longarrowdblright () "\\\\<Longrightarrow>" "\\<Longrightarrow>")
(longarrowdblleft () "\\\\<Longleftarrow>" "\\<Longleftarrow>")
(longarrowdblboth () "\\\\<Longleftrightarrow>" "\\<Longleftrightarrow>")
(brokenbar () "\\\\<brokenbar>" "\\<brokenbar>")
(hyphen () "\\\\<hyphen>" "\\<hyphen>")
(macron () "\\\\<macron>" "\\<macron>")
(exclamdown () "\\\\<exclamdown>" "\\<exclamdown>")
(questiondown () "\\\\<questiondown>" "\\<questiondown>")
(guillemotleft () "\\\\<guillemotleft>" "\\<guillemotleft>")
(guillemotright () "\\\\<guillemotright>" "\\<guillemotright>")
(degree () "\\\\<degree>" "\\<degree>")
(onesuperior () "\\\\<onesuperior>" "\\<onesuperior>")
(onequarter () "\\\\<onequarter>" "\\<onequarter>")
(twosuperior () "\\\\<twosuperior>" "\\<twosuperior>")
(onehalf () "\\\\<onehalf>" "\\<onehalf>")
(threesuperior () "\\\\<threesuperior>" "\\<threesuperior>")
(threequarters () "\\\\<threequarters>" "\\<threequarters>")
(paragraph () "\\\\<paragraph>" "\\<paragraph>")
(registered () "\\\\<registered>" "\\<registered>")
(ordfeminine () "\\\\<ordfeminine>" "\\<ordfeminine>")
(ordmasculine () "\\\\<ordmasculine>" "\\<ordmasculine>")
(section () "\\\\<section>" "\\<section>")
(pounds () "\\\\<pounds>" "\\<pounds>")
(yen () "\\\\<yen>" "\\<yen>")
(cent () "\\\\<cent>" "\\<cent>")
(currency () "\\\\<currency>" "\\<currency>")
))
(defvar x-symbol-isar-user-table nil)
(defvar x-symbol-isar-table
(append x-symbol-isar-user-table
(append x-symbol-isar-symbol-table x-symbol-isar-xsymbol-table)))
;;;===========================================================================
;;; Internal
;;;===========================================================================
(defvar x-symbol-isar-menu-alist nil
"Internal. Alist used for Isasym specific menu.")
(defvar x-symbol-isar-grid-alist nil
"Internal. Alist used for Isasym specific grid.")
(defvar x-symbol-isar-decode-atree nil
"Internal. Atree used by `x-symbol-token-input'.")
(defvar x-symbol-isar-decode-alist nil
"Internal. Alist used for decoding of Isasym macros.")
(defvar x-symbol-isar-encode-alist nil
"Internal. Alist used for encoding to Isasym macros.")
(defvar x-symbol-isar-nomule-decode-exec nil
"Internal. File name of Isasym decode executable.")
(defvar x-symbol-isar-nomule-encode-exec nil
"Internal. File name of Isasym encode executable.")
;;;===========================================================================
;;; useful key bindings
;;;===========================================================================
;; FIXME: these break some standard bindings, and should only be set
;; for proof shell, script (or minibuffer) modes.
;(global-set-key [(meta l)] 'x-symbol-INSERT-lambda)
;(global-set-key [(meta n)] 'x-symbol-INSERT-notsign)
;(global-set-key [(meta a)] 'x-symbol-INSERT-logicaland)
;(global-set-key [(meta o)] 'x-symbol-INSERT-logicalor)
;(global-set-key [(meta f)] 'x-symbol-INSERT-universal1)
;(global-set-key [(meta t)] 'x-symbol-INSERT-existential1)
;(global-set-key [(meta A)] 'x-symbol-INSERT-biglogicaland)
;(global-set-key [(meta e)] 'x-symbol-INSERT-equivalence)
;(global-set-key [(meta u)] 'x-symbol-INSERT-notequal)
;(global-set-key [(meta m)] 'x-symbol-INSERT-arrowdblright)
;(global-set-key [(meta i)] 'x-symbol-INSERT-longarrowright)
|