• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
        • Syntax-for-tools
        • Atc
        • Transformation-tools
        • Language
          • Abstract-syntax
          • Integer-ranges
          • Implementation-environments
          • Dynamic-semantics
          • Static-semantics
          • Grammar
          • Types
          • Integer-formats-definitions
          • Computation-states
          • Portable-ascii-identifiers
          • Values
          • Integer-operations
          • Object-designators
          • Operations
          • Errors
          • Tag-environments
            • Tag-info
            • Tag-info-option
            • Tag-env-add
            • Tag-env-option
            • Tag-info-struct-flexiblep
            • Tag-env-result
            • Tag-env-lookup
            • Tag-env
              • Tag-envp
                • Tag-env-fix
                • Tag-env-equiv
              • Tag-env-init
            • Function-environments
            • Character-sets
            • Flexible-array-member-removal
            • Arithmetic-operations
            • Pointer-operations
            • Real-operations
            • Array-operations
            • Scalar-operations
            • Structure-operations
          • Representation
          • Insertion-sort
          • Pack
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • 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
    • Tag-env

    Tag-envp

    Recognizer for tag-env.

    Signature
    (tag-envp x) → *

    Definitions and Theorems

    Function: tag-envp

    (defun tag-envp (x)
      (declare (xargs :guard t))
      (if (atom x)
          (null x)
        (and (consp (car x))
             (identp (caar x))
             (tag-infop (cdar x))
             (or (null (cdr x))
                 (and (consp (cdr x))
                      (consp (cadr x))
                      (acl2::fast-<< (caar x) (caadr x))
                      (tag-envp (cdr x)))))))

    Theorem: booleanp-of-tag-envp

    (defthm booleanp-of-tag-envp
      (booleanp (tag-envp x)))

    Theorem: mapp-when-tag-envp

    (defthm mapp-when-tag-envp
      (implies (tag-envp x) (omap::mapp x))
      :rule-classes (:rewrite :forward-chaining))

    Theorem: tag-envp-of-tail

    (defthm tag-envp-of-tail
      (implies (tag-envp x)
               (tag-envp (omap::tail x))))

    Theorem: identp-of-head-key-when-tag-envp

    (defthm identp-of-head-key-when-tag-envp
      (implies (and (tag-envp x)
                    (not (omap::emptyp x)))
               (identp (mv-nth 0 (omap::head x)))))

    Theorem: tag-infop-of-head-val-when-tag-envp

    (defthm tag-infop-of-head-val-when-tag-envp
      (implies (and (tag-envp x)
                    (not (omap::emptyp x)))
               (tag-infop (mv-nth 1 (omap::head x)))))

    Theorem: tag-envp-of-update

    (defthm tag-envp-of-update
      (implies (and (tag-envp x)
                    (identp k)
                    (tag-infop v))
               (tag-envp (omap::update k v x))))

    Theorem: tag-envp-of-update*

    (defthm tag-envp-of-update*
      (implies (and (tag-envp x) (tag-envp y))
               (tag-envp (omap::update* x y))))

    Theorem: tag-envp-of-delete

    (defthm tag-envp-of-delete
      (implies (tag-envp x)
               (tag-envp (omap::delete k x))))

    Theorem: tag-envp-of-delete*

    (defthm tag-envp-of-delete*
      (implies (tag-envp x)
               (tag-envp (omap::delete* k x))))

    Theorem: identp-when-assoc-tag-envp-binds-free-x

    (defthm identp-when-assoc-tag-envp-binds-free-x
      (implies (and (omap::assoc k x) (tag-envp x))
               (identp k)))

    Theorem: identp-of-car-of-assoc-tag-envp

    (defthm identp-of-car-of-assoc-tag-envp
      (implies (and (tag-envp x) (omap::assoc k x))
               (identp (car (omap::assoc k x)))))

    Theorem: tag-infop-of-cdr-of-assoc-tag-envp

    (defthm tag-infop-of-cdr-of-assoc-tag-envp
      (implies (and (tag-envp x) (omap::assoc k x))
               (tag-infop (cdr (omap::assoc k x)))))

    Theorem: tag-infop-of-lookup-when-tag-envp

    (defthm tag-infop-of-lookup-when-tag-envp
      (implies (and (tag-envp x) (omap::assoc k x))
               (tag-infop (omap::lookup k x))))