• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
          • Syntax-for-tools
            • Disambiguator
            • Abstract-syntax
            • Parser
            • Validator
            • Printer
            • Formalized-subset
              • Expr-pure-formalp
              • Type-spec-list-integer-formalp
              • Stmts/blocks-formalp
              • Extdecl-formalp
              • Ident-formalp
              • Type-spec-list-formalp
              • Tyname-formalp
              • Pointers-formalp
              • Dirdeclor-obj-formalp
              • Desiniter-formalp
              • Fundef-formalp
              • Decl-obj-formalp
              • Decl-block-formalp
              • Initdeclor-obj-formalp
              • Expr-asg-formalp
              • Structdecl-formalp
              • Initdeclor-block-formalp
              • Decl-struct-formalp
              • Dirdeclor-fun-formalp
              • Dirdeclor-block-formalp
              • Initdeclor-fun-formalp
              • Transunit-ensemble-formalp
              • Param-declor-formalp
              • Initer-formalp
              • Expr-call-formalp
              • Declor-obj-formalp
              • Decl-fun-formalp
              • Param-declon-formalp
              • Structdeclor-formalp
                • Stor-spec-list-formalp
                • Declor-fun-formalp
                • Declor-block-formalp
                • Strunispec-formalp
                • Structdecl-list-formalp
                • Param-declon-list-formalp
                • Desiniter-list-formalp
                • Extdecl-list-formalp
                • Expr-list-pure-formalp
                • Transunit-formalp
                • Const-formalp
                • Stmt-formalp
                • Block-item-list-formalp
                • Block-item-formalp
              • Mapping-to-language-definition
              • Input-files
              • Defpred
              • Output-files
              • Abstract-syntax-operations
              • Validation-information
              • Implementation-environments
              • Concrete-syntax
              • Unambiguity
              • Ascii-identifiers
              • Preprocessing
              • Abstraction-mapping
            • Atc
            • Language
            • 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
    • Formalized-subset

    Structdeclor-formalp

    Check if a structure declarator has formal dynamic semantics.

    Signature
    (structdeclor-formalp structdeclor) → yes/no
    Arguments
    structdeclor — Guard (structdeclorp 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: structdeclor-formalp

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

    Theorem: booleanp-of-structdeclor-formalp

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

    Theorem: structdeclor-formalp-of-structdeclor-fix-structdeclor

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

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

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