• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • 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-modulelist-check-case
              • Vl-collect-ieqv-strings
              • Vl-find-case-equivalent-strings
                • Vl-find-case-equivalent-strings-aux
              • Vl-module-check-case
              • Vl-make-case-equiv-warnings
              • Vl-design-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
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Check-case

Vl-find-case-equivalent-strings

Find all case-equivalent strings in a string-list.

Signature
(vl-find-case-equivalent-strings x) → equiv-sets
Arguments
x — Guard (string-listp x).
Returns
equiv-sets — Each sub-list is a set of case-equivalent strings that occur within x.
    Type (string-list-listp equiv-sets), given the guard.

Definitions and Theorems

Function: vl-find-case-equivalent-strings

(defun vl-find-case-equivalent-strings (x)
  (declare (xargs :guard (string-listp x)))
  (let ((__function__ 'vl-find-case-equivalent-strings))
    (declare (ignorable __function__))
    (b* ((xl (str::downcase-string-list x))
         (dupes (duplicated-members xl))
         (sets (vl-find-case-equivalent-strings-aux dupes x)))
      sets)))

Theorem: string-list-listp-of-vl-find-case-equivalent-strings

(defthm string-list-listp-of-vl-find-case-equivalent-strings
  (implies (and (force (string-listp x)))
           (b* ((equiv-sets (vl-find-case-equivalent-strings x)))
             (string-list-listp equiv-sets)))
  :rule-classes :rewrite)

Subtopics

Vl-find-case-equivalent-strings-aux