• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
        • Proof-support
        • Semantics
        • Lifting
          • Lift-thm
          • Lift-thm-constr-satp-specialized-lemma
          • Lift-var-name-list
            • Lift-thm-constr-to-def-satp-specialized-lemmas
            • Lift-thm-definition-satp-specialized-lemma
            • Lift-info
            • Lift-var-name
            • Lift-thm-def-hyps
            • Lift-definition
            • Lift-expression
            • Lift-thm-asgfree-pairs
            • Lift
            • Lift-thm-free-inst
            • Lift-fn
            • Lift-thm-type-prescriptions-for-called-preds
            • Lift-rel-name
            • Lift-constraint
            • Lift-thm-omap-keys-lemma-instances
            • Lift-table-add
            • Lift-rules
            • Lift-thm-called-lift-thms
            • Lift-rel-name-set-to-list
            • Lift-gen-fep-terms
            • Lift-expression-list
            • Lift-constraint-list
            • Lift-var-name-set-to-list
            • Lift-thm-asgfree-pairs-aux
            • Current-package+
            • Lift-table
          • R1cs-subset
          • Well-formedness
          • Abstract-syntax
          • Concrete-syntax
          • R1cs-bridge
          • Parser-interface
        • Legacy-defrstobj
        • C
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Lifting

    Lift-var-name-list

    Lift a list of PFCS variable names to a list of ACL2 symbols.

    Signature
    (lift-var-name-list x state) → symbols
    Returns
    symbols — Type (symbol-listp symbols).

    This is an ordinary std::defprojection.

    Definitions and Theorems

    Function: lift-var-name-list-exec

    (defun lift-var-name-list-exec (x state acc)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (name-listp x)))
      (let ((__function__ 'lift-var-name-list-exec))
        (declare (ignorable __function__))
        (if (consp x)
            (lift-var-name-list-exec (cdr x)
                                     state
                                     (cons (lift-var-name (car x) state)
                                           acc))
          acc)))

    Function: lift-var-name-list-nrev

    (defun lift-var-name-list-nrev (x state acl2::nrev)
     (declare (xargs :stobjs (state acl2::nrev)))
     (declare (xargs :guard (name-listp x)))
     (let ((__function__ 'lift-var-name-list-nrev))
      (declare (ignorable __function__))
      (if (atom x)
          (acl2::nrev-fix acl2::nrev)
        (let ((acl2::nrev (acl2::nrev-push (lift-var-name (car x) state)
                                           acl2::nrev)))
          (lift-var-name-list-nrev (cdr x)
                                   state acl2::nrev)))))

    Function: lift-var-name-list

    (defun lift-var-name-list (x state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (name-listp x)))
      (let ((__function__ 'lift-var-name-list))
        (declare (ignorable __function__))
        (mbe :logic
             (if (consp x)
                 (cons (lift-var-name (car x) state)
                       (lift-var-name-list (cdr x) state))
               nil)
             :exec
             (if (atom x)
                 nil
               (acl2::with-local-nrev
                    (lift-var-name-list-nrev x state acl2::nrev))))))

    Theorem: symbol-listp-of-lift-var-name-list

    (defthm symbol-listp-of-lift-var-name-list
      (b* ((symbols (lift-var-name-list x state)))
        (symbol-listp symbols))
      :rule-classes :rewrite)

    Theorem: lift-var-name-list-of-take

    (defthm lift-var-name-list-of-take
      (implies (<= (nfix acl2::n) (len acl2::x))
               (equal (lift-var-name-list (take acl2::n acl2::x)
                                          state)
                      (take acl2::n
                            (lift-var-name-list acl2::x state))))
      :rule-classes ((:rewrite)))

    Theorem: set-equiv-congruence-over-lift-var-name-list

    (defthm set-equiv-congruence-over-lift-var-name-list
      (implies (set-equiv acl2::x acl2::y)
               (set-equiv (lift-var-name-list acl2::x state)
                          (lift-var-name-list acl2::y state)))
      :rule-classes ((:congruence)))

    Theorem: subsetp-of-lift-var-name-list-when-subsetp

    (defthm subsetp-of-lift-var-name-list-when-subsetp
      (implies (subsetp acl2::x acl2::y)
               (subsetp (lift-var-name-list acl2::x state)
                        (lift-var-name-list acl2::y state)))
      :rule-classes ((:rewrite)))

    Theorem: member-of-lift-var-name-in-lift-var-name-list

    (defthm member-of-lift-var-name-in-lift-var-name-list
      (implies (member acl2::k acl2::x)
               (member (lift-var-name acl2::k state)
                       (lift-var-name-list acl2::x state)))
      :rule-classes ((:rewrite)))

    Theorem: lift-var-name-list-nrev-removal

    (defthm lift-var-name-list-nrev-removal
      (equal (lift-var-name-list-nrev acl2::x state acl2::nrev)
             (append acl2::nrev
                     (lift-var-name-list acl2::x state)))
      :rule-classes ((:rewrite)))

    Theorem: lift-var-name-list-exec-removal

    (defthm lift-var-name-list-exec-removal
      (equal (lift-var-name-list-exec acl2::x state acl2::acc)
             (revappend (lift-var-name-list acl2::x state)
                        acl2::acc))
      :rule-classes ((:rewrite)))

    Theorem: lift-var-name-list-of-rev

    (defthm lift-var-name-list-of-rev
      (equal (lift-var-name-list (rev acl2::x) state)
             (rev (lift-var-name-list acl2::x state)))
      :rule-classes ((:rewrite)))

    Theorem: lift-var-name-list-of-list-fix

    (defthm lift-var-name-list-of-list-fix
      (equal (lift-var-name-list (list-fix acl2::x)
                                 state)
             (lift-var-name-list acl2::x state))
      :rule-classes ((:rewrite)))

    Theorem: lift-var-name-list-of-append

    (defthm lift-var-name-list-of-append
      (equal (lift-var-name-list (append acl2::a acl2::b)
                                 state)
             (append (lift-var-name-list acl2::a state)
                     (lift-var-name-list acl2::b state)))
      :rule-classes ((:rewrite)))

    Theorem: cdr-of-lift-var-name-list

    (defthm cdr-of-lift-var-name-list
      (equal (cdr (lift-var-name-list acl2::x state))
             (lift-var-name-list (cdr acl2::x)
                                 state))
      :rule-classes ((:rewrite)))

    Theorem: car-of-lift-var-name-list

    (defthm car-of-lift-var-name-list
      (equal (car (lift-var-name-list acl2::x state))
             (and (consp acl2::x)
                  (lift-var-name (car acl2::x) state)))
      :rule-classes ((:rewrite)))

    Theorem: lift-var-name-list-under-iff

    (defthm lift-var-name-list-under-iff
      (iff (lift-var-name-list acl2::x state)
           (consp acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: consp-of-lift-var-name-list

    (defthm consp-of-lift-var-name-list
      (equal (consp (lift-var-name-list acl2::x state))
             (consp acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: len-of-lift-var-name-list

    (defthm len-of-lift-var-name-list
      (equal (len (lift-var-name-list acl2::x state))
             (len acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: true-listp-of-lift-var-name-list

    (defthm true-listp-of-lift-var-name-list
      (true-listp (lift-var-name-list acl2::x state))
      :rule-classes :type-prescription)

    Theorem: lift-var-name-list-when-not-consp

    (defthm lift-var-name-list-when-not-consp
      (implies (not (consp acl2::x))
               (equal (lift-var-name-list acl2::x state)
                      nil))
      :rule-classes ((:rewrite)))

    Theorem: lift-var-name-list-of-cons

    (defthm lift-var-name-list-of-cons
      (equal (lift-var-name-list (cons acl2::a acl2::b)
                                 state)
             (cons (lift-var-name acl2::a state)
                   (lift-var-name-list acl2::b state)))
      :rule-classes ((:rewrite)))