• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
        • Defun
        • Declare
        • System-utilities
        • Stobj
        • State
          • World
          • 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
            • Wormhole
            • Programming-with-state
            • W
            • Set-state-ok
            • Random$
          • Mutual-recursion
          • Memoize
          • Mbe
          • 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
            • Defpkg
            • Apply$
            • Loop$
            • Programming-with-state
            • Arrays
            • Characters
            • Time$
            • Defconst
            • Fast-alists
            • Defmacro
            • Loop$-primer
            • Evaluation
            • Guard
            • Equality-variants
            • Compilation
            • Hons
            • ACL2-built-ins
            • Developers-guide
            • System-attachments
            • Advanced-features
            • Set-check-invariant-risk
            • Numbers
            • Efficiency
            • Irrelevant-formals
            • Introduction-to-programming-in-ACL2-for-those-who-know-lisp
            • Redefining-programs
            • Lists
            • Invariant-risk
            • Errors
            • Defabbrev
            • Conses
            • Alists
            • Set-register-invariant-risk
            • Strings
            • Program-wrapper
            • Get-internal-time
            • Basics
            • Packages
            • Oracle-eval
            • Defmacro-untouchable
            • <<
            • Primitive
            • Revert-world
            • Unmemoize
            • Set-duplicate-keys-action
            • Symbols
            • Def-list-constructor
            • Easy-simplify-term
            • Defiteration
            • Fake-oracle-eval
            • Defopen
            • Sleep
          • Operational-semantics
          • Real
          • Start-here
          • Miscellaneous
          • 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!
            • Bdd
            • Macros
            • Installation
            • Mailing-lists
          • Interfacing-tools
          • Hardware-verification
          • Software-verification
          • Math
          • Testing-utilities
        • Output-controls

        Set-print-clause-ids

        Cause subgoal numbers to be printed when 'prove output is inhibited

        General Forms:
        (set-print-clause-ids t)
        :set-print-clause-ids t
        (set-print-clause-ids nil)
        :set-print-clause-ids nil

        This command affects output from the theorem prover only when 'prove output is inhibited (see set-inhibit-output-lst) or gag-mode is on (but in that case the :goals setting issues this command automatically; see set-gag-mode). Calling this macro with value t as shown above will cause subsequent proof attempts with 'prove output inhibited to print the subgoal number, so that you can see the progress of the proof; value nil reverts to the default behavior, where this is not the case. On a related note, we point out that you can cause output to be saved for later display; see pso and see pso!.

        If 'prove output is inhibited or gag-mode is on, and if you issue (set-print-clause-ids t) (either explicitly or with (set-gag-mode :goals)), then you can restrict when subgoal numbers are printed. In the following example we restrict to subgoals that are no more than four inductions deep, no more than four casesplits deep, and no more than four single-subgoals deep. For additional relevant explanation, see clause-identifier and see defattach.

        (defun print-clause-id-okp-level-4 (cl-id)
          (declare (xargs :mode :logic :guard (clause-id-p cl-id)))
          (and (<= (length (access clause-id cl-id :pool-lst))
                   4)
               (<= (length (access clause-id cl-id :case-lst))
                   4)
               (<= (access clause-id cl-id :primes)
                   4)))
        
        (defattach-system print-clause-id-okp print-clause-id-okp-level-4)