• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
          • Vl-lintconfig-p
          • Lucid
          • Skip-detection
          • Vl-lintresult-p
          • Lint-warning-suppression
          • Condcheck
          • Selfassigns
          • Leftright-check
          • Dupeinst-check
          • Oddexpr-check
          • Remove-toohard
          • Qmarksize-check
          • Portcheck
          • Duplicate-detect
          • Vl-print-certain-warnings
          • Duperhs-check
          • *vl-lint-help*
          • Lint-stmt-rewrite
          • Drop-missing-submodules
          • Check-case
            • Vl-modulelist-check-case
            • Vl-collect-ieqv-strings
              • Vl-collect-ieqv-strings-aux
              • Vl-find-case-equivalent-strings
              • Vl-module-check-case
              • Vl-design-check-case
              • Vl-equiv-strings-to-lines
            • Drop-user-submodules
            • Check-namespace
            • Vl-lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-collect-ieqv-strings

    Vl-collect-ieqv-strings-aux

    Signature
    (vl-collect-ieqv-strings-aux a x) → equiv-strs
    Arguments
    a — Already lowercased.
        Guard (stringp a).
    x — Not already lowercased.
        Guard (string-listp x).
    Returns
    equiv-strs — Type (string-listp equiv-strs), given (string-listp x).

    Linear in the length of x.

    Definitions and Theorems

    Function: vl-collect-ieqv-strings-aux

    (defun vl-collect-ieqv-strings-aux (a x)
      (declare (xargs :guard (and (stringp a) (string-listp x))))
      (let ((__function__ 'vl-collect-ieqv-strings-aux))
        (declare (ignorable __function__))
        (cond ((atom x) nil)
              ((equal a (str::downcase-string (car x)))
               (cons (car x)
                     (vl-collect-ieqv-strings-aux a (cdr x))))
              (t (vl-collect-ieqv-strings-aux a (cdr x))))))

    Theorem: string-listp-of-vl-collect-ieqv-strings-aux

    (defthm string-listp-of-vl-collect-ieqv-strings-aux
      (implies (string-listp x)
               (b* ((equiv-strs (vl-collect-ieqv-strings-aux a x)))
                 (string-listp equiv-strs)))
      :rule-classes :rewrite)