Filtering...

defund-sk-doc

books/std/util/defund-sk-doc

Included Books

other
(in-package "ACL2")
include-book
(include-book "xdoc/constructors" :dir :system)
other
(defxdoc defund-sk
  :parents (std/util defun-sk)
  :short "Define a function with quantifier
          and disable it and its associated rewrite rule."
  :long (topstring (p "This is exactly like a @(tsee defun-sk), except for two differences:")
    (ul (li "It also generates an event to disable the function definition.
      Thus, this macro is consistent with built-in macros like
      @(tsee defund) and @(tsee defund-nx).")
      (li "It also supports a @(':thm-enable') input, @('nil') by default,
      that is used to generate, when @('nil'), an event to disable
      the rewrite rule associated to the function.
      This rewrite rule is the one
      whose name is controlled by the @(':thm-name') option;
      thus, the @(':thm-enable') option of @('defund-sk2')
      is named consistently.
      No disabling event is generated if @(':thm-enable') is @('t');
      the rewrite rule is left enabled."))))