• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
      • Io
        • Fmt
        • Msg
        • Cw
        • Set-evisc-tuple
        • Set-iprint
        • Print-control
        • Read-file-into-string
        • Std/io
        • Msgp
        • Printing-to-strings
        • Evisc-tuple
        • Output-controls
          • With-output
          • Summary
          • Set-inhibit-output-lst
          • Set-gag-mode
          • Goal-spec
          • Set-warnings-as-errors
          • Saving-event-data
          • Pso
          • Finalize-event-user
          • Set-inhibit-er
          • Checkpoint-list
            • Set-inhibit-warnings
            • Get-event-data
            • Set-inhibited-summary-types
            • Set-print-clause-ids
            • Set-let*-abstractionp
            • Gag-mode
            • Initialize-event-user
            • Set-raw-proof-format
            • Checkpoint-list-pretty
            • Psof
            • Set-raw-warning-format
            • Toggle-inhibit-warning
            • Toggle-inhibit-er
            • Warnings
            • Show-checkpoint-list
            • Wof
            • Psog
            • Checkpoint-info-list
            • Pso!
            • Toggle-inhibit-warning!
            • Set-duplicate-keys-action!
            • Toggle-inhibit-er!
            • Set-inhibit-warnings!
            • Set-inhibit-er!
          • Observation
          • *standard-co*
          • Standard-co
          • Ppr-special-syms
          • Standard-oi
          • Without-evisc
          • Serialize
          • Fmt-to-comment-window
          • Output-to-file
          • Princ$
          • Character-encoding
          • Open-output-channel!
          • Cw-print-base-radix
          • Set-print-case
          • Set-print-base
          • Print-object$
          • Extend-pathname
          • Print-object$+
          • Fmx-cw
          • Set-print-radix
          • Set-fmt-hard-right-margin
          • File-write-date$
          • Proofs-co
          • Set-print-base-radix
          • Print-base-p
          • *standard-oi*
          • Wof
          • File-length$
          • Fms!-lst
          • Delete-file$
          • *standard-ci*
          • Write-list
          • Trace-co
          • Fmt!
          • Fms
          • Cw!
          • Fmt-to-comment-window!
          • Fms!
          • Eviscerate-hide-terms
          • Fmt1!
          • Fmt-to-comment-window!+
          • Read-file-into-byte-array-stobj
          • Fmt1
          • Fmt-to-comment-window+
          • Cw-print-base-radix!
          • Read-file-into-character-array-stobj
          • Fmx
          • Cw!+
          • Read-objects-from-book
          • Newline
          • Cw+
          • Probe-file
          • Write-objects-to-file!
          • Write-objects-to-file
          • Read-objects-from-file
          • Read-object-from-file
          • Read-file-into-byte-list
          • Set-fmt-soft-right-margin
          • Read-file-into-character-list
          • Io-utilities
        • Defttag
        • Sys-call
        • Save-exec
        • Quicklisp
        • Oslib
        • Std/io
        • Bridge
        • Clex
        • Tshell
        • Unsound-eval
        • Hacker
        • ACL2s-interface
        • Startup-banner
        • Command-line
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Kestrel-utilities
    • Output-controls

    Checkpoint-list

    Return prover key checkpoint clauses programmatically.

    Recall the key checkpoints printed at the end of a failed proof attempt. Some are labeled ``Key checkpoint at the top level''; let us call these checkpoints ``top-level'', and denote others as ``not top-level''. When the most recent proof attempt was one that failed, (checkpoint-list top-p state) returns clauses corresponding to key checkpoints, as follows. If top-p is t, then the list of top-level checkpoints is returned. Otherwise the list of checkpoints that are not top-level is returned. In each case, the order of checkpoints is the same as would be found in the summary of a proof attempt; that is, their order agrees with the order in which they are generated during the proof attempt.

    Related tools. Note that each returned checkpoint is a clause, that is, a list of terms, implicitly disjoined. For a similar utility that instead returns each checkpoint as an untranslated term such as one would see during a proof, see checkpoint-list-pretty. See also show-checkpoint-list for a related tool that displays checkpoints rather than returning them, and see checkpoint-info-list for a tool similar to checkpoint-list that returns additional information.

    Examples may be found in the community-books file checkpoints-tests-input.lsp, with corresponding output (using the run-script tool) in that same directory, in file checkpoints-tests-log.txt.

    Here are details to keep in mind.

    • A return value of :UNAVAILABLE indicates that no information on checkpoints is available, presumably because the most recent proof attempt succeeded.
    • This utility produces the appropriate result even when inhibited SUMMARY output (see set-inhibit-output-lst) suppresses the printing of key checkpoints in a proof attempt.
    • Each forcing round (see forcing-round) is considered a new proof attempt for purposes of this tool.
    • The notion of ``most recent proof attempt'' includes proof attempts made during make-event expansion.
    • If the form (checkpoint-list t state) evaluates to nil, then the most recent proof attempt produced no checkpoints at the top level. This happens when a failed proof is aborted before producing any checkpoints because of reaching a time-limit or a step-limit. So when (checkpoint-list t state) evaluates to nil as part of a larger program, the caller of checkpoint-list might be well served by instead treating the list of top-level checkpoints as (list (list <goal>)), where <goal> is the translated form of the most recent conjecture supplied to the prover.