• 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
              • Xeq-fundef
              • Xeq-expr-cond
              • Xeq-expr-binary
              • Xeq-block-item-list-cons
              • Xeq-stmt-ifelse
              • Xeq-expr-const
              • Xeq-declon-declon
              • Gen-param-thms
              • Gen-from-params
              • Gout
              • Gen-block-item-list-thm
              • Xeq-stmt-while
              • Xeq-stmt-dowhile
              • Gin
                • Ginp
                • Gin-fix
                • Make-gin
                • Gin-equiv
                • Change-gin
                • Gin->vartys
                • Gin->events
                • Gin->const-new
                • Gin->thm-index
                • Gin->ienv
                • Xeq-expr-ident
                • Gen-block-item-thm
                • Xeq-stmt-if
                • Xeq-expr-cast
                • Gen-initer-single-thm
                • Gen-init-scope-thm
                • Gen-expr-thm
                • Gen-declon-thm
                • Xeq-expr-unary
                • Gen-stmt-thm
                • Xeq-stmt-return
                • Xeq-stmt-expr
                • Xeq-block-item-declon
                • Xeq-block-item-stmt
                • Xeq-stmt-compound
                • Xeq-initer-single
                • Gen-thm-name
                • Gin-update
                • Gen-var-assertions
                • Tyspecseq-to-type
                • Xeq-block-item-list-empty
                • Gout-no-thm
                • Irr-gout
              • Split-gso
              • Wrap-fn
              • Constant-propagation
              • Specialize
              • Split-fn
              • 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
    • Gin

    Gin->ienv

    Get the ienv field from a gin.

    Signature
    (gin->ienv x) → ienv
    Arguments
    x — Guard (ginp x).
    Returns
    ienv — Type (c$::ienvp ienv).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: gin->ienv$inline

    (defun gin->ienv$inline (x)
      (declare (xargs :guard (ginp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'gin->ienv))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (c$::ienv-fix (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: ienvp-of-gin->ienv

    (defthm ienvp-of-gin->ienv
      (b* ((ienv (gin->ienv$inline x)))
        (c$::ienvp ienv))
      :rule-classes :rewrite)

    Theorem: gin->ienv$inline-of-gin-fix-x

    (defthm gin->ienv$inline-of-gin-fix-x
      (equal (gin->ienv$inline (gin-fix x))
             (gin->ienv$inline x)))

    Theorem: gin->ienv$inline-gin-equiv-congruence-on-x

    (defthm gin->ienv$inline-gin-equiv-congruence-on-x
      (implies (gin-equiv x x-equiv)
               (equal (gin->ienv$inline x)
                      (gin->ienv$inline x-equiv)))
      :rule-classes :congruence)