• 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
              • Compilation
              • Static-semantics
                • Type-checking
                • Static-environments
                  • Var/const-sinfo
                  • Ident-sinfo
                  • Function-sinfo
                  • Var/const-sinfo-option
                  • Struct-sinfo-option
                  • Struct-sinfo
                  • Ident-sinfo-option
                  • Function-sinfo-option
                  • Senv-option
                  • Add-var/const-sinfo
                  • Add-ident-sinfo
                  • Senv
                  • Add-struct-sinfo
                  • Add-function-sinfo
                  • Get-var/const-sinfo
                  • Get-struct-sinfo
                  • Get-function-sinfo
                  • Ident-senv
                    • Ident-senv-fix
                    • Ident-senvp
                      • Ident-senv-equiv
                    • Get-ident-sinfo
                    • Senv-result
                    • Var/const-sinfo-list
                    • Init-senv
                  • Curve-parameterization
                  • Function-recursion
                  • Struct-recursion
                  • Input-checking
                  • Program-checking
                  • Type-maps-for-struct-components
                  • Program-and-input-checking
                  • Output-checking
                • 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
    • Ident-senv

    Ident-senvp

    Recognizer for ident-senv.

    Signature
    (ident-senvp x) → *

    Definitions and Theorems

    Function: ident-senvp

    (defun ident-senvp (x)
      (declare (xargs :guard t))
      (if (atom x)
          (null x)
        (and (consp (car x))
             (identifierp (caar x))
             (ident-sinfop (cdar x))
             (or (null (cdr x))
                 (and (consp (cdr x))
                      (consp (cadr x))
                      (acl2::fast-<< (caar x) (caadr x))
                      (ident-senvp (cdr x)))))))

    Theorem: booleanp-of-ident-senvp

    (defthm booleanp-of-ident-senvp
      (booleanp (ident-senvp x)))

    Theorem: mapp-when-ident-senvp

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

    Theorem: ident-senvp-of-tail

    (defthm ident-senvp-of-tail
      (implies (ident-senvp x)
               (ident-senvp (omap::tail x))))

    Theorem: identifierp-of-head-key-when-ident-senvp

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

    Theorem: ident-sinfop-of-head-val-when-ident-senvp

    (defthm ident-sinfop-of-head-val-when-ident-senvp
      (implies (and (ident-senvp x)
                    (not (omap::emptyp x)))
               (ident-sinfop (mv-nth 1 (omap::head x)))))

    Theorem: ident-senvp-of-update

    (defthm ident-senvp-of-update
      (implies (and (ident-senvp x)
                    (identifierp k)
                    (ident-sinfop v))
               (ident-senvp (omap::update k v x))))

    Theorem: ident-senvp-of-update*

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

    Theorem: ident-senvp-of-delete

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

    Theorem: ident-senvp-of-delete*

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

    Theorem: identifierp-when-assoc-ident-senvp-binds-free-x

    (defthm identifierp-when-assoc-ident-senvp-binds-free-x
      (implies (and (omap::assoc k x) (ident-senvp x))
               (identifierp k)))

    Theorem: identifierp-of-car-of-assoc-ident-senvp

    (defthm identifierp-of-car-of-assoc-ident-senvp
      (implies (and (ident-senvp x) (omap::assoc k x))
               (identifierp (car (omap::assoc k x)))))

    Theorem: ident-sinfop-of-cdr-of-assoc-ident-senvp

    (defthm ident-sinfop-of-cdr-of-assoc-ident-senvp
      (implies (and (ident-senvp x) (omap::assoc k x))
               (ident-sinfop (cdr (omap::assoc k x)))))

    Theorem: ident-sinfop-of-lookup-when-ident-senvp

    (defthm ident-sinfop-of-lookup-when-ident-senvp
      (implies (and (ident-senvp x) (omap::assoc k x))
               (ident-sinfop (omap::lookup k x))))