• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
          • Vl-lint
          • Vl-server
          • Vl-gather
          • Vl-zip
            • Vl-zip-opts-p
            • Vl-zipfile
              • Vl-zipfile-fix
              • Vl-read-zip-header
              • Vl-maybe-zipfile
                • Vl-maybe-zipfile-fix
                • Vl-maybe-zipfile-equiv
                • Vl-maybe-zipfile-case
                • Vl-maybe-zipfile-some
                  • Vl-maybe-zipfile-some->val
                    • Make-vl-maybe-zipfile-some
                    • Change-vl-maybe-zipfile-some
                  • Vl-maybe-zipfile-none
                  • Vl-maybe-zipfile-p
                • Vl-read-zip
                • Make-vl-zipfile
                • Vl-zipfile-equiv
                • Vl-zipfile-p
                • Change-vl-zipfile
                • Vl-zipfile->syntax
                • Vl-zipfile->filemap
                • Vl-zipfile->design
                • Vl-zipfile->defines
                • Vl-zipfile->name
                • Vl-zipfile->ltime
                • Vl-zipfile->date
                • Vl-write-zip
              • *vl-zip-help*
              • Vl-zip-top
              • Vl-zip-main
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-maybe-zipfile-some

    Vl-maybe-zipfile-some->val

    Get the fty::val field from a vl-maybe-zipfile-some.

    Signature
    (vl-maybe-zipfile-some->val x) → fty::val
    Arguments
    x — Guard (vl-maybe-zipfile-p x).
    Returns
    fty::val — Type (vl-zipfile-p fty::val).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: vl-maybe-zipfile-some->val$inline

    (defun vl-maybe-zipfile-some->val$inline (x)
      (declare (xargs :guard (vl-maybe-zipfile-p x)))
      (declare (xargs :guard x))
      (let ((__function__ 'vl-maybe-zipfile-some->val))
        (declare (ignorable __function__))
        (mbe :logic (b* ((x (and x x))) (vl-zipfile-fix x))
             :exec x)))

    Theorem: vl-zipfile-p-of-vl-maybe-zipfile-some->val

    (defthm vl-zipfile-p-of-vl-maybe-zipfile-some->val
      (b* ((fty::val (vl-maybe-zipfile-some->val$inline x)))
        (vl-zipfile-p fty::val))
      :rule-classes :rewrite)

    Theorem: vl-maybe-zipfile-some->val$inline-of-vl-maybe-zipfile-fix-x

    (defthm vl-maybe-zipfile-some->val$inline-of-vl-maybe-zipfile-fix-x
     (equal (vl-maybe-zipfile-some->val$inline (vl-maybe-zipfile-fix x))
            (vl-maybe-zipfile-some->val$inline x)))

    Theorem: vl-maybe-zipfile-some->val$inline-vl-maybe-zipfile-equiv-congruence-on-x

    (defthm
     vl-maybe-zipfile-some->val$inline-vl-maybe-zipfile-equiv-congruence-on-x
     (implies (vl-maybe-zipfile-equiv x x-equiv)
              (equal (vl-maybe-zipfile-some->val$inline x)
                     (vl-maybe-zipfile-some->val$inline x-equiv)))
     :rule-classes :congruence)

    Theorem: vl-maybe-zipfile-some->val-when-wrong-kind

    (defthm vl-maybe-zipfile-some->val-when-wrong-kind
      (implies (not x)
               (equal (vl-maybe-zipfile-some->val x)
                      (vl-zipfile-fix nil))))