• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • 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
        • Svstmt
        • Sv-tutorial
        • Expressions
        • Symbolic-test-vector
        • Vl-to-svex
          • Vl-to-sv
          • Vl-design->sv-design
            • Vl-simpconfig
            • Vl-hierarchy-sv-translation
            • Vl-expr-svex-translation
              • Sv::vl-expr.lisp
              • Vttree
                • Vttree-p
                • Vttree-fix
                • Vttree-count
                • Vttree-equiv
                • Vttree-context
                • Vttree-branch
                  • Vttree-branch->right
                    • Make-vttree-branch
                    • Vttree-branch->left
                    • Change-vttree-branch
                  • Vttree-warnings
                  • Vttree-constraints
                  • Vttree-none
                  • Vttree-kind
                  • Patbind-wvmv
                  • Patbind-vwmv
                  • Patbind-vmv
              • Vl-design->svex-modalist
              • Vl-svstmt
            • Vl-to-sv-main
            • Vl-simplify-sv
            • Vl-user-paramsettings->unparam-names
            • Vl-user-paramsettings->modnames
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vttree-branch

    Vttree-branch->right

    Get the right field from a vttree-branch.

    Signature
    (vttree-branch->right x) → right
    Arguments
    x — Guard (vttree-p x).
    Returns
    right — Type (vttree-p right).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: vttree-branch->right$inline

    (defun vttree-branch->right$inline (x)
      (declare (xargs :guard (vttree-p x)))
      (declare (xargs :guard (equal (vttree-kind x) :branch)))
      (let ((__function__ 'vttree-branch->right))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (vttree-kind x) :branch)
                          x)))
               (vttree-fix (cdr x)))
             :exec (cdr x))))

    Theorem: vttree-p-of-vttree-branch->right

    (defthm vttree-p-of-vttree-branch->right
      (b* ((right (vttree-branch->right$inline x)))
        (vttree-p right))
      :rule-classes :rewrite)

    Theorem: vttree-branch->right$inline-of-vttree-fix-x

    (defthm vttree-branch->right$inline-of-vttree-fix-x
      (equal (vttree-branch->right$inline (vttree-fix x))
             (vttree-branch->right$inline x)))

    Theorem: vttree-branch->right$inline-vttree-equiv-congruence-on-x

    (defthm vttree-branch->right$inline-vttree-equiv-congruence-on-x
      (implies (vttree-equiv x x-equiv)
               (equal (vttree-branch->right$inline x)
                      (vttree-branch->right$inline x-equiv)))
      :rule-classes :congruence)

    Theorem: vttree-branch->right-when-wrong-kind

    (defthm vttree-branch->right-when-wrong-kind
      (implies (not (equal (vttree-kind x) :branch))
               (equal (vttree-branch->right x)
                      (vttree-fix nil))))