• 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
    • Ex-from-rp

    Context-from-rp

    Expands a given context list with the side-conditions from the term

    Signature
    (context-from-rp term context) → *

    Definitions and Theorems

    Function: context-from-rp

    (defun context-from-rp (term context)
      (declare (xargs :guard t))
      (let ((__function__ 'context-from-rp))
        (declare (ignorable __function__))
        (if (is-rp term)
            (let ((type (car (cdr (car (cdr term)))))
                  (x (car (cdr (cdr term)))))
              (b* ((rcontext (context-from-rp x context)))
                (cons (cons type (cons (ex-from-rp x) 'nil))
                      rcontext)))
          context)))