• 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
      • Operational-semantics
      • Real
      • Start-here
      • Miscellaneous
        • Term
        • Ld
          • Wormhole
            • Wormhole-eval
            • Wormhole-status
            • Wormhole-programming-tips
            • Wormhole-implementation
            • Sync-ephemeral-whs-with-persistent-whs
              • Get-persistent-whs
              • Set-persistent-whs-and-ephemeral-whs
              • Make-wormhole-status
              • Set-wormhole-entry-code
              • Set-wormhole-data
              • Wormhole-data
              • Wormhole-entry-code
              • Wormhole-statusp
              • Wormhole-p
            • Ld-skip-proofsp
            • Lp
            • Ld-redefinition-action
            • Ld-error-action
            • Ld-history
            • Guarantees-of-the-top-level-loop
            • Ld-post-eval-print
            • Ld-keyword-aliases
            • Stobj-attachment-restrictions
            • Current-package
            • Ld-query-control-alist
            • Ld-prompt
            • Keyword-commands
            • Redef+
            • Rebuild
            • Prompt
            • Ld-pre-eval-print
            • Calling-ld-in-bad-contexts
            • P!
            • Ld-pre-eval-filter
            • Ld-error-triples
            • Ld-evisc-tuple
            • Ld-verbose
            • A!
            • Default-print-prompt
            • Reset-ld-specials
            • Ld-always-skip-top-level-locals
            • Ld-missing-input-ok
            • Redef
            • Redef!
            • Redef-
            • I-am-here
            • Abort!
          • Hints
          • Type-set
          • Ordinals
          • Clause
          • With-prover-step-limit
          • ACL2-customization
          • Set-prover-step-limit
          • With-prover-time-limit
          • Local-incompatibility
          • Set-case-split-limitations
          • Subversive-recursions
          • Specious-simplification
          • Set-subgoal-loop-limits
          • Gcl
          • Defsum
          • Oracle-timelimit
          • Thm
          • Defopener
          • Case-split-limitations
          • Set-gc-strategy
          • Default-defun-mode
          • Top-level
          • Reader
          • Divp-by-casting
          • Ttags-seen
          • Adviser
          • Ttree
          • Abort-soft
          • Defsums
          • Gc$
          • With-timeout
          • Coi-debug::fail
          • Expander
          • Gc-strategy
          • Coi-debug::assert
          • Sin-cos
          • Majority-vote
          • Def::doc
          • Syntax
          • Subgoal-loop-limits
          • Subversive-inductions
        • Output-controls
        • Bdd
        • Macros
        • Installation
        • Mailing-lists
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Wormhole

    Sync-ephemeral-whs-with-persistent-whs

    establishing wormhole coherence

    General Form:
    (sync-ephemeral-whs-with-persistent-whs name state)

    where name is the quoted name of a wormhole other than one of the built-in ACL2 system wormholes. It is forbidden to invoke sync-ephemeral-whs-with-persistent-whs on the names listed in the constant *protected-system-wormhole-names* which includes brr (the break-rewrite wormhole name), accumulated-persistence, and fc-wormhole (the name of the wormhole managing forward-chaining-reports), among others.

    If executed on the live state and while in the named wormhole, this function moves the wormhole's status from the persistent-whs (located in that part of the memory outside of ACL2's state) to the ephemeral-whs (the value of the state global variable wormhole-status). Subsequently, name's persistent-whs is equal to its ephemeral-whs: the name wormhole is coherent. If executed on a state other than the live one or while outside of the named wormhole, this function is a no-op. Of course, the next time the name wormhole is entered it will be in a coherent state since entry to a wormhole initializes the wormhole-status to the persistent-whs. sync-ephemeral-whs-with-persistent-whs returns the new state.

    Logically speaking, this function uses read-ACL2-oracle to obtain the wormhole's hidden status. So the output state is almost certainly different than the input state.

    See wormhole-programming-tips for some tips for using this function.