• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
        • Syntax-for-tools
          • Formalized-subset
            • Expr-pure-formalp
            • Stmts-formalp
            • Type-spec-list-integer-formalp
            • Expr-formalp
            • Type-spec-list-formalp
            • Extdecl-formalp
            • Ident-formalp
            • Tyname-formalp
            • Pointers-formalp
            • Dirdeclor-obj-formalp
            • Desiniter-formalp
            • Fundef-formalp
            • Decl-obj-formalp
            • Expr-asg-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
            • Initer-formalp
            • Expr-call-formalp
            • Declor-obj-formalp
            • Decl-fun-formalp
            • Struct-declor-formalp
            • Struct-declon-list-formalp
            • Struni-spec-formalp
            • Stor-spec-list-formalp
            • Declor-fun-formalp
            • Declor-block-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
              • 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
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Formalized-subset

    Declor-block-formalp

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

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

    The direct declarator part must be supported, and we can have any number of supported pointers.

    Definitions and Theorems

    Function: declor-block-formalp

    (defun declor-block-formalp (declor)
      (declare (xargs :guard (declorp declor)))
      (declare (xargs :guard (declor-unambp declor)))
      (let ((__function__ 'declor-block-formalp))
        (declare (ignorable __function__))
        (and (pointers-formalp (declor->pointers declor))
             (dirdeclor-block-formalp (declor->direct declor)))))

    Theorem: booleanp-of-declor-block-formalp

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

    Theorem: declor-block-formalp-of-declor-fix-declor

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

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

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