Skip to contentList of Tables
- 1.1 The code of the J-Bob repository, counted by
files.scm (lines; top-level forms). The ACL2 checker and transcript are the Scheme files plus the header forms in-package and include-book, and four :measure declarations in the checker; the ACL2 language file is a different file (Chapter 2 and Chapter 11).A proof assistant you can read - 2.1 The nine primitives. “args” is the length of the formals that
rator.formals gives (scheme/j-bob.scm:91–96); “line” is the definition in scheme/j-bob-lang.scm (cons is the host’s own); the last column is lines 1–9 of host.out.A language of total functions - 3.1 The equation
equality/def builds from the app of a step, by the kind of definition that lookup finds. Lines are in scheme/j-bob.scm.Rewriting at a path - 4.1 The 21 axioms of
scheme/j-bob.scm:798–854, in the groups of axioms.scm. With no premises (—) the body is the conclusion. “A P”: the body is (if P C 't), so the conclusion C holds when P is true; “E P”: the body is (if P 't C), so it holds when P is false. Two premises are two nested ifs. The last three columns copy lines 2–22 of first-use.out: the number of steps that name the axiom in the proofs of the prelude (prel.) and in the 49 entries of the transcript (trans.), and the first entry of the transcript, in file order, with such a step.The axioms - 5.1 What each entry point returns (
scheme/j-bob.scm:775–796). : a well-formed proof whose claim is or becomes 'nil gives the same answer as an ill-formed one (nil-ambiguity.scm).Theorems, premises and the chain of definitions - 6.1 Totality claims and their fate. and stand for
(< (size (car v)) (size v)) and (< (size (cdr v)) (size v)), where
v is x for list?, list-induction and
star-induction, xs for remb and memb?, and y for
sub. The claims are printed by claims.scm,
contradiction.scm and nontermination.scm, the proofs
checked by book-totality.scm; the refused ones were offered with no
steps. “False at” gives a value of the variable at which the host evaluates
the whole claim to 'nil.Totality and measures - 7.1 The four kinds of seed of the book: cases of the induction
claim and hypotheses per case, left to right in the claim, from
shapes.out. The seeds are
at scheme/little-prover.scm:385, 451, 779, 1091.Induction from recursion - 8.1 The 31 entries of the chain, from
chain.out and
steps.out. The groups are Chapters 3 to 6 (left) and 7 to 9 (right)
of the transcript
(scheme/little-prover.scm:119, 195, 260, 379, 425, 619, 873).
An empty seed is nil; defs is the number of definitions after
the entry (23 before the first). An entry with several proofs lists them
below its name.The book’s proofs - 8.2 Techniques of the transcript, with lines of
scheme/little-prover.scm where each is used. Lines 98 and 106–111
are warm-ups of Chapter 2 and 911–915 is defun.align.attempt; T10 is
used in none of the 37 proofs. T1 to T6 and T10 are about rewriting and
premises (Chapter 3 and Chapter 5); T7 to T9 about induction and
measures (Chapter 6 and Chapter 7).The book’s proofs - 9.1 The 128 functions of
scheme/j-bob.scm in 15 groups, with the number of functions of each group and its lines. Groups C to G are each split over two ranges.Inside J-Bob - 10.1 Attempts to fool J-Bob, grouped by J-Bob’s answer. Rows 1–21 are those of
attacks.out; H1, H2 and C are the holes and the crash of Section 10.3, Section 10.4 and Section 10.5.Can J-Bob be fooled? - 11.1 The Scheme and ACL2 files of the repository (
wc -l; the differences are those of diff).The ACL2 counterpart - 11.2 J-Bob and ACL2. Kind: run, shown by an example of this section; read, read in the source; bg, background, not run here.The ACL2 counterpart
- A.1 The 21 axioms in source order, read from lines 29–49 of
axioms.out, which print one axiom per line.Glossary and reference card - A.2 The nine primitives in the order of
rator?, from lines 1–10 and 13–22 of prims.out. “line”: of scheme/j-bob-lang.scm; cons is the host’s, and line 6 is num, which counts a non-number as 0.Glossary and reference card - A.3 The three entry points (
scheme/j-bob.scm:775–782, scheme/j-bob.scm:784–789 and scheme/j-bob.scm:791–796), as run in entries.out. “Not proved”: the steps run out, or one is a no-op. (a) The same value as a first step that is a no-op, and 't if the claim is 't. (b) The same value as a well-formed proof whose residual claim is 'nil.Glossary and reference card