• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • 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
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • 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)))