• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
          • Syntax-for-tools
          • Atc
          • Transformation-tools
            • Simpadd0
            • Proof-generation
            • Split-gso
            • Wrap-fn
            • Constant-propagation
            • Specialize
            • Split-fn
              • Split-fn-implementation
                • Abstract-fn
                • Split-fn-block-item-list
                • Declon-to-ident-param-declon-map
                • Split-fn-fundef
                • Split-fn-ext-declon
                • Split-fn-filepath-transunit-map
                • Split-fn-ext-declon-list
                • Split-fn-transunit-ensemble
                • Split-fn-code-ensemble
                • Split-fn-transunit
                • Param-declon-to-ident-param-declon-map
                • Declon-to-ident-param-declon-map0
                • Param-declon-list-to-ident-param-declon-map
                • Ident-param-declon-map-filter
                • Declon-list-to-ident-param-declon-map
                • Add-pointer-param-declon
                • Map-address-ident-list
                • Map-add-pointer-param-declon
                • Make-deref-subst
                • Ident-param-declon-map
                  • Ident-param-declon-map-fix
                  • Ident-param-declon-mapp
                    • Ident-param-declon-map-equiv
                  • Split-fn-event-generation
                  • Split-fn-input-processing
              • Split-fn-when
              • Split-all-gso
              • Copy-fn
              • Variables-in-computation-states
              • Rename
              • Utilities
              • Proof-generation-theorems
              • Input-processing
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Ident-param-declon-map

    Ident-param-declon-mapp

    Recognizer for ident-param-declon-map.

    Signature
    (ident-param-declon-mapp x) → *

    Definitions and Theorems

    Function: ident-param-declon-mapp

    (defun ident-param-declon-mapp (x)
      (declare (xargs :guard t))
      (if (atom x)
          (null x)
        (and (consp (car x))
             (identp (caar x))
             (param-declonp (cdar x))
             (or (null (cdr x))
                 (and (consp (cdr x))
                      (consp (cadr x))
                      (acl2::fast-<< (caar x) (caadr x))
                      (ident-param-declon-mapp (cdr x)))))))

    Theorem: booleanp-of-ident-param-declon-mapp

    (defthm booleanp-of-ident-param-declon-mapp
      (booleanp (ident-param-declon-mapp x)))

    Theorem: mapp-when-ident-param-declon-mapp

    (defthm mapp-when-ident-param-declon-mapp
      (implies (ident-param-declon-mapp x)
               (omap::mapp x))
      :rule-classes (:rewrite :forward-chaining))

    Theorem: ident-param-declon-mapp-of-tail

    (defthm ident-param-declon-mapp-of-tail
      (implies (ident-param-declon-mapp x)
               (ident-param-declon-mapp (omap::tail x))))

    Theorem: identp-of-head-key-when-ident-param-declon-mapp

    (defthm identp-of-head-key-when-ident-param-declon-mapp
      (implies (and (ident-param-declon-mapp x)
                    (not (omap::emptyp x)))
               (identp (mv-nth 0 (omap::head x)))))

    Theorem: param-declonp-of-head-val-when-ident-param-declon-mapp

    (defthm param-declonp-of-head-val-when-ident-param-declon-mapp
      (implies (and (ident-param-declon-mapp x)
                    (not (omap::emptyp x)))
               (param-declonp (mv-nth 1 (omap::head x)))))

    Theorem: ident-param-declon-mapp-of-update

    (defthm ident-param-declon-mapp-of-update
      (implies (and (ident-param-declon-mapp x)
                    (identp k)
                    (param-declonp v))
               (ident-param-declon-mapp (omap::update k v x))))

    Theorem: ident-param-declon-mapp-of-update*

    (defthm ident-param-declon-mapp-of-update*
      (implies (and (ident-param-declon-mapp x)
                    (ident-param-declon-mapp y))
               (ident-param-declon-mapp (omap::update* x y))))

    Theorem: ident-param-declon-mapp-of-delete

    (defthm ident-param-declon-mapp-of-delete
      (implies (ident-param-declon-mapp x)
               (ident-param-declon-mapp (omap::delete k x))))

    Theorem: ident-param-declon-mapp-of-delete*

    (defthm ident-param-declon-mapp-of-delete*
      (implies (ident-param-declon-mapp x)
               (ident-param-declon-mapp (omap::delete* k x))))

    Theorem: identp-when-assoc-ident-param-declon-mapp-binds-free-x

    (defthm identp-when-assoc-ident-param-declon-mapp-binds-free-x
      (implies (and (omap::assoc k x)
                    (ident-param-declon-mapp x))
               (identp k)))

    Theorem: identp-of-car-of-assoc-ident-param-declon-mapp

    (defthm identp-of-car-of-assoc-ident-param-declon-mapp
      (implies (and (ident-param-declon-mapp x)
                    (omap::assoc k x))
               (identp (car (omap::assoc k x)))))

    Theorem: param-declonp-of-cdr-of-assoc-ident-param-declon-mapp

    (defthm param-declonp-of-cdr-of-assoc-ident-param-declon-mapp
      (implies (and (ident-param-declon-mapp x)
                    (omap::assoc k x))
               (param-declonp (cdr (omap::assoc k x)))))

    Theorem: param-declonp-of-lookup-when-ident-param-declon-mapp

    (defthm param-declonp-of-lookup-when-ident-param-declon-mapp
      (implies (and (ident-param-declon-mapp x)
                    (omap::assoc k x))
               (param-declonp (omap::lookup k x))))