• 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
        • Syntax-for-tools
        • Atc
          • Atc-implementation
            • Atc-abstract-syntax
            • Atc-pretty-printer
            • Atc-event-and-code-generation
              • Atc-symbolic-computation-states
              • Atc-symbolic-execution-rules
              • Atc-gen-ext-declon-lists
              • Atc-function-and-loop-generation
              • Atc-statement-generation
                • Stmt-gin
                • Atc-gen-term-type-formula
                • Atc-gen-stmt
                • Stmt-gout
                • Atc-gen-expr
                • Atc-gen-block-item-var-asg
                • Atc-gen-return-stmt
                • Atc-gen-mbt-block-items
                • Atc-gen-if/ifelse-stmt
                • Atc-gen-cfun-call-stmt
                • Atc-gen-block-item-struct-scalar-asg
                • Atc-gen-block-item-struct-array-asg
                • Atc-gen-block-item-list-append
                • Atc-gen-block-item-integer-asg
                • Atc-gen-block-item-declon
                • Atc-gen-block-item-array-asg
                • Atc-gen-loop-stmt
                • Atc-gen-block-item-list-cons
                • Atc-uterm-to-components
                • Atc-gen-block-item-stmt
                • Lstmt-gin
                • Atc-gen-block-item-list-one
                • Atc-gen-block-item-var-decl
                • Atc-gen-block-item-asg
                • Atc-gen-call-result-and-endstate
                • Lstmt-gout
                • Atc-ensure-formals-not-lost
                • Atc-gen-block-item-list-none
                • Atc-var-assignablep
                • Atc-gen-uterm-result-and-type-formula
                • Atc-remove-extobj-args
                • Atc-affecting-term-for-let-p
                • Atc-vars-assignablep
                  • Atc-make-lets-of-uterms
                  • Atc-symbolp-list
                  • Atc-make-mv-nth-terms
                  • Atc-make-mv-lets-of-uterms
                  • Atc-update-var-term-alist
                  • Irr-stmt-gout
                  • Irr-lstmt-gout
                • Atc-gen-fileset
                • Atc-gen-everything
                • Atc-gen-obj-declon
                • Atc-gen-fileset-event
                • Atc-tag-tables
                • Atc-expression-generation
                • Atc-generation-contexts
                • Atc-gen-wf-thm
                • Term-checkers-atc
                • Atc-variable-tables
                • Term-checkers-common
                • Atc-gen-init-fun-env-thm
                • Atc-gen-appconds
                • Read-write-variables
                • Atc-gen-thm-assert-events
                • Test*
                • Atc-gen-prog-const
                • Atc-gen-expr-bool
                • Atc-theorem-generation
                • Atc-tag-generation
                • Atc-gen-expr-pure
                • Atc-function-tables
                • Atc-object-tables
              • Fty-pseudo-term-utilities
              • Atc-term-recognizers
              • Atc-input-processing
              • Atc-shallow-embedding
              • Atc-process-inputs-and-gen-everything
              • Atc-table
              • Atc-fn
              • Atc-pretty-printing-options
              • Atc-types
              • Atc-macro-definition
            • Atc-tutorial
          • Language
          • Representation
          • Transformation-tools
          • Insertion-sort
          • Pack
        • Farray
        • Rp-rewriter
        • 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
    • Atc-statement-generation

    Atc-vars-assignablep

    Lift atc-var-assignablep to lists.

    Signature
    (atc-vars-assignablep var-list innermostp-list affect) 
      → 
    yes/no
    Arguments
    var-list — Guard (symbol-listp var-list).
    innermostp-list — Guard (boolean-listp innermostp-list).
    affect — Guard (symbol-listp affect).
    Returns
    yes/no — Type (booleanp yes/no), given (boolean-listp innermostp-list).

    Definitions and Theorems

    Function: atc-vars-assignablep

    (defun atc-vars-assignablep (var-list innermostp-list affect)
      (declare (xargs :guard (and (symbol-listp var-list)
                                  (boolean-listp innermostp-list)
                                  (symbol-listp affect))))
      (declare (xargs :guard (equal (len var-list)
                                    (len innermostp-list))))
      (let ((__function__ 'atc-vars-assignablep))
        (declare (ignorable __function__))
        (or (endp var-list)
            (and (atc-var-assignablep (car var-list)
                                      (car innermostp-list)
                                      affect)
                 (atc-vars-assignablep (cdr var-list)
                                       (cdr innermostp-list)
                                       affect)))))

    Theorem: booleanp-of-atc-vars-assignablep

    (defthm booleanp-of-atc-vars-assignablep
     (implies
      (boolean-listp innermostp-list)
      (b*
       ((yes/no (atc-vars-assignablep var-list innermostp-list affect)))
       (booleanp yes/no)))
     :rule-classes :rewrite)