• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
        • Defun
        • Verify-guards
        • Table
        • Mutual-recursion
        • Memoize
        • Make-event
        • Include-book
        • Encapsulate
        • Defun-sk
        • Defttag
        • Defstobj
        • Defpkg
        • Defattach
        • Defabsstobj
        • Defchoose
          • Conservativity-of-defchoose
          • Defchoose-queries
            • Defchoose-body
            • Defchoosep
            • Defchoose-strengthen
              • Defchoose-namep
              • Defchoose-bound-vars
              • Defchoose-untrans-body
          • Progn
          • Verify-termination
          • Redundant-events
          • Defmacro
          • Defconst
          • Skip-proofs
          • In-theory
          • Embedded-event-form
          • Value-triple
          • Comp
          • Local
          • Defthm
          • Progn!
          • Defevaluator
          • Theory-invariant
          • Assert-event
          • Defun-inline
          • Project-dir-alist
          • Partial-encapsulate
          • Define-trusted-clause-processor
          • Defproxy
          • Defexec
          • Defun-nx
          • Defthmg
          • Defpun
          • Defabbrev
          • Set-table-guard
          • Name
          • Defrec
          • Add-custom-keyword-hint
          • Regenerate-tau-database
          • Defcong
          • Deftheory
          • Defaxiom
          • Deftheory-static
          • Defund
          • Evisc-table
          • Verify-guards+
          • Logical-name
          • Profile
          • Defequiv
          • Defmacro-untouchable
          • Add-global-stobj
          • Defthmr
          • Defstub
          • Defrefinement
          • Deflabel
          • In-arithmetic-theory
          • Unmemoize
          • Defabsstobj-missing-events
          • Defthmd
          • Fake-event
          • Set-body
          • Defun-notinline
          • Functions-after
          • Macros-after
          • Dump-events
          • Defund-nx
          • Defun$
          • Remove-global-stobj
          • Remove-custom-keyword-hint
          • Dft
          • Defthy
          • Defund-notinline
          • Defnd
          • Defn
          • Defund-inline
          • Defmacro-last
        • Parallelism
        • History
        • Programming
        • Operational-semantics
        • Real
        • Start-here
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
        • Interfacing-tools
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Defchoose-queries

    Defchoose-strengthen

    Value of the :strengthen option of a function introduced via defchoose.

    Signature
    (defchoose-strengthen fn wrld) → t/nil
    Arguments
    fn — Guard (defchoose-namep fn wrld).
    wrld — Guard (plist-worldp wrld).
    Returns
    t/nil — A booleanp.

    If explicitly supplied, the value of the :strengthen option is the last element of the defchoose event, which consists of seven element in this case. If not explicitly supplied, the value of the :strengthen option is nil, and the defchoose event consists of five elements only.

    Definitions and Theorems

    Function: defchoose-strengthen

    (defun defchoose-strengthen (fn wrld)
      (declare (xargs :guard (and (plist-worldp wrld)
                                  (defchoose-namep fn wrld))))
      (let ((__function__ 'defchoose-strengthen))
        (declare (ignorable __function__))
        (let ((event (get-event fn wrld)))
          (if (= (len event) 5)
              nil
            (car (last event))))))