• 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
          • Module
          • Lhs
          • Path
          • Svar-add-namespace
          • Design
            • Design-fix
            • Design-equiv
            • Make-design
            • Design-p
            • Design->modalist
            • Change-design
            • Design->top
            • 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
    • Design

    Design->top

    Get the top field from a design.

    Signature
    (design->top x) → top
    Arguments
    x — Guard (design-p x).
    Returns
    top — Type (modname-p top).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: design->top$inline

    (defun design->top$inline (x)
      (declare (xargs :guard (design-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'design->top))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (modname-fix (cdr (std::da-nth 1 x))))
             :exec (cdr (std::da-nth 1 x)))))

    Theorem: modname-p-of-design->top

    (defthm modname-p-of-design->top
      (b* ((top (design->top$inline x)))
        (modname-p top))
      :rule-classes :rewrite)

    Theorem: design->top$inline-of-design-fix-x

    (defthm design->top$inline-of-design-fix-x
      (equal (design->top$inline (design-fix x))
             (design->top$inline x)))

    Theorem: design->top$inline-design-equiv-congruence-on-x

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