• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
        • Type-prescription
        • Rewrite
        • Meta
        • Linear
        • Definition
        • Clause-processor
          • Meta-extract
          • Set-skip-meta-termp-checks
          • Make-summary-data
          • 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
          • Set-skip-meta-termp-checks!
        • Tau-system
        • Forward-chaining
        • Equivalence
        • Congruence
        • Free-variables
        • Executable-counterpart
        • Induction
        • Type-reasoning
        • Compound-recognizer
        • Rewrite-quoted-constant
        • Elim
        • Well-founded-relation-rule
        • Built-in-clause
        • Well-formedness-guarantee
        • Patterned-congruence
        • Rule-classes-introduction
        • Guard-holders
        • Refinement
        • Type-set-inverter
        • Generalize
        • Corollary
        • Induction-heuristics
        • Backchaining
        • Default-backchain-limit
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
      • Operational-semantics
      • Real
      • Start-here
      • Debugging
      • Miscellaneous
      • Output-controls
      • Macros
      • Interfacing-tools
    • 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