• 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
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Riscv
        • Bitcoin
        • 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
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Lifting

    Lift-thm-asgfree-pairs

    Calculate a list of pairs for constructing a witness assignment to quantified variables.

    Signature
    (lift-thm-asgfree-pairs quant witness) → terms
    Arguments
    quant — Guard (symbol-listp quant).
    witness — A term.
    Returns
    terms — Type (true-listp terms).

    These are used in the hints for the `if' direction of the lifting theorem, when there are free PFCS variables, which become quantified variables in ACL2.

    Definitions and Theorems

    Function: lift-thm-asgfree-pairs-aux

    (defun lift-thm-asgfree-pairs-aux (quant index witness)
      (declare (xargs :guard (and (symbol-listp quant)
                                  (natp index))))
      (let ((__function__ 'lift-thm-asgfree-pairs-aux))
        (declare (ignorable __function__))
        (cond ((endp quant) nil)
              (t (cons (cons 'mv-nth
                             (cons index (cons witness 'nil)))
                       (lift-thm-asgfree-pairs-aux (cdr quant)
                                                   (1+ index)
                                                   witness))))))

    Theorem: true-listp-of-lift-thm-asgfree-pairs-aux

    (defthm true-listp-of-lift-thm-asgfree-pairs-aux
      (b* ((terms (lift-thm-asgfree-pairs-aux quant index witness)))
        (true-listp terms))
      :rule-classes :rewrite)

    Function: lift-thm-asgfree-pairs

    (defun lift-thm-asgfree-pairs (quant witness)
      (declare (xargs :guard (symbol-listp quant)))
      (let ((__function__ 'lift-thm-asgfree-pairs))
        (declare (ignorable __function__))
        (cond ((endp quant) (raise "Error."))
              ((endp (cdr quant)) (list witness))
              (t (lift-thm-asgfree-pairs-aux quant 0 witness)))))

    Theorem: true-listp-of-lift-thm-asgfree-pairs

    (defthm true-listp-of-lift-thm-asgfree-pairs
      (b* ((terms (lift-thm-asgfree-pairs quant witness)))
        (true-listp terms))
      :rule-classes :rewrite)