• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
          • Atc
          • Language
            • Abstract-syntax
            • Integer-ranges
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
            • Grammar
            • Integer-formats
            • Types
            • Portable-ascii-identifiers
            • Values
            • Integer-operations
            • Computation-states
            • Object-designators
              • Objdesign
                • Objdesign-fix
                • Objdesign-case
                • Objdesignp
                • Objdesign-count
                • Objdesign-equiv
                • Objdesign-auto
                  • Make-objdesign-auto
                  • Objdesign-auto->scope
                  • Objdesign-auto->name
                  • Objdesign-auto->frame
                    • Change-objdesign-auto
                  • Objdesign-member
                  • Objdesign-element
                  • Objdesign-static
                  • Objdesign-alloc
                  • Objdesign-kind
                • Address
                • Object-disjointp
                • Objdesign-option
              • Operations
              • Errors
              • Tag-environments
              • Function-environments
              • Character-sets
              • Flexible-array-member-removal
              • Arithmetic-operations
              • Pointer-operations
              • Bytes
              • Keywords
              • Real-operations
              • Array-operations
              • Scalar-operations
              • Structure-operations
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Objdesign-auto

    Objdesign-auto->frame

    Get the frame field from a objdesign-auto.

    Signature
    (objdesign-auto->frame x) → frame
    Arguments
    x — Guard (objdesignp x).
    Returns
    frame — Type (natp frame).

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

    Definitions and Theorems

    Function: objdesign-auto->frame$inline

    (defun objdesign-auto->frame$inline (x)
      (declare (xargs :guard (objdesignp x)))
      (declare (xargs :guard (equal (objdesign-kind x) :auto)))
      (let ((__function__ 'objdesign-auto->frame))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (objdesign-kind x) :auto)
                          x)))
               (nfix (std::da-nth 1 (cdr x))))
             :exec (std::da-nth 1 (cdr x)))))

    Theorem: natp-of-objdesign-auto->frame

    (defthm natp-of-objdesign-auto->frame
      (b* ((frame (objdesign-auto->frame$inline x)))
        (natp frame))
      :rule-classes :rewrite)

    Theorem: objdesign-auto->frame$inline-of-objdesign-fix-x

    (defthm objdesign-auto->frame$inline-of-objdesign-fix-x
      (equal (objdesign-auto->frame$inline (objdesign-fix x))
             (objdesign-auto->frame$inline x)))

    Theorem: objdesign-auto->frame$inline-objdesign-equiv-congruence-on-x

    (defthm objdesign-auto->frame$inline-objdesign-equiv-congruence-on-x
      (implies (objdesign-equiv x x-equiv)
               (equal (objdesign-auto->frame$inline x)
                      (objdesign-auto->frame$inline x-equiv)))
      :rule-classes :congruence)

    Theorem: objdesign-auto->frame-when-wrong-kind

    (defthm objdesign-auto->frame-when-wrong-kind
      (implies (not (equal (objdesign-kind x) :auto))
               (equal (objdesign-auto->frame x)
                      (nfix nil))))