• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
      • Gl
        • Term-level-reasoning
        • Glmc
        • Other-resources
        • Optimization
        • Reference
          • Def-gl-thm
            • Def-gl-rule
              • Find-and-remove-key
            • Defthm-using-gl
            • Gl-thm
          • Shape-specs
          • Symbolic-objects
          • Gl-aside
          • Def-gl-param-thm
          • Symbolic-arithmetic
          • Bfr
          • Def-gl-boolean-constraint
          • Gl-mbe
          • Bvec
          • Flex-bindings
          • Auto-bindings
          • Gl-interp
          • Gl-set-uninterpreted
          • Def-gl-clause-processor
          • Def-glcp-ctrex-rewrite
          • ACL2::always-equal
          • Gl-hint
          • Def-gl-rewrite
          • Def-gl-branch-merge
          • Gl-force-check
          • Gl-concretize
          • Gl-assert
          • Gl-param-thm
          • Gl-simplify-satlink-mode
          • Gl-satlink-mode
          • Gl-bdd-mode
          • Gl-aig-bddify-mode
          • Gl-fraig-satlink-mode
        • Debugging
        • Basic-tutorial
      • Witness-cp
      • Ccg
      • Install-not-normalized
      • Rewrite$
      • Fgl
      • Removable-runes
      • Efficiency
      • Rewrite-bounds
      • Bash
      • Def-dag-measure
      • Bdd
      • Remove-hyps
      • Contextual-rewriting
      • Simp
      • Rewrite$-hyps
      • Bash-term-to-dnf
      • Use-trivial-ancestors-check
      • Minimal-runes
      • Clause-processor-tools
      • Fn-is-body
      • Without-subsumption
      • Rewrite-equiv-hint
      • Def-bounds
      • Rewrite$-context
      • Try-gl-concls
      • Hint-utils
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Def-gl-thm

Def-gl-rule

A slightly enhanced version of def-gl-thm

def-gl-rule is a drop-in replacement for def-gl-thm that adds:

  • Integration with xdoc. You can give :parents, :short, and :long documentation right at the top level of the defrule.

Support for Local

Another option is to provide a non-nil value to the keyword argument :local. This results in surrounding the rule with a local.

Disabledp

Another option is to provide a non-nil value to the keyword argument :disabledp (note the 'p' at the end). This results in disabling the new rule after its proof finishes.

Some examples:

(def-gl-rule baz        -->  (local
    ...                        (encapsulate ()
    :local t)                    (defthm baz ...)))
(def-gl-rule baz        -->  (defthm baz ...)
    ...                      (in-theory (disable baz))
    :disabledp t)

Subtopics

Find-and-remove-key
Remove keyword key and associated value from list lst