• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
          • Syntax-for-tools
          • Atc
          • Language
          • Representation
          • Transformation-tools
            • Simpadd0
            • Deftrans
            • Splitgso
            • Constant-propagation
            • Split-fn
              • Abstract-fn
              • Split-fn-block-item-list
              • Decl-to-ident-paramdeclon-map
              • Split-fn-fundef
              • Split-fn-extdecl
              • Split-fn-filepath-transunit-map
              • Split-fn-extdecl-list
              • Param-declon-to-ident-paramdeclon-map
              • Split-fn-transunit-ensemble
              • Split-fn-transunit
              • Param-declon-list-to-ident-paramdeclon-map
              • Ident-paramdeclon-map-filter
              • Decl-to-ident-paramdeclon-map0
              • Decl-list-to-ident-paramdeclon-map
              • Expr-ident-list
              • Ident-paramdeclon-map
                • Ident-paramdeclon-mapp
                  • Ident-paramdeclon-map-fix
                  • Ident-paramdeclon-map-equiv
              • Copy-fn
              • Specialize
              • Split-all-gso
              • Rename
              • Utilities
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Ident-paramdeclon-map

    Ident-paramdeclon-mapp

    Recognizer for ident-paramdeclon-map.

    Signature
    (ident-paramdeclon-mapp x) → *

    Definitions and Theorems

    Function: ident-paramdeclon-mapp

    (defun ident-paramdeclon-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-paramdeclon-mapp (cdr x)))))))

    Theorem: booleanp-of-ident-paramdeclon-mapp

    (defthm booleanp-of-ident-paramdeclon-mapp
      (booleanp (ident-paramdeclon-mapp x)))

    Theorem: mapp-when-ident-paramdeclon-mapp

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

    Theorem: ident-paramdeclon-mapp-of-tail

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

    Theorem: identp-of-head-key-when-ident-paramdeclon-mapp

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

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

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

    Theorem: ident-paramdeclon-mapp-of-update

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

    Theorem: ident-paramdeclon-mapp-of-update*

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

    Theorem: ident-paramdeclon-mapp-of-delete

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

    Theorem: ident-paramdeclon-mapp-of-delete*

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

    Theorem: identp-when-assoc-ident-paramdeclon-mapp-binds-free-x

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

    Theorem: identp-of-car-of-assoc-ident-paramdeclon-mapp

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

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

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

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

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