• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • 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
            • Mapping-to-language-definition
            • Input-files
            • Defpred
            • Output-files
            • Abstract-syntax-operations
            • Validation-information
            • Implementation-environments
            • Concrete-syntax
              • Grammar
              • Files
                • Fileset
                • File-at-path
                • Filedata
                  • Filedata-fix
                  • Filedata-equiv
                  • Make-filedata
                  • Filedata->unwrap
                    • Change-filedata
                    • Filedatap
                  • Fileset-paths
                  • Filepath-filedata-map
                  • Irr-fileset
                • Grammar-character-p
                • Keywords
                • Grammar-character-listp
                • File-paths
              • Ascii-identifiers
              • Unambiguity
              • Preprocessing
              • Abstraction-mapping
              • Standard
              • Purity
            • Atc
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Riscv
          • 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
    • Filedata

    Filedata->unwrap

    Get the unwrap field from a filedata.

    Signature
    (filedata->unwrap x) → unwrap
    Arguments
    x — Guard (filedatap x).
    Returns
    unwrap — Type (byte-listp unwrap).

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

    Definitions and Theorems

    Function: filedata->unwrap$inline

    (defun filedata->unwrap$inline (x)
      (declare (xargs :guard (filedatap x)))
      (declare (xargs :guard t))
      (let ((__function__ 'filedata->unwrap))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (byte-list-fix (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: byte-listp-of-filedata->unwrap

    (defthm byte-listp-of-filedata->unwrap
      (b* ((unwrap (filedata->unwrap$inline x)))
        (byte-listp unwrap))
      :rule-classes :rewrite)

    Theorem: filedata->unwrap$inline-of-filedata-fix-x

    (defthm filedata->unwrap$inline-of-filedata-fix-x
      (equal (filedata->unwrap$inline (filedata-fix x))
             (filedata->unwrap$inline x)))

    Theorem: filedata->unwrap$inline-filedata-equiv-congruence-on-x

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