Repository navigation
Expand file tree
/
Copy pathacl2.toml
More file actions
292 lines (257 loc) · 9.34 KB
/
Copy pathacl2.toml
File metadata and controls
292 lines (257 loc) · 9.34 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
# SPDX-License-Identifier: MPL-2.0
#
# ACL2 (+ ACL2s) decl, hint, and theory synonyms.
# Schema: see data/synonyms/README.adoc.
# Seeded 2026-06-01 for the ACL2 community-books corpus adapter.
#
# Coverage focus: top-level decls, defthm hint vocabulary, theory
# enable/disable manipulation, the standard hazard surface
# (skip-proofs / defaxiom / defstub / ld-skip-proofsp), and ACL2s
# extensions (defdata, definec, defunc, cgen, test?).
# ---------------------------------------------------------------------------
# Top-level decls
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "defthm"
aliases = ["defthmd", "defrule", "rule"]
tactic_class = "decl"
notes = """
Prove and store a theorem. `defthmd` is the disabled variant — same
proof obligation, but the rule isn't added to the active theory.
"""
[[synonym]]
canonical = "defun"
aliases = ["defun-nx", "defund", "defn"]
tactic_class = "decl"
notes = """
Function definition. `defund` is the disabled variant. `defun-nx`
declares a non-executable function (logical only — no Lisp body
needed). ACL2s' `defn` is `defun` with stricter guard-verification.
"""
[[synonym]]
canonical = "defaxiom"
aliases = ["axiom", "postulate"]
tactic_class = "danger"
notes = """
HAZARD. Postulates a theorem without proof. Every `defaxiom` is a
hole in the trusted base — the official ACL2 advice is to use
`skip-proofs` for development scaffolding and elaborate to a real
proof before release. `defaxiom` makes the leak permanent.
"""
[[synonym]]
canonical = "defstub"
aliases = ["stub", "constrained-function"]
tactic_class = "danger"
notes = """
HAZARD. Introduces a constrained function whose body is opaque. Used
for encapsulate-style reasoning, but in isolation is an axiom about
the existence of a function with the given signature.
"""
[[synonym]]
canonical = "defconst"
aliases = ["constant", "defparameter"]
tactic_class = "decl"
notes = "Top-level constant. Name is conventionally wrapped in earmuffs (`*name*`)."
[[synonym]]
canonical = "defmacro"
aliases = ["macro", "macroexpand"]
tactic_class = "decl"
notes = "Macro definition. Expanded before logic processing."
[[synonym]]
canonical = "defabbrev"
aliases = ["abbreviation", "inline-defun"]
tactic_class = "decl"
notes = """
Function with always-inline semantics. Equivalent to a `defmacro`
that takes evaluated arguments — convenient for short helpers
without paying the macro-expansion cost at the surface.
"""
[[synonym]]
canonical = "include-book"
aliases = ["import-book", "load-book"]
tactic_class = "import"
notes = """
Import a previously-certified book. The basic composition mechanism
for the ACL2 community books. Use `:dir :system` to pull from the
system book directory.
"""
[[synonym]]
canonical = "in-package"
aliases = ["select-package", "package-decl"]
tactic_class = "decl"
notes = """
Set the current package. Every book starts with `(in-package \"X\")`
where `X` is typically `\"ACL2\"` for community books.
"""
# ---------------------------------------------------------------------------
# Proof hints (inside :hints (("Goal" …)) or per-subgoal)
# ---------------------------------------------------------------------------
[[synonym]]
canonical = ":induct"
aliases = ["induct-scheme", "induction-scheme"]
tactic_class = "hint"
notes = """
Specify the induction scheme. Either a function name (use its
recursion structure) or an explicit `(:induct (… …))` form.
"""
[[synonym]]
canonical = ":in-theory"
aliases = ["theory-hint", "in-theory-hint"]
tactic_class = "hint"
notes = """
Override the rewrite theory active during the proof. Common idioms:
`(enable foo)`, `(disable bar)`, `(e/d (enable-these)(disable-those))`.
"""
[[synonym]]
canonical = ":hints"
aliases = ["hints-block"]
tactic_class = "hint"
notes = "Top-level hint container in a `defthm`. Per-subgoal hints keyed by `\"Goal\"`, `\"Subgoal *1/3\"`, etc."
[[synonym]]
canonical = ":use"
aliases = ["lemma-instance"]
tactic_class = "hint"
notes = """
Force the prover to use a particular lemma instance. Form:
`(:instance lemma-name (var1 e1) (var2 e2))`. The standard way to
inject a known fact when the rewriter wouldn't find it on its own.
"""
[[synonym]]
canonical = ":by"
aliases = ["by-hint", "single-step"]
tactic_class = "hint"
notes = "Single-step justification — the term must literally match the goal up to alpha-equivalence."
[[synonym]]
canonical = ":cases"
aliases = ["case-split-hint"]
tactic_class = "hint"
notes = "Split the proof into cases on the given list of terms."
[[synonym]]
canonical = ":expand"
aliases = ["force-expand"]
tactic_class = "hint"
notes = "Force the rewriter to expand the listed terms even if they're disabled or under a heuristic guard."
[[synonym]]
canonical = ":do-not"
aliases = ["disable-proof-step"]
tactic_class = "hint"
notes = """
Disable specific waterfall steps. Common values: `'(generalize fertilize
eliminate-destructors)` to keep the prover from rewriting too
aggressively.
"""
# ---------------------------------------------------------------------------
# Theory manipulation (the tactic-equivalent vocabulary)
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "enable"
aliases = ["enable-rules"]
tactic_class = "theory"
notes = "Add the listed rules to the active theory. Inside `:in-theory`."
[[synonym]]
canonical = "disable"
aliases = ["disable-rules"]
tactic_class = "theory"
notes = "Remove the listed rules. Inverse of `enable`."
[[synonym]]
canonical = "e/d"
aliases = ["enable-disable", "e/d*"]
tactic_class = "theory"
notes = """
`(e/d (enables) (disables))` — combined enable/disable in one form.
Idiomatic for theory hints. `e/d*` is the recursive variant.
"""
[[synonym]]
canonical = "executable-counterpart"
aliases = ["ec", ":executable-counterpart"]
tactic_class = "theory"
notes = """
Toggle the executable-counterpart of a function (the rewrite that
unfolds calls on concrete arguments). Frequently disabled inside
proofs to keep terms small.
"""
[[synonym]]
canonical = "theory"
aliases = ["current-theory", "ground-zero"]
tactic_class = "theory"
notes = """
Predefined theory primitives: `(theory 'minimal-theory)`,
`(theory 'ground-zero)`, `(current-theory 'world)`. Used to build
custom `:in-theory` lists.
"""
# ---------------------------------------------------------------------------
# Hazards
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "skip-proofs"
aliases = ["skip-proofs-wrapper", "trusted-block"]
tactic_class = "danger"
notes = """
THE BIG ACL2 HAZARD. `(skip-proofs FORM)` makes the prover accept
`FORM` as if it had been proved, without actually proving it. Common
in development scaffolding; absolutely forbidden in shipped books.
Every `skip-proofs` is a trusted hole.
"""
[[synonym]]
canonical = "ld-skip-proofsp"
aliases = ["ld-skip-proofs-mode"]
tactic_class = "danger"
notes = """
Global flag that makes the read-eval loop skip ALL proofs. Used to
quickly re-certify a development without re-running proofs, but lethal
if it leaks into a release. Detect any toggle of this flag as a
hazard.
"""
[[synonym]]
canonical = "(local (in-theory nil))"
aliases = ["local-empty-theory", "anti-pattern-empty-theory"]
tactic_class = "danger"
notes = """
ANTI-PATTERN. Setting the theory to nil inside a local context defeats
all standard rewriter behaviour and almost always indicates the author
got stuck and bypassed normal proof discipline.
"""
# ---------------------------------------------------------------------------
# ACL2s extensions (counterexample generation, contracts, data)
# ---------------------------------------------------------------------------
[[synonym]]
canonical = "defdata"
aliases = ["data-definition", "type-like-decl"]
tactic_class = "decl"
notes = """
ACL2s data definition. Generates recognisers, constructors, and the
test-case generator hooks needed by `cgen`. The ACL2s analogue of an
algebraic datatype.
"""
[[synonym]]
canonical = "definec"
aliases = ["definec-with-contracts", "contract-fn"]
tactic_class = "decl"
notes = """
ACL2s function definition with input/output contracts. Generates the
guard, the type-of-each-input theorem, and the type-of-output theorem
in one shot.
"""
[[synonym]]
canonical = "defunc"
aliases = ["defunc-with-contracts"]
tactic_class = "decl"
notes = "ACL2s `defun` + contracts. Older spelling kept for compatibility with the long-tail ACL2s book corpus."
[[synonym]]
canonical = "cgen"
aliases = ["counterexample-generation", "test-then-prove"]
tactic_class = "automation"
notes = """
ACL2s counterexample generator. Runs random + targeted test cases
against a conjecture before attempting the proof. The "test-then-prove"
discipline.
"""
[[synonym]]
canonical = "test?"
aliases = ["check-conjecture", "cgen-only"]
tactic_class = "automation"
notes = """
Run `cgen` on a conjecture without attempting a real proof. Returns
counterexamples if any. The fastest way to sanity-check a draft
theorem statement before committing to the proof effort.
"""