• 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
          • Memoize-partial
          • Protect-memoize-statistics
          • Profile-all
          • Profile-ACL2
          • Memoized-prover-fns
          • Unmemoize
          • Verify-guard-implication
            • Memsum
            • Set-bad-lisp-consp-memoize
            • Memoize-summary
            • Save-and-clear-memoization-settings
            • Never-memoize
            • Clear-memoize-tables
            • Clear-memoize-statistics
            • Clear-memoize-table
            • Restore-memoization-settings
          • Make-event
          • Include-book
          • Encapsulate
          • Defun-sk
          • Defttag
          • Defstobj
          • Defpkg
          • Defattach
          • Defabsstobj
          • Defchoose
          • 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
    • Memoize
    • Guard-formula-utilities

    Verify-guard-implication

    Guard implication for memoize keyword :invoke

    Examples:
    (verify-guard-implication f g)
    (verify-guard-implication f g
                              :hints (("Goal" :in-theory (enable nth))))
    
    General Form:
    (verify-guard-implication fn1 fn2 &key hints otf-flg)

    where none of the arguments is evaluated. This macro creates a defthm event with :rule-classes nil, using :hints and :otf-flg if provided. The formula of that event is generally an implication formed from the guards of the two functions, but might be T, as we now describe.

    Let guard-fn1 be the guard for fn1, and let guard-fn2 be the result of substituting the formals of fn1 for the formals of fn2 in the guard for fn2. If guard-fn1 tautologically implies guard-fn2 (for example, the two are equal or guard-fn2 is 'T), then the formula of the generated event is T. Otherwise, the formula is (IMPLIES guard-fn1 guard-fn2).

    Note that the formula might be unpleasant for a human to read, since guard-fn1 and guard-fn2 are translated terms (see term).