• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • 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
        • Transformations
        • Language
          • Abstract-syntax
            • Escape
            • Swcase-list->value-list
            • Hex-digit-list->chars
            • Fundef-list->name-list
            • Literal
            • Path
            • Hex-string-rest-element
            • Plain-string
            • String-element
            • Hex-string-content-option
            • Hex-string-content
            • Identifier
            • Funcall-option
            • Expression-option
            • Statement-option
            • Literal-option
            • Identifier-option
            • Hex-string
            • Hex-quad
            • Hex-digit
            • Hex-pair
            • Data-value
            • Data-item
            • Statements-to-fundefs
            • String-element-list-result
            • Identifier-identifier-map-result
            • Swcase-result
            • String-element-result
            • Statement-result
            • Literal-result
            • Identifier-set-result
            • Identifier-result
            • Identifier-list-result
            • Fundef-result
            • Funcall-result
            • Expression-result
            • Escape-result
            • Path-result
            • Block-result
            • Objects
            • Statements/blocks/cases/fundefs
              • Statement
              • Fundef
              • Block-option
              • Block
                • Blockp
                • Block-equiv
                • Make-block
                • Block->statements
                  • Change-block
                  • Block-fix
                  • Block-count
                • Swcase
                • Swcase-list
                • Statement-list
              • Identifier-list
              • Identifier-set
              • Identifier-identifier-map
              • Identifier-identifier-alist
              • Hex-string-rest-element-list
              • String-element-list
              • Path-list
              • Hex-digit-list
              • Literal-list
              • Fundef-list
              • Expressions/funcalls
              • Abstract-syntax-induction-schemas
            • Dynamic-semantics
            • Concrete-syntax
            • Static-soundness
            • Static-semantics
            • Errors
          • Yul-json
        • 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
    • Block

    Block->statements

    Get the statements field from a block.

    Signature
    (block->statements x) → statements
    Arguments
    x — Guard (blockp x).
    Returns
    statements — Type (statement-listp statements).

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

    Definitions and Theorems

    Function: block->statements$inline

    (defun block->statements$inline (x)
      (declare (xargs :guard (blockp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'block->statements))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (statement-list-fix (cdr (std::da-nth 0 (cdr x)))))
             :exec (cdr (std::da-nth 0 (cdr x))))))

    Theorem: statement-listp-of-block->statements

    (defthm statement-listp-of-block->statements
      (b* ((statements (block->statements$inline x)))
        (statement-listp statements))
      :rule-classes :rewrite)

    Theorem: block->statements$inline-of-block-fix-x

    (defthm block->statements$inline-of-block-fix-x
      (equal (block->statements$inline (block-fix x))
             (block->statements$inline x)))

    Theorem: block->statements$inline-block-equiv-congruence-on-x

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