-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathisabelle_afp.toml
More file actions
416 lines (372 loc) · 14.3 KB
/
Copy pathisabelle_afp.toml
File metadata and controls
416 lines (372 loc) · 14.3 KB
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
# SPDX-FileCopyrightText: 2026 ECHIDNA Project Team
# SPDX-License-Identifier: MPL-2.0
#
# Isabelle/HOL AFP-specific synonyms. Companion to `isabelle.toml`.
# Schema: see data/synonyms/README.adoc.
#
# Scope: AFP-prevalent tactic / method / Isar-keyword vocab that does NOT
# duplicate the core `isabelle.toml` entries. Heavy on the structured
# Isar keywords, the `induct` family, the `simp` family, sledgehammer-
# generated callouts (`metis`, `smt`, `meson`), and the locale lattice
# common in AFP algebra entries.
#
# Seeded 2026-06-01.
# ---------------------------------------------------------------------------
# Induction family — surface variants beyond core `induct↔induction`
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "induct"
aliases = ["induct_tac", "case_tac", "induction"]
tactic_class = "induction"
semantic_class = "induction"
notes = """
AFP-era variants: `induct_tac` is the apply-style legacy taking a
bare variable name; `case_tac` is its case-split sibling. Both are
still accepted but flagged in `print_methods` output as deprecated.
Cross-prover: mirrors Coq `induction` and Lean `induction`.
"""
[[synonym]]
canonical = "induct_rule"
aliases = ["induct rule:", "induction rule:", "cases rule:"]
tactic_class = "induction"
notes = """
Explicit rule selection for induction. `induct rule: foo.induct`
chooses the induction principle generated for `foo`. AFP entries
written before 2018 often use `induct_tac`/`case_tac` without `rule:`
and fail under stricter rule selection.
"""
[[synonym]]
canonical = "induct_pred"
aliases = ["induct_set", "inductive_cases"]
tactic_class = "induction"
notes = """
Predicate / set induction principles emitted by `inductive` and
`inductive_set`. `inductive_cases` produces case rules for elim
reasoning on an inductive predicate's introduction rules.
"""
# ---------------------------------------------------------------------------
# Simp family — surface variants beyond core `auto` cascade
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "simp"
aliases = ["simp_all", "clarsimp", "simp only:"]
tactic_class = "simplifier"
notes = """
`simp_all` applies `simp` to every subgoal; `clarsimp` interleaves
`clarify` and `simp`; `simp only:` is non-recursive and accepts the
exact rewrite set. AFP performance tuning: `simp only:` is preferred
in long proofs to avoid loops.
"""
[[synonym]]
canonical = "fastforce"
aliases = ["force", "auto"]
tactic_class = "automation"
semantic_class = "automation"
notes = """
Isabelle automation tier. `fastforce` is the reverse-priority
single-goal closer; `force` does more backtracking; `auto` handles
multiple goals. Roughly in completeness: `auto` > `force`;
in power on a single goal: `fastforce` > `force` > `auto`.
"""
[[synonym]]
canonical = "clarsimp"
aliases = ["clarify", "safe"]
tactic_class = "simplifier"
notes = """
`clarsimp` = `clarify; simp`; `clarify` is `safe` restricted to
non-splitting safe rules; `safe` does aggressive safe-rule firing.
AFP convention: open a proof with `clarsimp` to normalise hypotheses
before invoking heavier automation.
"""
# ---------------------------------------------------------------------------
# Sledgehammer-emitted callouts
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "metis"
aliases = ["meson", "metisFT"]
tactic_class = "smt"
semantic_class = "resolution"
notes = """
Resolution-based provers. `metis` is the default callout from
sledgehammer; `meson` is the older Loveland-style prover; `metisFT`
is `metis` with full types (slower, more complete). AFP proofs
often regenerate to `metis` even when sledgehammer first suggested
`smt`.
"""
[[synonym]]
canonical = "smt"
aliases = ["z3", "cvc4", "veriT"]
tactic_class = "smt"
semantic_class = "smt"
notes = """
SMT backend selectors. Bare `smt` defaults to the SMT solver
configured for the Isabelle distribution; AFP entries occasionally
pin solver explicitly via `smt (z3)` / `smt (cvc4)`. Variant tester
should try bare `smt` first to avoid solver-binary dependence.
"""
[[synonym]]
canonical = "blast"
aliases = ["fast", "best"]
tactic_class = "automation"
notes = """
Tableaux provers. `blast` is the modern higher-order; `fast` is
the first-order ancestor; `best` is `fast` with best-first search.
Pre-2010 AFP entries still use `fast`; on recent Isabelle `blast`
strictly subsumes it.
"""
[[synonym]]
canonical = "sledgehammer"
aliases = ["try", "try0"]
tactic_class = "automation"
notes = """
Proof-search invocation. `sledgehammer` runs the external prover
fleet; `try0` runs the built-in tactic cascade only; `try` runs
both. Variant tester avoids `sledgehammer` (network / wall-clock
budget) — it's a discovery tool, not a replay tool.
"""
# ---------------------------------------------------------------------------
# Isar block-level keywords
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "have"
aliases = ["hence", "then have"]
tactic_class = "isar"
notes = """
`hence` ≡ `then have` — chains the immediately preceding fact.
AFP entries often spell out `then have` for readability; replay
tools should treat them interchangeably.
"""
[[synonym]]
canonical = "thus"
aliases = ["then show", "hence ?thesis"]
tactic_class = "isar"
notes = """
`thus` ≡ `then show` — chains-and-shows. When the goal is
`?thesis`, `hence ?thesis` is the explicit verbose form.
"""
[[synonym]]
canonical = "moreover"
aliases = ["also", "finally"]
tactic_class = "isar"
notes = """
Fact-accumulation keywords. `moreover` collects facts under a
single chain; `also` does the same but uses transitivity rules;
`finally` is `also` + `then`. Choice matters when the chain is
used in calculational reasoning (`also`) vs disjoint fact-gathering
(`moreover`).
"""
[[synonym]]
canonical = "ultimately"
aliases = ["then", "with"]
tactic_class = "isar"
notes = """
Chain-closer. `ultimately` discharges everything collected by
`moreover`; `with X` uses the named fact plus the chain; bare `then`
just chains the immediately preceding fact.
"""
[[synonym]]
canonical = "obtain"
aliases = ["guess", "consider"]
tactic_class = "isar"
notes = """
Existential elimination patterns. `obtain x where …` is the
modern form; `guess` is the deprecated apply-style sibling;
`consider` introduces named cases for disjunction elimination.
"""
[[synonym]]
canonical = "fix"
aliases = ["assume", "presume"]
tactic_class = "isar"
notes = """
Block-level binder / hypothesis introduction. `fix x` introduces a
fresh constant; `assume H: P` introduces a hypothesis; `presume`
introduces a hypothesis that becomes a residual obligation.
AFP convention: `presume` only when refactoring an existing chain.
"""
[[synonym]]
canonical = "show"
aliases = ["thus", "show ?thesis"]
tactic_class = "isar"
notes = """
Goal closer. `show` discharges the current subgoal; `thus` chains
the previous fact first. `show ?thesis` is the explicit form when
the goal would otherwise be ambiguous.
"""
[[synonym]]
canonical = "qed"
aliases = ["done", "by", ".."]
tactic_class = "isar"
notes = """
Proof terminators. `qed` closes a structured proof block; `done`
closes an apply-style proof; `by …` is the single-step combinator
(`by simp` ≡ `apply simp; done`); `..` is the trivial closer.
"""
[[synonym]]
canonical = "qed_by"
aliases = ["qed (simp)", "qed simp", "qed auto"]
tactic_class = "isar"
notes = """
`qed (METHOD)` invokes METHOD as the closing step of a structured
proof. AFP entries written 2008-2014 favour the parenthesised form;
modern style prefers `by METHOD` standalone.
"""
# ---------------------------------------------------------------------------
# Type / datatype declaration patterns
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "datatype"
aliases = ["datatype_new", "old_datatype", "free_constructors"]
tactic_class = "structural"
notes = """
`datatype_new` was the BNF-backed package introduced in Isabelle2014;
`datatype` was rebound to it in Isabelle2016. `old_datatype` is the
pre-BNF compatibility shim, still used in some AFP entries.
"""
[[synonym]]
canonical = "typedef"
aliases = ["typedecl", "type_synonym"]
tactic_class = "structural"
notes = """
`typedef` carves out a subtype with a non-emptiness obligation;
`typedecl` introduces an abstract type; `type_synonym` is a pure
abbreviation. AFP modelling convention: prefer `typedef` for
quotient-like constructions, `type_synonym` for readability sugar.
"""
[[synonym]]
canonical = "primrec"
aliases = ["fun", "function", "definition"]
tactic_class = "structural"
notes = """
Recursion packages, increasing power: `primrec` is structurally
recursive only (cheap termination); `fun` covers pattern matching
with automatic termination proof; `function` is `fun` with manual
termination; `definition` for non-recursive. Pre-2010 AFP often
uses `primrec` where `fun` would now be idiomatic.
"""
# ---------------------------------------------------------------------------
# Locale / class lattice common in AFP algebra
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "Group"
aliases = ["group", "Group_with_inverses", "monoid_add"]
tactic_class = "structural"
notes = """
AFP group hierarchy: `group` is the type-class form; `Group` is the
locale form (with explicit carrier set, used in `HOL-Algebra`);
`monoid_add` is the additive monoid type-class. Mixing locale and
type-class spellings is the most common AFP porting failure.
"""
[[synonym]]
canonical = "Ring"
aliases = ["ring", "comm_ring", "ring_1"]
tactic_class = "structural"
notes = """
AFP ring hierarchy. `ring`/`comm_ring`/`ring_1` are type-class
forms in increasing strength (no-axiom / commutative / has-unit);
`Ring` is the `HOL-Algebra` locale.
"""
[[synonym]]
canonical = "Field"
aliases = ["field", "comm_field", "ordered_field"]
tactic_class = "structural"
notes = """
AFP field hierarchy. `field` is the type-class; `Field` the locale.
`ordered_field` adds a linear order; `comm_field` is redundant in
HOL (all fields are commutative) but appears in some AFP entries.
"""
[[synonym]]
canonical = "Lattice"
aliases = ["lattice", "semilattice", "complete_lattice"]
tactic_class = "structural"
notes = """
Lattice hierarchy. `semilattice` (one binop), `lattice` (both),
`complete_lattice` (arbitrary sup/inf). `Lattice` is the
`HOL-Algebra` locale.
"""
[[synonym]]
canonical = "Order"
aliases = ["order", "linorder", "partial_order"]
tactic_class = "structural"
notes = """
Order hierarchy. `order` is partial; `linorder` total; `Order`
the locale. `partial_order` is the explicit synonym used in
`HOL-Library`.
"""
# ---------------------------------------------------------------------------
# Locale-management keywords
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "interpretation"
aliases = ["interpret", "global_interpretation", "sublocale"]
tactic_class = "structural"
notes = """
Locale-instantiation forms. `interpret` is local to a proof;
`interpretation` is at theory level; `global_interpretation` exports
to the global namespace; `sublocale` declares a locale-to-locale
inclusion. AFP entries vary on which form they use to instantiate
generic algebra.
"""
[[synonym]]
canonical = "context"
aliases = ["locale", "class"]
tactic_class = "structural"
notes = """
`context X begin … end` enters the locale X for a block of
declarations; defining `locale X = …` introduces it; `class` is the
type-class sibling with subsumption. Variant tester should not
rewrite between forms — they have different elaboration semantics.
"""
# ---------------------------------------------------------------------------
# Conjunction-style proof closers (AFP idiomatic)
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "rule"
aliases = ["intro", "elim", "dest"]
tactic_class = "structural"
notes = """
Inference-rule application. `rule R` applies as introduction;
`intro R` is the unsafe-resolution variant; `elim R` is elimination;
`dest R` derives a fact from a hypothesis. AFP entries use all
four; `rule` is the workhorse.
"""
[[synonym]]
canonical = "subst"
aliases = ["subst (asm)", "ssubst"]
tactic_class = "simplifier"
notes = """
Single-step rewriting. `subst R` rewrites the goal; `subst (asm) R`
rewrites a hypothesis; `ssubst` rewrites in reverse direction.
AFP convention: use `subst` when `simp add: R` would loop.
"""
# ---------------------------------------------------------------------------
# Print-checking / debugging methods (mild hazards)
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "print_state"
aliases = ["print_facts", "print_methods", "print_locale"]
tactic_class = "structural"
notes = """
Debugging methods. Should NOT appear in committed AFP proofs;
flag for review. Variant tester elides these silently.
"""
# ---------------------------------------------------------------------------
# Equality reasoning
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "iff"
aliases = ["HOL.iff", "if_iff", "iffI"]
tactic_class = "lemma"
notes = """
Bi-implication lemmas. `iffI` is the introduction rule; `if_iff` is
the conditional-as-iff lemma. AFP entries port to mathlib's
`Iff.intro` / `Iff.mpr` patterns.
"""
[[synonym]]
canonical = "trans"
aliases = ["HOL.trans", "transD", "transE"]
tactic_class = "lemma"
notes = """
Transitivity rule packaging. `trans` is the bidirectional rule;
`transD` and `transE` are the destruction / elimination variants
used in `dest:` / `elim:` clauses of `auto`.
"""