• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
      • Apt
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Prime-field-constraint-systems
      • Proof-checker-array
      • Soft
      • Rp-rewriter
        • Rp-ruleset
        • Defthmrp
        • Rp-rewriter/meta-rules
        • Rp-utilities
          • Defthmrp
          • Show-rules
          • Def-rw-opener-error
          • Valid-sc
          • Set-rp-backchain-limit
          • Fetch-new-theory
          • Ex-from-rp
            • Context-from-rp
            • Ex-from-rp-loose
            • Ex-from-rp-all2
            • Ex-from-rp-all
          • Rp-other-utilities
          • Rp-equal
          • Preserve-current-theory
          • Set-rw-step-limit
          • Rp-termp
          • Include-fnc
          • Set-rp-backchain-limit-throws-error
          • Defwarrant-rp
        • Rp-rewriter-demo
        • Rp-rewriter/debugging
        • Rp-rewriter/applications
      • Farray
      • 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
      • C
      • Jfkr
      • X86isa
      • Equational
      • Cryptography
      • Where-do-i-place-my-book
      • Json
      • Built-ins
      • Execloader
      • Solidity
      • Paco
      • Concurrent-programs
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Testing-utilities
    • Math
  • Rp-utilities

Ex-from-rp

Extracts a term if it is wrapped in an rp instance.

Signature
(ex-from-rp term) → *

Definitions and Theorems

Function: ex-from-rp

(defun ex-from-rp (term)
       (declare (xargs :guard t))
       (let ((__function__ 'ex-from-rp))
            (declare (ignorable __function__))
            (if (is-rp term)
                (ex-from-rp (caddr term))
                term)))

Subtopics

Context-from-rp
Expands a given context list with the side-conditions from the term
Ex-from-rp-loose
Same as ex-from-rp when term is rp-termp but a little faster.
Ex-from-rp-all2
Removes all instances of 'rp' from a term, and remove falist instances along the way
Ex-from-rp-all
Removes all instances of 'rp' from a term