• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
      • Gl
      • 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
        • 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
            • Create-case-match-macro
          • Rp-rewriter-demo
          • Rp-rewriter/debugging
          • Rp-rewriter/applications
      • Fn-is-body
      • Without-subsumption
      • Rewrite-equiv-hint
      • Def-bounds
      • Rewrite$-context
      • Try-gl-concls
      • Hint-utils
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • 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