• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                • Input-files
                • Identifiers
                • Types
                • Struct-init
                  • Struct-init-equiv
                  • Make-struct-init
                  • Struct-init->name
                  • Struct-init->expr
                    • Change-struct-init
                    • Struct-initp
                    • Struct-init-fix
                    • Struct-init-count
                  • Branch
                  • Statements
                  • Format-strings
                  • Input-syntax-abstraction
                  • Expressions
                  • Output-files
                  • Addresses
                  • Literals
                  • Characters
                  • Expression-list
                  • Statement-list
                  • Output-syntax-abstraction
                  • Struct-init-list
                  • Branch-list
                  • Annotations
                  • Abstract-syntax-trees
                  • Symbols
                  • Keywords
                  • Programs
                  • Packages
                  • Bit-sizes
                • Dynamic-semantics
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • 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
    • Struct-init

    Struct-init->expr

    Get the expr field from a struct-init.

    Signature
    (struct-init->expr x) → expr
    Arguments
    x — Guard (struct-initp x).
    Returns
    expr — Type (expressionp expr).

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

    Definitions and Theorems

    Function: struct-init->expr$inline

    (defun struct-init->expr$inline (x)
      (declare (xargs :guard (struct-initp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'struct-init->expr))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (expression-fix (cdr (std::da-nth 1 x))))
             :exec (cdr (std::da-nth 1 x)))))

    Theorem: expressionp-of-struct-init->expr

    (defthm expressionp-of-struct-init->expr
      (b* ((expr (struct-init->expr$inline x)))
        (expressionp expr))
      :rule-classes :rewrite)

    Theorem: struct-init->expr$inline-of-struct-init-fix-x

    (defthm struct-init->expr$inline-of-struct-init-fix-x
      (equal (struct-init->expr$inline (struct-init-fix x))
             (struct-init->expr$inline x)))

    Theorem: struct-init->expr$inline-struct-init-equiv-congruence-on-x

    (defthm struct-init->expr$inline-struct-init-equiv-congruence-on-x
      (implies (struct-init-equiv x x-equiv)
               (equal (struct-init->expr$inline x)
                      (struct-init->expr$inline x-equiv)))
      :rule-classes :congruence)