/usr/share/acl2-6.5/books/doc/top.lisp is in acl2-books-source 6.5-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 | ; ACL2 System+Books Combined XDOC Manual
; Copyright (C) 2008-2014 Centaur Technology
;
; Contact:
; Centaur Technology Formal Verification Group
; 7600-C N. Capital of Texas Highway, Suite 300, Austin, TX 78731, USA.
; http://www.centtech.com/
;
; License: (An MIT/X11-style license)
;
; Permission is hereby granted, free of charge, to any person obtaining a
; copy of this software and associated documentation files (the "Software"),
; to deal in the Software without restriction, including without limitation
; the rights to use, copy, modify, merge, publish, distribute, sublicense,
; and/or sell copies of the Software, and to permit persons to whom the
; Software is furnished to do so, subject to the following conditions:
;
; The above copyright notice and this permission notice shall be included in
; all copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
; DEALINGS IN THE SOFTWARE.
;
; Original author: Jared Davis <jared@centtech.com>
(in-package "ACL2")
(set-inhibit-warnings "ttags")
(make-event
; Disabling waterfall parallelism because the include-books are too slow with
; it enabled, since waterfall parallelism unmemoizes the six or so functions
; that ACL2(h) memoizes by default (in particular, fchecksum-obj needs to be
; memoized to include centaur/tutorial/alu16-book).
(if (and (hons-enabledp state)
(f-get-global 'parallel-execution-enabled state))
(er-progn (set-waterfall-parallelism nil)
(value '(value-triple nil)))
(value '(value-triple nil))))
(include-book "centaur/misc/memory-mgmt" :dir :system)
(value-triple (set-max-mem (* 10 (expt 2 30))))
(include-book "relnotes")
(include-book "practices")
(include-book "xdoc/save" :dir :system)
(include-book "build/doc" :dir :system)
(include-book "centaur/4v-sexpr/top" :dir :system)
(include-book "centaur/aig/top" :dir :system)
(include-book "projects/doc" :dir :system)
(include-book "centaur/aignet/aig-sim" :dir :system)
(include-book "centaur/aignet/copying" :dir :system)
(include-book "centaur/aignet/from-hons-aig-fast" :dir :system)
(include-book "centaur/aignet/prune" :dir :system)
(include-book "centaur/aignet/to-hons-aig" :dir :system)
(include-book "centaur/aignet/types" :dir :system)
(include-book "centaur/aignet/vecsim" :dir :system)
; The rest of ihs is included elsewhere transitively.
; We load logops-lemmas first so that the old style :doc-strings don't get
; stripped away when they're loaded redundantly later.
(include-book "ihs/logops-lemmas" :dir :system)
(include-book "centaur/bitops/top" :dir :system)
(include-book "centaur/bitops/congruences" :dir :system)
(include-book "centaur/bitops/defaults" :dir :system)
(include-book "centaur/bridge/top" :dir :system)
(include-book "centaur/clex/example" :dir :system)
(include-book "centaur/nrev/demo" :dir :system)
(include-book "cgen/top" :dir :system)
(include-book "centaur/defrstobj/defrstobj" :dir :system)
(include-book "centaur/esim/stv/stv-top" :dir :system)
(include-book "centaur/esim/stv/stv-debug" :dir :system)
(include-book "centaur/esim/esim-sexpr-correct" :dir :system)
(include-book "centaur/getopt/top" :dir :system)
(include-book "centaur/getopt/demo" :dir :system)
(include-book "centaur/getopt/demo2" :dir :system)
(include-book "centaur/bed/top" :dir :system)
(include-book "centaur/gl/gl" :dir :system)
(include-book "centaur/gl/bfr-aig-bddify" :dir :system)
(include-book "centaur/gl/gl-ttags" :dir :system)
(include-book "centaur/gl/gobject-type-thms" :dir :system)
(include-book "centaur/gl/bfr-satlink" :dir :system)
(include-book "centaur/gl/def-gl-rule" :dir :system)
(include-book "centaur/satlink/top" :dir :system)
(include-book "centaur/satlink/check-config" :dir :system)
(include-book "centaur/misc/top" :dir :system)
(include-book "centaur/misc/smm" :dir :system)
(include-book "centaur/misc/tailrec" :dir :system)
(include-book "centaur/misc/hons-remove-dups" :dir :system)
(include-book "centaur/misc/seed-random" :dir :system)
(include-book "centaur/misc/load-stobj" :dir :system)
(include-book "centaur/misc/load-stobj-tests" :dir :system)
(include-book "centaur/misc/count-up" :dir :system)
(include-book "centaur/misc/fast-alist-pop" :dir :system)
;; BOZO conflicts with something in 4v-sexpr?
;; (include-book "misc/remove-assoc")
;; (include-book "misc/sparsemap")
;; (include-book "misc/sparsemap-impl")
(include-book "centaur/misc/stobj-swap" :dir :system)
(include-book "oslib/top" :dir :system)
(include-book "regex/regex-ui" :dir :system)
(include-book "std/top" :dir :system)
(include-book "std/basic/inductions" :dir :system)
(include-book "std/io/unsound-read" :dir :system)
(include-book "std/bitsets/top" :dir :system)
(include-book "std/strings/top" :dir :system)
(include-book "std/strings/base64" :dir :system)
(include-book "std/strings/pretty" :dir :system)
; Note, 7/28/2014: if we include
; (include-book "std/system/top" :dir :system)
; instead of the following, we get a name conflict.
(include-book "std/system/non-parallel-book" :dir :system)
(include-book "centaur/ubdds/lite" :dir :system)
(include-book "centaur/ubdds/param" :dir :system)
(include-book "centaur/vcd/vcd" :dir :system)
(include-book "centaur/vcd/esim-snapshot" :dir :system)
(include-book "centaur/vcd/vcd-stub" :dir :system)
;; BOZO causes some error with redefinition? Are we loading the right
;; books above? What does stv-debug load?
;; (include-book "vcd/vcd-impl")
(include-book "centaur/vl/top" :dir :system)
(include-book "centaur/vl/doc" :dir :system)
(include-book "centaur/vl/kit/top" :dir :system)
(include-book "centaur/vl/mlib/clean-concats" :dir :system)
(include-book "centaur/vl/mlib/atts" :dir :system)
(include-book "centaur/vl/mlib/json" :dir :system)
(include-book "centaur/vl/transforms/xf-clean-selects" :dir :system)
(include-book "centaur/vl/transforms/xf-propagate" :dir :system)
(include-book "centaur/vl/transforms/xf-expr-simp" :dir :system)
(include-book "centaur/vl/transforms/xf-inline" :dir :system)
(include-book "centaur/vl/mlib/sub-counts" :dir :system)
;; BOZO these are incompatible? which is right?
(include-book "centaur/vl/util/prefix-hash" :dir :system)
;;(include-book "vl/util/prefixp")
;; (include-book "vl/mlib/ram-tools") obsolete
(include-book "hacking/all" :dir :system)
(include-book "hints/consider-hint" :dir :system)
(include-book "tools/do-not" :dir :system)
(include-book "tools/plev" :dir :system)
(include-book "tools/plev-ccl" :dir :system)
(include-book "tools/with-supporters" :dir :system)
(include-book "tools/remove-hyps" :dir :system)
(include-book "clause-processors/doc" :dir :system)
; [Jared] removing these to speed up the manual build
;(include-book "tutorial/intro")
;(include-book "tutorial/alu16-book")
;(include-book "tutorial/counter")
; [Jared] removed this to avoid depending on glucose and to speed up
; the manual build
; (include-book "regression/common")
;; Not much doc here, but some theorems from arithmetic-5 are referenced by
;; other topics...
(include-book "arithmetic-5/top" :dir :system)
(include-book "arithmetic/top" :dir :system)
(include-book "rtl/rel9/lib/top" :dir :system)
(include-book "rtl/rel9/lib/logn" :dir :system)
(include-book "rtl/rel9/lib/add" :dir :system)
(include-book "rtl/rel9/lib/mult" :dir :system)
(include-book "centaur/fty/deftypes" :dir :system)
#||
;; This is a nice place to put include-book scanner hacks that trick cert.pl
;; into certifying unit-testing books that don't actually need to be included
;; anywhere. This just tricks the dependency scanner into building
;; these books.
(include-book "xdoc/all" :dir :system)
(include-book "xdoc/tests/preprocessor-tests" :dir :system)
(include-book "xdoc/tests/unsound-eval-tests" :dir :system)
(include-book "xdoc/tests/defsection-tests" :dir :system)
(include-book "centaur/defrstobj/basic-tests" :dir :system)
(include-book "std/util/tests/top" :dir :system)
(include-book "std/util/extensions/assert-return-thms" :dir :system)
(include-book "centaur/misc/tshell-tests" :dir :system)
(include-book "oslib/tests/top" :dir :system)
(include-book "centaur/ubdds/sanity-check-macros" :dir :system)
;; BOZO why do we care about coi/records/fast?
(include-book "coi/records/fast/log2" :dir :system)
(include-book "coi/records/fast/memory" :dir :system)
(include-book "coi/records/fast/memory-impl" :dir :system)
(include-book "coi/records/fast/memtree" :dir :system)
(include-book "coi/records/fast/private" :dir :system)
(include-book "centaur/memoize/old/case" :dir :system)
(include-book "centaur/memoize/old/profile" :dir :system)
(include-book "centaur/memoize/old/watch" :dir :system)
(include-book "centaur/memoize/portcullis" :dir :system)
(include-book "centaur/memoize/tests" :dir :system)
(include-book "centaur/memoize/top" :dir :system)
||#
; Historically we had a completely ad-hoc organization that grew organically as
; topics were added. This turned out to be a complete mess. To make the
; manual more approachable and relevant, we now try to impose a better
; hierarchy and add some context.
(defsection arithmetic
:parents (top)
:short "Libraries for reasoning about basic arithmetic, bit-vector
arithmetic, modular arithmetic, etc.")
(defsection boolean-reasoning
:parents (top)
:short "Libraries related to representing and processing Boolean functions,
geared toward large-scale automatic reasoning, e.g., via SAT solving and AIG or
BDD packages."
:long "<h3>Introduction</h3>
<p><a href='http://en.wikipedia.org/wiki/Boolean_function'>Boolean
functions</a> are widely useful throughout mathematical logic, computer
science, and computer engineering. In formal verification, they are especially
interesting because many high-capacity, fully automatic techniques are known
for analyzing, comparing, and simplifying them; for instance, see <a
href='http://en.wikipedia.org/wiki/Binary_decision_diagram'>binary decision
diagrams</a> (bdds), <a
href='http://en.wikipedia.org/wiki/Boolean_satisfiability_problem'>SAT
solvers</a>, <a
href='http://en.wikipedia.org/wiki/And-inverter_graph'>and-inverter
graphs</a> (aigs), <a href='http://en.wikipedia.org/wiki/Model_checking'>model
checking</a>, <a
href='http://en.wikipedia.org/wiki/Formal_equivalence_checking'>equivalence
checking</a>, and so forth.</p>
<h3>Libraries for Boolean Functions</h3>
<p>We have developed some libraries for working with Boolean functions, for
instance:</p>
<ul>
<li>@(see satlink) provides a representation of <a
href='http://en.wikipedia.org/wiki/Conjunctive_normal_form'>conjunctive normal
form</a> formulas and a way to call SAT solvers from ACL2 and trust their
results.</li>
<li>Libraries like @(see aig) and @(see ubdds) provide @(see hons)-based AIG and
BDD packages.</li>
<li>@(see aignet) provides a more efficient, @(see stobj)-based AIG
representation similar to that used by <a
href='http://www.eecs.berkeley.edu/~alanmi/abc/'>ABC</a>.</li>
</ul>
<p>These libraries are important groundwork for the @(see gl) framework for
bit-blasting ACL2 theorems, and may be of interest to anyone who is trying to
develop new, automatic tools or proof techniques.</p>
<h3>Libraries for Four-Valued Logic</h3>
<p>Being able to process large-scale Boolean functions is especially important
in @(see hardware-verification). But actually, here, to model certain circuits
and to implement certain algorithms, it can be useful to go beyond Boolean
functions and consider a richer logic.</p>
<p>You might call Boolean functions or Boolean logic a two-valued logic, since
there are just two values (true and false) that any variable can take. It is
often useful to add a third value, usually called X, to represent an
\"unknown\" value. In some systems, a fourth value, Z, is added to represent
an undriven wire. For more on this, see @(see why-4v-logic).</p>
<p>We have developed two libraries to support working in four-valued logic. Of
these, the @(see 4v) library is somewhat higher level and is generally simpler
and more convenient to work with. It serves as the basis of the @(see esim)
hardware simulator. Meanwhile, the @(see faig) library is a bit lower-level
and does not enjoy the very nice @(see 4v-monotonicity) property of @(see
4v-sexprs). On the other hand, @(see faig)s are closer to @(see aig)s, and can
be useful for loading expressions into @(see aignet) or @(see satlink).</p>
<h3>Related Papers</h3>
<p>Besides the documentation here, you may find the following papers
useful:</p>
<p>Jared Davis and Sol Swords. <a
href='http://dx.doi.org/10.4204/EPTCS.114.8'>Verified AIG Algorithms in
ACL2.</a> In ACL2 Workshop 2013. May, 2013. EPTCS 114. Pages 95-110.</p>
<p>Sol Swords and Jared Davis. <a
href='http://dx.doi.org/10.4204/EPTCS.70.7'>Bit-Blasting ACL2 Theorems</a>.
In ACL2 Workshop 2011. November, 2011. EPTCS 70. Pages 84-102.</p>
<p>Sol Swords and Warren A Hunt, Jr. <a
href='http://dx.doi.org/10.1007/978-3-642-14052-5_30'>A Mechanically Verified
AIG to BDD Conversion Algorithm</a>. In ITP 2010,LNCS 6172, Springer. Pages
435-449.</p>")
(defsection hardware-verification
:parents (top)
:short "Libraries for working with hardware description languages, modeling
circuits, etc.")
(defxdoc macro-libraries
:parents (top macros)
:short "Generally useful macros for writing more concise code, and frameworks
for quickly introducing concepts like typed structures, typed lists, defining
functions with type signatures, and automating other common tasks.")
(defxdoc proof-automation
:parents (top
; Including acl2 as a parent so that all ACL2 system topics can be found under
; the graph rooted at the acl2 node.
acl2)
:short "Tools, utilities, and strategies for dealing with particular kinds
of proofs.")
; Huge stupid hack. Topics that are documented with the old :DOC system can't
; have XDOC topics for their parents. So, get them all loaded and converted
; into proper XDOC topics, then move them around where we want them.
(xdoc::import-acl2doc)
(include-book "xdoc/topics" :dir :system)
(include-book "xdoc/alter" :dir :system)
; These are legacy defdoc topics that need to be incorporated into the
; hierarchy at some sensible places. These changes are not controversial, so
; we'll do them globally, so they'll be included, e.g., in the Emacs version of
; the combined manual.
(xdoc::change-parents ihs (arithmetic))
(xdoc::change-parents data-definitions (macro-libraries projects debugging))
(xdoc::change-parents with-timeout (data-definitions))
(xdoc::change-parents data-structures (macro-libraries))
(xdoc::change-parents hacker (interfacing-tools))
(xdoc::change-parents witness-cp (proof-automation))
(xdoc::change-parents testing (debugging))
(xdoc::change-parents leftist-trees (projects))
(xdoc::change-parents ltree-sort (leftist-trees))
(xdoc::change-parents how-many-lt (leftist-trees))
(xdoc::change-parents consideration (hints))
(xdoc::change-parents do-not-hint (hints))
(xdoc::change-parents untranslate-patterns (macros user-defined-functions-table))
#!XDOC
(defun fix-redundant-acl2-parents (all-topics)
(b* (((when (atom all-topics))
nil)
(topic (car all-topics))
(parents (cdr (assoc :parents topic)))
(topic (if (or (equal parents '(acl2::top acl2::acl2))
(equal parents '(acl2::acl2 acl2::top)))
(progn$
(cw "; Note: Removing 'redundant' ACL2 parent for ~x0.~%"
(cdr (assoc :name topic)))
(cons (cons :parents '(acl2::top))
(delete-assoc-equal :parents topic)))
topic)))
(cons topic
(fix-redundant-acl2-parents (cdr all-topics)))))
(defmacro xdoc::fix-the-hierarchy ()
;; Semi-bozo.
;;
;; This is a place that Jared can put changes that are either experimental or
;; under discussion.
;;
;; Later in this file, I call fix-the-hierarchy, but only LOCALLY, so that it
;; only affects the web manual (not the Emacs manual), and not any other
;; manuals that include doc/top
;;
;; I wrap these changes up in a non-local macro so that authors of other
;; manuals (e.g., our internal manual at Centaur) can also choose to call
;; fix-the-hierarchy if they wish.
`(progn
#!XDOC
(table xdoc 'doc (fix-redundant-acl2-parents
(get-xdoc-table acl2::world)))
;; These run afoul of the acl2-parents issue
(xdoc::change-parents documentation (top))
(xdoc::change-parents bdd (boolean-reasoning proof-automation))
(xdoc::change-parents books (top))
;; bozo where should this go... Matt suggests maybe interfacing-tools?
;; But by the same token, maybe programming, maybe lots of places...
(xdoc::change-parents unsound-eval (miscellaneous))
))
(local
; The TOP topic will be the first thing the user sees when they open the
; manual! We localize this because you may want to write your own top topics
; for custom manuals.
(include-book "top-topic"))
(comp t)
(local (xdoc::fix-the-hierarchy))
(local (deflabel doc-rebuild-label))
(make-event
(b* ((state (serialize-write "xdoc.sao"
(xdoc::get-xdoc-table (w state))
:verbosep t)))
(value '(value-triple "xdoc.sao"))))
(value-triple
(progn$ (cw "--- Writing ACL2+Books Manual ----------------------------------~%")
:invisible))
(make-event
; xdoc::save is an event, so we might have just called it directly. But for
; reasons Jared doesn't understand this is screwing up the extended manual we
; build at Centaur. So, I'm putting the save event into a make-event to try
; to localize its effects to just this book's certification.
(er-progn (xdoc::save "./manual"
;; Don't import again since we just imported.
:import nil
;; Allow redefinition so that we don't have to get
;; everything perfect (until it's release time)
:redef-okp t)
(value `(value-triple :manual))))
(value-triple
(progn$ (cw "--- Done Writing ACL2+Books Manual -----------------------------~%")
:invisible))
; Support for the Emacs-based Manual
;
; Historically this was part of system/doc/render-doc-combined.lisp. However,
; that file ended up being quite expensive and in the critical path. Most of
; the expense was that it just had to include-book doc/top.lisp, which takes
; a lot of time because of how many books are included.
;
; So now, instead, to improve performance, we just merge the export of the
; text-based manual into doc/top.lisp.
(include-book "system/doc/render-doc-base" :dir :system)
(defttag :open-output-channel!)
#!XDOC
(acl2::defconsts
(& & state)
(state-global-let*
((current-package "ACL2" set-current-package-state))
(b* ((all-topics (force-root-parents
(maybe-add-top-topic
(normalize-parents-list ; Should we clean-topics?
(get-xdoc-table (w state))))))
((mv rendered state)
(render-topics all-topics all-topics state))
(rendered (split-acl2-topics rendered nil nil nil))
(outfile (acl2::extend-pathname (cbd)
"../system/doc/rendered-doc-combined.lsp"
state))
(- (cw "Writing ~s0~%" outfile))
((mv channel state) (open-output-channel! outfile :character state))
((unless channel)
(cw "can't open ~s0 for output." outfile)
(acl2::silent-error state))
(state (princ$ "; Documentation for acl2+books
; WARNING: GENERATED FILE, DO NOT HAND EDIT!
; The contents of this file are derived from the full acl2+books
; documentation. For license and copyright information, see community book
; xdoc/fancy/LICENSE.
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; LICENSE for more details.
(in-package \"ACL2\")
(defconst *acl2+books-documentation* '"
channel state))
(state (fms! "~x0"
(list (cons #\0 rendered))
channel state nil))
(state (fms! ")" nil channel state nil))
(state (newline channel state))
(state (close-output-channel channel state)))
(value nil))))
(local
(defmacro doc-rebuild ()
; It is sometimes useful to make tweaks to the documentation and then quickly
; be able to see your changes. This macro can be used to do this, as follows:
;
; SETUP:
;
; (ld "doc.lisp") ;; slow, takes a few minutes to get all the books loaded
;
; DEVELOPMENT LOOP: {
;
; 1. make documentation changes in new-doc.lsp; e.g., you can add new topics
; there with defxdoc, or use commands like change-parents, etc.
;
; 2. type (doc-rebuild) to rebuild the manual with your changes; this only
; takes 20-30 seconds
;
; 3. view your changes, make further edits
;
; }
;
; Finally, move your changes out of new-doc.lsp and integrate them properly
; into the other sources, and do a proper build.
`(er-progn
(ubt! 'doc-rebuild-label)
(ld ;; newline to fool dependency scanner
"new-doc.lsp")
(xdoc::save "./manual"
:import nil
:redef-okp t
:expand-level 2)
(value `(value-triple :manual)))))
#||
(redef-errors (get-xdoc-table (w state)))
(defun collect-topics-with-name (name topics)
(if (atom topics)
nil
(if (equal (cdr (assoc :name (car topics))) name)
(cons (Car topics) (collect-topics-with-name name (Cdr topics)))
(collect-topics-with-name name (Cdr topics)))))
(b* (((list a b) (collect-topics-with-name 'oslib::lisp-type (get-xdoc-table (w state)))))
(equal a b))
(b* (((list a b) (collect-topics-with-name 'acl2::ADD-LISTFIX-RULE (get-xdoc-table (w state)))))
(equal a b))
(defun map-topic-names (x)
(if (atom x)
nil
(cons (cdr (assoc :name (car x)))
(map-topic-names (cdr x)))))
(map-topic-names (get-xdoc-table (w state)))
(b* (((list a b) (collect-topics-with-name 'oslib::lisp-type (get-xdoc-table (w state)))))
(equal a b))
(collect-topics-with-name 'acl2::add-listfix-rule (get-xdoc-table (w state)))
||#
|