• 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
          • Language
            • Abstract-syntax
              • Tyspecseq
              • Expr
              • Binop
              • Fileset
              • Obj-declor
              • Abstract-syntax-operations
              • Iconst
              • Obj-adeclor
              • Const
              • Fundef
              • Unop
              • File
              • Tag-declon
              • Fun-declor
              • Obj-declon
              • Iconst-length
              • Label
              • Struct-declon
              • Initer
              • Ext-declon
              • Fun-adeclor
              • Expr-option
              • Iconst-base
              • Initer-option
              • Iconst-option
              • Tyspecseq-option
              • Stmt-option
              • Scspecseq
              • Param-declon
              • Obj-declon-option
              • File-option
              • Tyname
              • Transunit
              • Fun-declon
              • Transunit-result
              • Param-declon-list
              • Struct-declon-list
              • Expr-list
              • Tyspecseq-list
              • Identifiers
              • Ext-declon-list
              • Unop-list
              • Tyname-list
              • Fundef-list
              • Fun-declon-list
              • Binop-list
              • Stmt-fixtypes
                • Stmt
                • Block-item
                  • Block-item-case
                  • Block-item-equiv
                  • Block-itemp
                  • Block-item-stmt
                    • Make-block-item-stmt
                    • Block-item-stmt->get
                      • Change-block-item-stmt
                    • Block-item-declon
                    • Block-item-kind
                    • Block-item-fix
                    • Block-item-count
                  • Block-item-list
                • Expr-fixtypes
              • 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
              • Function-environments
              • Character-sets
              • Flexible-array-member-removal
              • Arithmetic-operations
              • Pointer-operations
              • Real-operations
              • Array-operations
              • Scalar-operations
              • Structure-operations
            • 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
    • Block-item-stmt

    Block-item-stmt->get

    Get the get field from a block-item-stmt.

    Signature
    (block-item-stmt->get x) → get
    Arguments
    x — Guard (block-itemp x).
    Returns
    get — Type (stmtp get).

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

    Definitions and Theorems

    Function: block-item-stmt->get$inline

    (defun block-item-stmt->get$inline (x)
      (declare (xargs :guard (block-itemp x)))
      (declare (xargs :guard (equal (block-item-kind x) :stmt)))
      (mbe :logic
           (b* ((x (and (equal (block-item-kind x) :stmt)
                        x)))
             (stmt-fix (std::da-nth 0 (cdr x))))
           :exec (std::da-nth 0 (cdr x))))

    Theorem: stmtp-of-block-item-stmt->get

    (defthm stmtp-of-block-item-stmt->get
      (b* ((get (block-item-stmt->get$inline x)))
        (stmtp get))
      :rule-classes :rewrite)

    Theorem: block-item-stmt->get$inline-of-block-item-fix-x

    (defthm block-item-stmt->get$inline-of-block-item-fix-x
      (equal (block-item-stmt->get$inline (block-item-fix x))
             (block-item-stmt->get$inline x)))

    Theorem: block-item-stmt->get$inline-block-item-equiv-congruence-on-x

    (defthm block-item-stmt->get$inline-block-item-equiv-congruence-on-x
      (implies (block-item-equiv x x-equiv)
               (equal (block-item-stmt->get$inline x)
                      (block-item-stmt->get$inline x-equiv)))
      :rule-classes :congruence)

    Theorem: block-item-stmt->get-when-wrong-kind

    (defthm block-item-stmt->get-when-wrong-kind
      (implies (not (equal (block-item-kind x) :stmt))
               (equal (block-item-stmt->get x)
                      (stmt-fix nil))))