• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • 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
              • Grammar-character-p
              • Keywords
              • Grammar-character-listp
              • File-paths
                • Filepath-option
                • Filepath
                  • Filepath-fix
                  • Filepath-equiv
                  • Filepathp
                  • Make-filepath
                  • Filepath->unwrap
                    • Change-filepath
                  • Filepath-set
              • Ascii-identifiers
              • Unambiguity
              • Preprocessing
              • Abstraction-mapping
            • Atc
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • 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
    • Filepath

    Filepath->unwrap

    Get the unwrap field from a filepath.

    Signature
    (filepath->unwrap x) → unwrap
    Arguments
    x — Guard (filepathp x).
    Returns
    unwrap — Type (acl2::any-p unwrap).

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

    Definitions and Theorems

    Function: filepath->unwrap$inline

    (defun filepath->unwrap$inline (x)
      (declare (xargs :guard (filepathp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'filepath->unwrap))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (identity (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: any-p-of-filepath->unwrap

    (defthm any-p-of-filepath->unwrap
      (b* ((unwrap (filepath->unwrap$inline x)))
        (acl2::any-p unwrap))
      :rule-classes :rewrite)

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

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

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

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