• 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
            • Integer-ranges
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
              • Check-stmt
              • Check-cond
              • Check-binary-pure
              • Var-table-add-var
              • Check-unary
              • Check-obj-declon
              • Fun-table-add-fun
              • Check-fundef
              • Fun-sinfo
              • Check-expr-asg
              • Check-expr-call
              • Check-arrsub
              • Uaconvert-types
              • Apconvert-type-list
              • Check-initer
              • Adjust-type-list
              • Types+vartab
              • Promote-type
              • Check-tag-declon
              • Check-expr-call-or-asg
              • Check-ext-declon
              • Check-param-declon
              • Check-member
              • Check-expr-pure
              • Init-type-matchp
              • Check-obj-adeclor
              • Check-memberp
              • Check-expr-call-or-pure
              • Check-cast
              • Check-struct-declon-list
              • Check-fun-declor
              • Expr-type
                • Expr-type-fix
                • Expr-type-equiv
                • Expr-typep
                • Make-expr-type
                • Expr-type->type
                  • Change-expr-type
                  • Expr-type->lvalue
                • Check-ext-declon-list
                • Check-transunit
                • Check-fun-declon
                • Var-defstatus
                • Struct-member-lookup
                • Wellformed
                • Preprocess
                • Check-tyspecseq
                • Check-param-declon-list
                • Check-iconst
                • Check-expr-pure-list
                • Var-sinfo-option
                • Fun-sinfo-option
                • Funtab+vartab+tagenv
                • Var-scope-all-definedp
                • Var-sinfo
                • Var-table-lookup
                • Apconvert-type
                • Var-table
                • Check-tyname
                • Types+vartab-result
                • Funtab+vartab+tagenv-result
                • Wellformed-result
                • Fun-table-lookup
                • Var-table-scope
                • Var-table-result
                • Var-table-add-block
                • Fun-table-result
                • Expr-type-result
                • Adjust-type
                • Check-fileset
                • Var-table-all-definedp
                • Check-const
                • Fun-table-all-definedp
                • Check-ident
                • Fun-table
                • Var-table-init
                • Fun-table-init
              • 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
    • Expr-type

    Expr-type->type

    Get the type field from a expr-type.

    Signature
    (expr-type->type x) → type
    Arguments
    x — Guard (expr-typep x).
    Returns
    type — Type (typep type).

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

    Definitions and Theorems

    Function: expr-type->type$inline

    (defun expr-type->type$inline (x)
      (declare (xargs :guard (expr-typep x)))
      (declare (xargs :guard t))
      (mbe :logic
           (b* ((x (and t x)))
             (type-fix (cdr (std::da-nth 0 (cdr x)))))
           :exec (cdr (std::da-nth 0 (cdr x)))))

    Theorem: typep-of-expr-type->type

    (defthm typep-of-expr-type->type
      (b* ((type (expr-type->type$inline x)))
        (typep type))
      :rule-classes :rewrite)

    Theorem: expr-type->type$inline-of-expr-type-fix-x

    (defthm expr-type->type$inline-of-expr-type-fix-x
      (equal (expr-type->type$inline (expr-type-fix x))
             (expr-type->type$inline x)))

    Theorem: expr-type->type$inline-expr-type-equiv-congruence-on-x

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