• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • 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
              • Ascii-identifiers
              • Unambiguity
              • 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

    Dirdeclor-block-formalp

    Check if a direct declarator has formal dynamic semantics, as part of a block item declaration.

    Signature
    (dirdeclor-block-formalp dirdeclor) → yes/no
    Arguments
    dirdeclor — Guard (dirdeclorp dirdeclor).
    Returns
    yes/no — Type (booleanp yes/no).

    In c::exec-block-item, the declaration case requires an object (not function) declarator that is not an array declarator. So we can only have an identifier.

    Definitions and Theorems

    Function: dirdeclor-block-formalp

    (defun dirdeclor-block-formalp (dirdeclor)
      (declare (xargs :guard (dirdeclorp dirdeclor)))
      (declare (xargs :guard (dirdeclor-unambp dirdeclor)))
      (let ((__function__ 'dirdeclor-block-formalp))
        (declare (ignorable __function__))
        (and (dirdeclor-case dirdeclor :ident)
             (ident-formalp (dirdeclor-ident->ident dirdeclor)))))

    Theorem: booleanp-of-dirdeclor-block-formalp

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

    Theorem: dirdeclor-block-formalp-of-dirdeclor-fix-dirdeclor

    (defthm dirdeclor-block-formalp-of-dirdeclor-fix-dirdeclor
      (equal (dirdeclor-block-formalp (dirdeclor-fix dirdeclor))
             (dirdeclor-block-formalp dirdeclor)))

    Theorem: dirdeclor-block-formalp-dirdeclor-equiv-congruence-on-dirdeclor

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