• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Debugging
    • Projects
      • Apt
      • Acre
      • Milawa
      • Smtlink
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Abnf
      • Proof-checker-array
      • Soft
      • Farray
      • Prime-field-constraint-systems
      • Rp-rewriter
        • Rp-ruleset
        • Rp-rewriter/meta-rules
        • Rp-utilities
          • Rp-other-utilities
          • Rule-syntaxp
          • Defthm-lambda
          • Def-rw-opener-error
          • Valid-sc
          • Fetch-new-theory
          • Show-rules
          • Set-rp-backchain-limit
          • Defthmrp
            • Preserve-current-theory
            • Context-from-rp
            • Falist-consistent
            • Ex-from-rp-loose
            • Ex-from-rp
            • Rp-equal
            • Set-rw-step-limit
            • Rp-equal-cnt
            • Ex-from-rp-all2
            • Rp-termp
            • Rp-equal-cw
            • Ex-from-rp-all
            • Set-rp-backchain-limit-throws-error
            • Include-fnc-subterms
            • Include-fnc
          • Defthmrp
            • Rp-rewriter-demo
            • Rp-rewriter/debugging
            • Rp-rewriter/applications
          • Instant-runoff-voting
          • Imp-language
          • Sidekick
          • Leftist-trees
          • Taspi
          • Bitcoin
          • Des
          • Ethereum
          • Sha-2
          • Yul
          • Zcash
          • Proof-checker-itp13
          • Bigmem
          • Regex
          • ACL2-programming-language
          • Java
          • Jfkr
          • X86isa
          • Equational
          • C
          • Cryptography
          • Where-do-i-place-my-book
          • Execloader
          • Json
          • Solidity
          • Paco
          • Concurrent-programs
        • Std
        • Proof-automation
        • Macro-libraries
        • ACL2
        • Interfacing-tools
        • Hardware-verification
        • Software-verification
        • Testing-utilities
        • Math
      • Rp-utilities
      • Rp-rewriter

      Defthmrp

      A defthm macro that calls RP-Rewriter as a clause processor with some capabilities.

      RP::Defthmrp is a macro that calls defthm with RP-Rewriter as a clause-processor. It may also take some of the following parameters:

      
       (rp::defthmrp
        <new-rule-name>
        <conjecture>
        ;; optional keys:
        :rule-classes <...>   ;; default: :rewrite
        :new-synps <...>      ;; for advanced users; can attach syntaxp to some existing
                              ;; rewrite rules. Default: nil
        :enable-meta-rules (meta-fnc1 meta-fnc2 ...) ;; an unquoted list of names
                                                     ;; of meta functions that users
                                                     ;; wants to enable.
        :disable-meta-rules (meta-fnc1 meta-fnc2 ...) ;; same as above
        :enable-rules (append '(rule1 rule2)
                              *rules3*
                              ...) ;; List of rule-names that users wants enabled in
            ;; RP-Rewriter's rule-set. The macro will execute the expressions first to
            ;; generate the names.
        :disable-rules <...>      ;; Same as above
        :runes '(rule1 rule2 ...) ;; When nil, the macro uses the existing rule-set of
            ;; RP-rewriter. Otherwise, it will overrride everything else regarding rules
            ;; and use only the rules given in this list.
        )