• 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
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Axe
      • Poseidon
      • Where-do-i-place-my-book
      • Aleo
      • Bigmems
      • Builtins
      • Execloader
        • Elf-reader
        • Mach-o-reader
          • Read-load_commands
          • Read-section_data_sz_structures
          • Mach-o-section-header
          • Mach-o-header
            • Mach-o-header-fix
            • Make-mach-o-header
            • Mach-o-header-equiv
            • Mach-o-header-p
            • Change-mach-o-header
            • Mach-o-header->reserved
            • Mach-o-header->sizeofcmds
              • Mach-o-header->filetype
              • Mach-o-header->cputype
              • Mach-o-header->cpusubtype
              • Mach-o-header->ncmds
              • Mach-o-header->magic
              • Mach-o-header->flags
            • Populate-mach-o-contents
            • Good-mach-o-p
            • Fill-data-segment-bytes
            • Fill-text-text-section-bytes
            • Fill-text-segment-bytes
            • Fill-text-cstring-section-bytes
            • Fill-text-const-section-bytes
            • Fill-data-dyld-section-bytes
            • Fill-data-data-section-bytes
            • Fill-data-const-section-bytes
            • Fill-data-common-section-bytes
            • Fill-data-bss-section-bytes
            • Read-mach_header
            • Populate-mach-o
            • Mach-o-section-headers
          • Merge-first-split-bytes
          • Split-bytes
          • Take-till-zero
          • Charlist->bytes
          • Merge-bytes
          • Bytes->charlist
          • String->bytes
          • Bytes->string
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Mach-o-header

    Mach-o-header->sizeofcmds

    Get the sizeofcmds field from a mach-o-header.

    Signature
    (mach-o-header->sizeofcmds x) → sizeofcmds
    Arguments
    x — Guard (mach-o-header-p x).
    Returns
    sizeofcmds — Type (natp sizeofcmds).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: mach-o-header->sizeofcmds$inline

    (defun mach-o-header->sizeofcmds$inline (x)
      (declare (xargs :guard (mach-o-header-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'mach-o-header->sizeofcmds))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (nfix (cdr (std::da-nth 5 x))))
             :exec (cdr (std::da-nth 5 x)))))

    Theorem: natp-of-mach-o-header->sizeofcmds

    (defthm natp-of-mach-o-header->sizeofcmds
      (b* ((sizeofcmds (mach-o-header->sizeofcmds$inline x)))
        (natp sizeofcmds))
      :rule-classes :rewrite)

    Theorem: mach-o-header->sizeofcmds$inline-of-mach-o-header-fix-x

    (defthm mach-o-header->sizeofcmds$inline-of-mach-o-header-fix-x
      (equal (mach-o-header->sizeofcmds$inline (mach-o-header-fix x))
             (mach-o-header->sizeofcmds$inline x)))

    Theorem: mach-o-header->sizeofcmds$inline-mach-o-header-equiv-congruence-on-x

    (defthm
     mach-o-header->sizeofcmds$inline-mach-o-header-equiv-congruence-on-x
     (implies (mach-o-header-equiv x x-equiv)
              (equal (mach-o-header->sizeofcmds$inline x)
                     (mach-o-header->sizeofcmds$inline x-equiv)))
     :rule-classes :congruence)