-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagda.fmt
255 lines (231 loc) · 7.57 KB
/
agda.fmt
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
% Agda Language
%format data = "\keyw{data}\;"
%format record = "\keyw{data}\;"
%format constructor = "\keyw{constructor}\;"
%format field = "\keyw{field}\;"
%format ; = "\keyw{;}\;"
%format with = "\;\keyw{with}\;"
%format let = "\;\keyw{let}\;"
%format in = "\;\keyw{in}\;"
%format where = "\;\keyw{where}\;"
%format module = "\keyw{module}"
%format open = "\keyw{open}"
%format private = "\keyw{private}"
%format renaming = "\keyw{renaming}"
%format public = "\keyw{public}"
%format postulate = "\keyw{postulate}\;"
%format abstract = "\keyw{abstract}"
%format import = "\keyw{import}"
%format infixl = "\keyw{infixl}"
%format infixr = "\keyw{infixr}"
%format infix = "\keyw{infix}"
%format rewrite = "\;\keyw{rewrite}\;"
%format mutual = "\keyw{mutual}"
%format forall = "\prefix{\keyw{\forall}}"
%format ._ = "{\texttt.}\!\keyw{\anonymous}"
%format . = "{\texttt.}\!\!"
%format _ = "\keyw{\anonymous}"
%format ? = "{?}"
%format shed (e) = "\shed{\{" e "\}}"
%format = = "\mathrel{\keyw{=}}"
%format ∀ = "\keyw{\forall}"
%format | = "\,\keyw{\vert}\,"
%format λ = "\prefix{\keyw{\lambda}}"
%format → = "\,\keyw{\rightarrow}\,"
%format : = "\mathrel{\keyw{:}}"
%format ... = "\mathord{\keyw{\ldots}}"
%format { = "\keyw{\{}"
%format } = "\keyw{\}}"
%format ( = "\keyw{(}"
%format ) = "\keyw{)}"
%format Set = "\type{Set}"
%format Set₀ = "\type{Set_0}"
%format Set₁ = "\type{Set_1}"
%format Set₂ = "\type{Set_2}"
% Greek
%format α = "\alpha"
%format α′ = "\alpha\Prime{}"
%format β = "\beta"
%format γ = "\gamma"
%format Λ = "\Lambda"
%format σ = "\sigma"
%format ρ = "\rho"
%format ρ′ = "\rho\Prime{}"
%format ρ″ = "\rho\PPrime{}"
%format ω = "\omega"
%format ω′ = "\omega\Prime{}"
%format ω″ = "\omega\PPrime{}"
% Decorated letters
%format a′ = "a\Prime{}"
%format a″ = "a\PPrime{}"
%format a‴ = "a\PPPrime{}"
%format b′ = "b\Prime{}"
%format b″ = "b\PPrime{}"
%format b‴ = "b\PPPrime{}"
%format c′ = "c\Prime{}"
%format c″ = "c\PPrime{}"
%format c‴ = "c\PPPrime{}"
%format e′ = "e\Prime{}"
%format e″ = "e\PPrime{}"
%format e‴ = "e\PPPrime{}"
%format h₀ = "h_0"
%format h₁ = "h_1"
%format h′ = "h\Prime{}"
%format h″ = "h\PPrime{}"
%format h‴ = "h\PPPrime{}"
%format l′ = "l\Prime{}"
%format l″ = "l\PPrime{}"
%format l‴ = "l\PPPrime{}"
%format r₀ = "r_0"
%format r₁ = "r_1"
%format r′ = "r\Prime{}"
%format r″ = "r\PPrime{}"
%format s₀ = "s_0"
%format s₁ = "s_1"
%format s′ = "s\Prime{}"
%format s″ = "s\PPrime{}"
%format t₀ = "t_0"
%format t₁ = "t_1"
%format t′ = "t\Prime{}"
%format t″ = "t\PPrime{}"
%format u′ = "u\Prime{}"
%format u″ = "u\PPrime{}"
%format v′ = "v\Prime{}"
%format v″ = "v\PPrime{}"
%format x′ = "x\Prime{}"
%format x″ = "x\PPrime{}"
%format x‴ = "x\PPPrime{}"
%format y′ = "y\Prime{}"
%format y″ = "y\PPrime{}"
%format y‴ = "y\PPPrime{}"
%format z′ = "z\Prime{}"
%format z″ = "z\PPrime{}"
%format z‴ = "z\PPPrime{}"
%if True
%format Level.zero = "{\!\!}"
%endif
% Coinduction
%format ∞ = "\type{\infty}"
%format ♯ = "\dstr{\sharp}"
%format ♯_ = "\dstr{\sharp\anonymous}"
%format ♭ = "\func{\flat}"
% Category.Functor
%format <$> = "\func{{<}\!{\$}\!{>}}"
% Function
%format id = "\func{id}"
%format ∘ = "\infix{\func{\circ}}"
%format flip = "\func{flip}"
%format ∶ = "\infix{\func{:}}"
%format const = "\func{const}"
% Data.Empty
%format ⊥ = "\type{\bot}"
%format ⊥-elim = "\func{\bot\text-elim}"
% Data.Unit
%format ⊤ = "\type{\top}"
%format tt = "\cons{tt}"
% Data.Bool
%format if = "\prefix{\func{if}}"
%format then = "\infix{\func{then}}"
%format else = "\infix{\func{else}}"
% Data.Sum
%format ⊎ = "\infix{\type{\uplus}}"
%format _⊎_ = "\type{\anonymous\uplus\anonymous}"
%format inj₁ = "\cons{in_L}"
%format inj₂ = "\cons{in_R}"
% Data.Product renaming (_,_ to _∧_) -- or _‚_? lhs2TeX doesn't like commas
%format Σ = "\type{\Sigma}"
%format × = "\infix{\!\type{\times}\!}"
%format _×_ = "\type{\anonymous{\times}\anonymous}"
% format ‚ = "\infix{\cons{,}}"
% format _‚_ = "\cons{\anonymous,\anonymous}"
%format ∧ = "\infix{\cons{{\wedge}}}"
%format _∧_ = "\cons{\anonymous{\wedge}\anonymous}"
%format ∃ = "\type{\exists}"
%format ∃₂ = "\type{\exists_2}"
%format ∃₃ = "\type{\exists_3}"
%format ∃₄ = "\type{\exists_4}"
%format proj₁ = "\func{proj_L}"
%format proj₂ = "\func{proj_R}"
% Data.Star
%format Star = "\type{Star}"
%format ε = "\cons{\varepsilon}"
%format ◅ = "\infix{\cons{\lhd}}"
%format _◅_ = "\cons{\anonymous{\lhd}\anonymous}"
%format ◅◅ = "\infix{\func{{\lhd}\!{\lhd}}}"
%format _◅◅_ = "\func{\anonymous{\lhd}\!{\lhd}\anonymous}"
%format Star.gmap = "\func{Star.gmap}"
%format Star.gfold = "\func{Star.gfold}"
%format Star.gfoldl = "\func{Star.gfoldl}"
%format Star.map = "\func{Star.map}"
%format Star.fold = "\func{Star.fold}"
% Data.Fin
%format Fin = "\type{Fin}"
%format _≟Fin_ = "\func{\anonymous{\stackrel?=}_{Fin}\!\anonymous}"
%format ≟Fin = "\infix{\func{{\stackrel?=}_{Fin}}}"
% Data.Nat
%format ℕ = "\type{\mathbb{N}}"
%format 0 = "\name{0}"
%format zero = "\cons{zero}"
%format suc = "\cons{suc}"
%format + = "\mathbin{\func{+}}"
%format _+_ = "\func{\anonymous{+}\anonymous}"
%format _≟ℕ_ = "\func{\anonymous{\stackrel?=}_{\mathbb{N}}\!\anonymous}"
%format ≟ℕ = "\infix{\func{{\stackrel?=}_{\mathbb{N}}}}"
% Data.List
%format List = "\type{List}"
%format ∷ = "\cons{::}"
%format _∷_ = "\cons{\anonymous{::}\anonymous}"
%format [ = "\cons{[}"
%format ] = "\cons{]}"
%format _++_ = "\func{\anonymous{+}\!\!{+}\anonymous}"
%format ++ = "\infix{\func{{+}\!\!{+}}}"
% Data.Vec
%format Vec = "\type{Vec}"
%format Vec.lookup = "\func{Vec.lookup}"
%format Vec.replicate = "\func{Vec.replicate}"
% Data.Maybe
%format Maybe = "\type{Maybe}"
%format just = "\cons{just}"
%format nothing = "\cons{nothing}"
% Relation.Nullary
%format ¬ = "\type{\lnot}"
%format yes = "\cons{yes}"
%format no = "\cons{no}"
%format Dec = "\type{Dec}"
% Relation.Nullary.Decidable
%format ⌊_⌋ = "\func{{\lfloor}\anonymous{\rfloor}}"
%format ⌊ = "\prefix{\func{{\lfloor}}}"
%format ⌋ = "\postfix{\func{{\rfloor}}}"
% Relation.Binary
%format Rel = "\type{Rel}"
%format REL = "\type{REL}"
%format Reflexive = "\type{Reflexive}"
%format Symmetric = "\type{Symmetric}"
%format Sym = "\type{Sym}"
%format Transitive = "\type{Transitive}"
%format _⇒_ = "\type{\anonymous{\Rightarrow}\anonymous}"
%format ⇒ = "\infix{\type{{\Rightarrow}}}"
%format _Preserves₂_⟶_⟶_ = "\type{\anonymous{}Preserves_2\anonymous{\longrightarrow}\anonymous{\longrightarrow}\anonymous}"
%format Preserves₂ = "\infix{\type{Preserves_2}}"
% Relation.Binary.PropositionalEquality
%format _≡_ = "\type{\anonymous{\equiv}\anonymous}"
%format ≡ = "\infix{\type{\equiv}}"
%format ≡.refl = "\cons{{\equiv}.refl}"
%format ≡.trans = "\func{{\equiv}.trans}"
%format ≡.sym = "\func{{\equiv}.sym}"
%format ≢ = "\infix{\type{\not\equiv}}"
%format ≡.cong = "\func{{\equiv}.cong}"
%format ≡.inspect = "\func{{\equiv}.inspect}"
%format with-≡ = "\infix{\cons{with\text-{\equiv}}}"
%format ≗ = "\infix{\type{\circeq}}"
% Relation.Binary.PreorderReasoning
%format begin = "\func{begin}"
%format _≡⟪_⟫_ = "\func{\anonymous{\equiv}\langle\anonymous\rangle\anonymous}"
%format _≈⟪_⟫_ = "\func{\anonymous{\approx}\langle\anonymous\rangle\anonymous}"
%format _≈⟪_⁻¹⟫_ = "\func{\anonymous{\approx}\langle\anonymous{}^{\text-1}\rangle\anonymous}"
%format ⟪ = "\func{\langle}"
%format ≈⟪ = "\func{{\approx}\langle}"
%format ≡⟪ = "\func{{\equiv}\langle}"
%format ⟫ = "\func{\rangle}"
%format ⁻¹⟫ = "\func{{}^{\text-1}\rangle}"
%format ∎ = "\func{\rule{1ex}{1ex}}"