• 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
        • Svstmt
          • Svstmt-case
          • Svstmt-while
          • Svstmt-p
          • Svstmt-if
          • Svstmt-equiv
          • Svstmt-xcond
          • Svstmt-scope
          • Svstmt-assign
          • Svstmt-compile
            • Svstmt-compile.lisp
            • Svstate
              • Svstate-p
                • Svstate-fix
                • Svstate-equiv
                • Make-svstate
                • Svstate->nonblkst
                • Svstate->blkst
                • Change-svstate
            • Svstmt-constraints
            • Svstmt-jump
            • Svstmtlist
            • Svstmt-kind
            • Svstmt.lisp
            • Svstmt-fix
            • Svstmt-count
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svstate

    Svstate-p

    Recognizer for svstate structures.

    Signature
    (svstate-p x) → *

    Definitions and Theorems

    Function: svstate-p

    (defun svstate-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'svstate-p))
        (declare (ignorable __function__))
        (and (std::prod-consp x)
             (b* ((blkst (std::prod-car x))
                  (nonblkst (std::prod-cdr x)))
               (and (svstack-p blkst)
                    (svex-alist-p nonblkst)
                    (consp blkst))))))

    Theorem: consp-when-svstate-p

    (defthm consp-when-svstate-p
      (implies (svstate-p x) (consp x))
      :rule-classes :compound-recognizer)