• 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
            • Formalized-subset
              • Exprs-formalp
              • Stmts-formalp
              • Type-spec-list-integer-formalp
              • Type-spec-list-formalp
              • Extdecl-formalp
              • Ident-formalp
              • Tyname-formalp
              • Pointers-formalp
              • Dirdeclor-obj-formalp
              • Desiniter-formalp
              • Fundef-formalp
              • Decl-obj-formalp
              • Decl-block-formalp
              • Struct-declon-formalp
              • Initdeclor-obj-formalp
              • Initdeclor-block-formalp
              • Decl-struct-formalp
              • Dirdeclor-fun-formalp
              • Dirdeclor-block-formalp
              • Initdeclor-fun-formalp
              • Transunit-ensemble-formalp
              • Param-declor-formalp
              • Param-declon-formalp
              • Declor-obj-formalp
              • Decl-fun-formalp
              • Struct-declor-formalp
                • Struct-declon-list-formalp
                • Initer-formalp
                • Struni-spec-formalp
                • Stor-spec-list-formalp
                • Declor-fun-formalp
                • Declor-block-formalp
                • Param-declon-list-formalp
                • Desiniter-list-formalp
                • Extdecl-list-formalp
                • Transunit-formalp
                • Const-formalp
                • Stmt-formalp
                • Expr-formalp
                • Expr-list-formalp
                • Block-item-list-formalp
                • Block-item-formalp
                • Comp-stmt-formalp
              • Mapping-to-language-definition
              • Input-files
              • Compilation-database
              • Printer
              • Output-files
              • Abstract-syntax-operations
              • Implementation-environments
              • Abstract-syntax
              • Concrete-syntax
              • Disambiguation
              • Validation
              • Gcc-builtins
              • Preprocessing
              • Parsing
            • Atc
            • Transformation-tools
            • 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
    • Formalized-subset

    Struct-declor-formalp

    Check if a structure declarator has formal dynamic semantics.

    Signature
    (struct-declor-formalp structdeclor) → yes/no
    Arguments
    structdeclor — Guard (struct-declorp structdeclor).
    Returns
    yes/no — Type (booleanp yes/no).

    The declarator must be present and supported. The optional expression must be absent.

    Definitions and Theorems

    Function: struct-declor-formalp

    (defun struct-declor-formalp (structdeclor)
      (declare (xargs :guard (struct-declorp structdeclor)))
      (declare (xargs :guard (struct-declor-unambp structdeclor)))
      (let ((__function__ 'struct-declor-formalp))
        (declare (ignorable __function__))
        (b* (((struct-declor structdeclor)
              structdeclor))
          (and structdeclor.declor?
               (declor-obj-formalp structdeclor.declor?)
               (not structdeclor.expr?)))))

    Theorem: booleanp-of-struct-declor-formalp

    (defthm booleanp-of-struct-declor-formalp
      (b* ((yes/no (struct-declor-formalp structdeclor)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: struct-declor-formalp-of-struct-declor-fix-structdeclor

    (defthm struct-declor-formalp-of-struct-declor-fix-structdeclor
      (equal (struct-declor-formalp (struct-declor-fix structdeclor))
             (struct-declor-formalp structdeclor)))

    Theorem: struct-declor-formalp-struct-declor-equiv-congruence-on-structdeclor

    (defthm
     struct-declor-formalp-struct-declor-equiv-congruence-on-structdeclor
     (implies (struct-declor-equiv structdeclor structdeclor-equiv)
              (equal (struct-declor-formalp structdeclor)
                     (struct-declor-formalp structdeclor-equiv)))
     :rule-classes :congruence)