• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Hons-and-memoization
      • Events
      • History
        • Pl
        • Command
        • Puff
        • Pc
        • Ld-history
        • Oops
        • Extend-pe-table
        • Ubt
        • Puff*
        • Ubi
        • Undo
        • Make-termination-theorem
        • Pe
        • Command-descriptor
        • Gthm
        • Reset-prehistory
          • Formula
          • Pr
          • Pcb
          • Ubu
          • Disable-ubt
          • Pl2
          • Enter-boot-strap-mode
          • Pbt
          • Reset-kill-ring
          • Ubt!
          • U
          • Tthm
          • Pf
          • Ubu!
          • Pr!
          • Pcs
          • Pcb!
          • Get-command-sequence
          • Exit-boot-strap-mode
          • Ubu?
          • Ubt?
          • Ep-
          • Ubt-prehistory
          • Tau-database
          • Ep
          • Pe!
        • Parallelism
        • Programming
        • Start-here
        • Real
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
        • Interfacing-tools
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • History

    Reset-prehistory

    Reset the prehistory

    Examples:
    (reset-prehistory)     ; restart command numbering at 0
    (reset-prehistory nil) ; same as above
    (reset-prehistory t)   ; as above except also disable ubt-prehistory
    
    General Forms:
    (reset-prehistory)
    (reset-prehistory permanent-p)

    where permanent-p is t or nil. After execution of this command, ACL2 will change the numbering provided by its history utilities so that this reset-prehistory command (or the top-level compound command containing it, which for example might be an include-book) is assigned the number 0. The only way to undo this command is with command ubt-prehistory. However, even that is disallowed if permanent-p is t.

    Note that the second argument of certify-book, which specifies the number of commands in the certification world (i.e., since ground-zero), is not sensitive to reset-prehistory; rather, it expects the number of commands since ground-zero. To see such commands, :pbt :start.

    A reset-prehistory event for which parameter permanent-p has the default value of nil is always skipped when any of the following conditions holds: during certify-book; during include-book or the second pass of encapsulate (indeed, whenever ld special 'ld-skip-proofsp has value 'include-book); or when state global 'skip-reset-prehistory has a non-nil value. Thus, we avoid resetting the history numbering to 0 when including or certifying a book, since that would probably not be what was intended.

    See ubt-prehistory for how to undo a reset-prehistory command that does not have a permanent-p of t. See disable-ubt for a variant of (reset-prehistory t) that does not change command numbering and is used by the break-rewrite utility. Like disable-ubt, reset-prehistory is never redundant.