• 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
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • 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
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
              • Dynamic-semantics
                • Execution
                • Values
                • Dynamic-environments
                  • Call-dinfo
                  • Denv
                  • Update-var/const-dinfo-in-scope-list
                  • Update-var/const-dinfo-in-scope
                  • Var/const-dinfo
                  • Update-var/const-dinfo
                  • Add-var/const-dinfo-to-scope
                  • Add-var/const-dinfo
                  • Var/const-dinfo-option
                  • Get-var/const-dinfo-from-scope-list
                  • Denv-option
                  • Get-var/const-dinfo-from-scope
                  • Vcscope-dinfo-option
                  • Vcscope-dinfo-list-option
                  • Vcscope-dinfo
                    • Vcscope-dinfop
                      • Vcscope-dinfo-fix
                      • Vcscope-dinfo-equiv
                    • Screens
                    • Get-var/const-dinfo
                    • Vcscope-dinfo-option-result
                    • Vcscope-dinfo-list-result
                    • Vcscope-dinfo-result
                    • Dynamic-struct-environments
                    • Dynamic-function-environments
                    • Denv-result
                    • Init-denv
                    • Vcscope-dinfo-list
                    • Call-dinfo-list
                  • Arithmetic-operations
                  • Curve-parameterization
                  • Shift-operations
                  • Errors
                  • Value-expressions
                  • Locations
                  • Input-execution
                  • Edwards-bls12-generator
                  • Equality-operations
                  • Logical-operations
                  • Program-execution
                  • Ordering-operations
                  • Bitwise-operations
                  • Literal-evaluation
                  • Type-maps-for-struct-components
                  • Output-execution
                  • Tuple-operations
                  • Struct-operations
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • 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
    • Vcscope-dinfo

    Vcscope-dinfop

    Recognizer for vcscope-dinfo.

    Signature
    (vcscope-dinfop x) → *

    Definitions and Theorems

    Function: vcscope-dinfop

    (defun vcscope-dinfop (x)
      (declare (xargs :guard t))
      (if (atom x)
          (null x)
        (and (consp (car x))
             (identifierp (caar x))
             (var/const-dinfop (cdar x))
             (or (null (cdr x))
                 (and (consp (cdr x))
                      (consp (cadr x))
                      (acl2::fast-<< (caar x) (caadr x))
                      (vcscope-dinfop (cdr x)))))))

    Theorem: booleanp-of-vcscope-dinfop

    (defthm booleanp-of-vcscope-dinfop
      (booleanp (vcscope-dinfop x)))

    Theorem: mapp-when-vcscope-dinfop

    (defthm mapp-when-vcscope-dinfop
      (implies (vcscope-dinfop x)
               (omap::mapp x))
      :rule-classes (:rewrite :forward-chaining))

    Theorem: vcscope-dinfop-of-tail

    (defthm vcscope-dinfop-of-tail
      (implies (vcscope-dinfop x)
               (vcscope-dinfop (omap::tail x))))

    Theorem: identifierp-of-head-key-when-vcscope-dinfop

    (defthm identifierp-of-head-key-when-vcscope-dinfop
      (implies (and (vcscope-dinfop x)
                    (not (omap::emptyp x)))
               (identifierp (mv-nth 0 (omap::head x)))))

    Theorem: var/const-dinfop-of-head-val-when-vcscope-dinfop

    (defthm var/const-dinfop-of-head-val-when-vcscope-dinfop
      (implies (and (vcscope-dinfop x)
                    (not (omap::emptyp x)))
               (var/const-dinfop (mv-nth 1 (omap::head x)))))

    Theorem: vcscope-dinfop-of-update

    (defthm vcscope-dinfop-of-update
      (implies (and (vcscope-dinfop x)
                    (identifierp k)
                    (var/const-dinfop v))
               (vcscope-dinfop (omap::update k v x))))

    Theorem: vcscope-dinfop-of-update*

    (defthm vcscope-dinfop-of-update*
      (implies (and (vcscope-dinfop x)
                    (vcscope-dinfop y))
               (vcscope-dinfop (omap::update* x y))))

    Theorem: vcscope-dinfop-of-delete

    (defthm vcscope-dinfop-of-delete
      (implies (vcscope-dinfop x)
               (vcscope-dinfop (omap::delete k x))))

    Theorem: vcscope-dinfop-of-delete*

    (defthm vcscope-dinfop-of-delete*
      (implies (vcscope-dinfop x)
               (vcscope-dinfop (omap::delete* k x))))

    Theorem: identifierp-when-assoc-vcscope-dinfop-binds-free-x

    (defthm identifierp-when-assoc-vcscope-dinfop-binds-free-x
      (implies (and (omap::assoc k x)
                    (vcscope-dinfop x))
               (identifierp k)))

    Theorem: identifierp-of-car-of-assoc-vcscope-dinfop

    (defthm identifierp-of-car-of-assoc-vcscope-dinfop
      (implies (and (vcscope-dinfop x)
                    (omap::assoc k x))
               (identifierp (car (omap::assoc k x)))))

    Theorem: var/const-dinfop-of-cdr-of-assoc-vcscope-dinfop

    (defthm var/const-dinfop-of-cdr-of-assoc-vcscope-dinfop
      (implies (and (vcscope-dinfop x)
                    (omap::assoc k x))
               (var/const-dinfop (cdr (omap::assoc k x)))))

    Theorem: var/const-dinfop-of-lookup-when-vcscope-dinfop

    (defthm var/const-dinfop-of-lookup-when-vcscope-dinfop
      (implies (and (vcscope-dinfop x)
                    (omap::assoc k x))
               (var/const-dinfop (omap::lookup k x))))