• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Vwsim
      • Fgl
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
          • Vl-lint
            • Vl-lintconfig-p
            • Condcheck
            • Lint-warning-suppression
            • Lucid
            • Lvaluecheck
            • Vl-interfacelist-alwaysstyle
            • Truncation-warnings
            • Vl-modulelist-alwaysstyle
            • Skip-detection
            • Vl-lint-report
            • Vl-lintresult
            • Vl::vl-design-sv-use-set
            • Oddexpr-check
            • Leftright-check
            • Duplicate-detect
            • Selfassigns
            • *vl-lint-help*
            • Arith-compare-check
            • Dupeinst-check
            • Qmarksize-check
            • Lint-whole-file-suppression
            • Run-vl-lint-main
            • Logicassign
            • Run-vl-lint
            • Vl-print-certain-warnings
            • Duperhs-check
            • Vl-lint-top
            • Sd-filter-problems
              • Vl-modulelist-add-svbad-warnings
              • Vl-module-add-svbad-warnings
              • Check-case
              • Vl-lint-extra-actions
              • Drop-lint-stubs
              • Vl-lint-print-warnings
              • Drop-user-submodules
              • Check-namespace
              • Vl-lintconfig-loadconfig
              • Vl-lint-design->svex-modalist-wrapper
              • Vl-delete-sd-problems-for-modnames-aux
              • Vl-collect-new-names-from-orignames
              • Vl-lint-print-all-warnings
              • Vl-design-remove-unnecessary-modules
              • Vl-delete-sd-problems-for-modnames
              • Vl-always-check-style
              • Vl-vardecllist-svbad-warnings
              • Vl-vardecl-svbad-warnings
              • Vl-reportcard-remove-suppressed
              • Vl-reportcard-keep-suppressed
              • Vl-alwayslist-check-style
              • Vl-remove-nameless-descriptions
              • Vl-lint-apply-quiet
              • Vl-warninglist-remove-suppressed
              • Vl-warninglist-keep-suppressed
              • Vl-print-eliminated-descs
              • Vl-module-alwaysstyle
              • Vl-jp-reportcard-aux
              • Vl-interface-alwaysstyle
              • Vl-design-alwaysstyle
              • Vl-jp-description-locations
              • Vl-jp-reportcard
              • Vl-pp-stringlist-lines
              • Vl-jp-design-locations
              • Vl-datatype-svbad-p
              • Unpacked-range-check
              • Sd-problem-major-p
              • Vl-alwaysstyle
            • Vl-server
            • Vl-gather
            • Vl-zip
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • Svl
        • X86isa
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-lint

    Sd-filter-problems

    Signature
    (sd-filter-problems x major minor) → (mv major minor)
    Arguments
    x — Guard (sd-problemlist-p x).
    major — Guard (sd-problemlist-p major).
    minor — Guard (sd-problemlist-p minor).
    Returns
    major — Type (sd-problemlist-p major), given the guard.
    minor — Type (sd-problemlist-p minor), given the guard.

    Definitions and Theorems

    Function: sd-filter-problems

    (defun sd-filter-problems (x major minor)
      (declare (xargs :guard (and (sd-problemlist-p x)
                                  (sd-problemlist-p major)
                                  (sd-problemlist-p minor))))
      (let ((__function__ 'sd-filter-problems))
        (declare (ignorable __function__))
        (cond ((atom x) (mv major minor))
              ((sd-problem-major-p (car x))
               (sd-filter-problems (cdr x)
                                   (cons (car x) major)
                                   minor))
              (t (sd-filter-problems (cdr x)
                                     major (cons (car x) minor))))))

    Theorem: sd-problemlist-p-of-sd-filter-problems.major

    (defthm sd-problemlist-p-of-sd-filter-problems.major
      (implies (and (force (sd-problemlist-p x))
                    (force (sd-problemlist-p major))
                    (force (sd-problemlist-p minor)))
               (b* (((mv ?major ?minor)
                     (sd-filter-problems x major minor)))
                 (sd-problemlist-p major)))
      :rule-classes :rewrite)

    Theorem: sd-problemlist-p-of-sd-filter-problems.minor

    (defthm sd-problemlist-p-of-sd-filter-problems.minor
      (implies (and (force (sd-problemlist-p x))
                    (force (sd-problemlist-p major))
                    (force (sd-problemlist-p minor)))
               (b* (((mv ?major ?minor)
                     (sd-filter-problems x major minor)))
                 (sd-problemlist-p minor)))
      :rule-classes :rewrite)

    Theorem: true-listp-sd-filter-problems

    (defthm true-listp-sd-filter-problems
     (and
        (implies
             (true-listp major)
             (true-listp (mv-nth 0 (sd-filter-problems x major minor))))
        (implies
             (true-listp minor)
             (true-listp (mv-nth 1
                                 (sd-filter-problems x major minor))))))