• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
          • Address
          • Wire
            • Wire-fix
            • Wire-p
            • Make-wire
            • Wire-equiv
            • Change-wire
            • Wire->name
            • Wire->low-idx
            • Wire->delay
              • Wire->width
              • Wire->type
              • Wire->atts
              • Wirelist
              • Wire->revp
              • Wiretype
            • Module
            • Lhs
            • Path
            • Svar-add-namespace
            • Design
            • Modinst
            • Lhs-add-namespace
            • Modalist
            • Path-add-namespace
            • Modname->submodnames
            • Name
            • Constraintlist-addr-p
            • Svex-alist-addr-p
            • Svar-map-addr-p
            • Lhspairs-addr-p
            • Modname
            • Assigns-addr-p
            • Lhs-addr-p
            • Lhatom-addr-p
            • Modhier-list-measure
            • Attributes
            • Modhier-measure
            • Modhier-list-measure-aux
            • Modhier-loopfreelist-p
            • Modhier-loopfree-p
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Wire

    Wire->delay

    Get the delay field from a wire.

    Signature
    (wire->delay x) → delay
    Arguments
    x — Guard (wire-p x).
    Returns
    delay — Type (maybe-posp delay).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: wire->delay$inline

    (defun wire->delay$inline (x)
      (declare (xargs :guard (wire-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'wire->delay))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (acl2::maybe-posp-fix
                    (std::prod-car (std::prod-car (std::prod-cdr x)))))
             :exec (std::prod-car (std::prod-car (std::prod-cdr x))))))

    Theorem: maybe-posp-of-wire->delay

    (defthm maybe-posp-of-wire->delay
      (b* ((delay (wire->delay$inline x)))
        (maybe-posp delay))
      :rule-classes :type-prescription)

    Theorem: wire->delay$inline-of-wire-fix-x

    (defthm wire->delay$inline-of-wire-fix-x
      (equal (wire->delay$inline (wire-fix x))
             (wire->delay$inline x)))

    Theorem: wire->delay$inline-wire-equiv-congruence-on-x

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