• 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
                • Ext-declon-fix
                • Ext-declon-case
                • Ext-declon-equiv
                • Ext-declonp
                • Ext-declon-tag-declon
                • Ext-declon-obj-declon
                  • Ext-declon-obj-declon->get
                    • Make-ext-declon-obj-declon
                    • Change-ext-declon-obj-declon
                  • Ext-declon-fundef
                  • Ext-declon-fun-declon
                  • Ext-declon-kind
                • 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
                • 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
    • Ext-declon-obj-declon

    Ext-declon-obj-declon->get

    Get the get field from a ext-declon-obj-declon.

    Signature
    (ext-declon-obj-declon->get x) → get
    Arguments
    x — Guard (ext-declonp x).
    Returns
    get — Type (obj-declonp get).

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

    Definitions and Theorems

    Function: ext-declon-obj-declon->get$inline

    (defun ext-declon-obj-declon->get$inline (x)
      (declare (xargs :guard (ext-declonp x)))
      (declare (xargs :guard (equal (ext-declon-kind x)
                                    :obj-declon)))
      (mbe :logic
           (b* ((x (and (equal (ext-declon-kind x) :obj-declon)
                        x)))
             (obj-declon-fix (std::da-nth 0 (cdr x))))
           :exec (std::da-nth 0 (cdr x))))

    Theorem: obj-declonp-of-ext-declon-obj-declon->get

    (defthm obj-declonp-of-ext-declon-obj-declon->get
      (b* ((get (ext-declon-obj-declon->get$inline x)))
        (obj-declonp get))
      :rule-classes :rewrite)

    Theorem: ext-declon-obj-declon->get$inline-of-ext-declon-fix-x

    (defthm ext-declon-obj-declon->get$inline-of-ext-declon-fix-x
      (equal (ext-declon-obj-declon->get$inline (ext-declon-fix x))
             (ext-declon-obj-declon->get$inline x)))

    Theorem: ext-declon-obj-declon->get$inline-ext-declon-equiv-congruence-on-x

    (defthm
     ext-declon-obj-declon->get$inline-ext-declon-equiv-congruence-on-x
     (implies (ext-declon-equiv x x-equiv)
              (equal (ext-declon-obj-declon->get$inline x)
                     (ext-declon-obj-declon->get$inline x-equiv)))
     :rule-classes :congruence)

    Theorem: ext-declon-obj-declon->get-when-wrong-kind

    (defthm ext-declon-obj-declon->get-when-wrong-kind
      (implies (not (equal (ext-declon-kind x) :obj-declon))
               (equal (ext-declon-obj-declon->get x)
                      (obj-declon-fix nil))))