• 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
          • Preprocessor
          • Vl-loadconfig
          • Lexer
            • Lex-strings
            • Lex-identifiers
            • Vl-typo-uppercase-p
            • Vl-typo-number-p
            • Vl-typo-lowercase-p
            • Lex-numbers
            • Chartypes
            • Vl-lex
              • Vl-lex-token1
              • Vl-lex-plain-alist
              • Vl-lex-plain
                • Vl-lex-plain-token/remainder-thms
                • Vl-lex-token
                • Vl-lex-main
                • Vl-lex-main-exec
              • Defchar
              • Tokens
              • Lex-keywords
              • Lexstate
              • Make-test-tokens
              • Lexer-utils
              • Lex-comments
              • Vl-typo-uppercase-list-p
              • Vl-typo-lowercase-list-p
              • Vl-typo-number-list-p
            • Vl-loadstate
            • Parser
            • Vl-load-merge-descriptions
            • Scope-of-defines
            • Vl-load-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-loadresult
            • Vl-read-file
            • Vl-find-basename/extension
            • Vl-find-file
            • Vl-read-files
            • Extended-characters
            • Vl-load
            • Vl-load-main
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-load-descriptions
            • Vl-load-files
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-descriptionlist
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-lex-plain
    • Def-token/remainder-thms

    Vl-lex-plain-token/remainder-thms

    Token and remainder theorems for vl-lex-plain, automatically generated by def-token/remainder-thms.

    Definitions and Theorems

    Theorem: vl-token-p-of-vl-lex-plain

    (defthm vl-token-p-of-vl-lex-plain
     (implies
      (and (force (vl-echarlist-p echars))
           (force (vl-plaintokentype-p type)))
      (equal
        (vl-token-p (mv-nth 0
                            (vl-lex-plain echars string type warnings)))
        (if (mv-nth 0
                    (vl-lex-plain echars string type warnings))
            t
          nil))))

    Theorem: true-listp-of-vl-lex-plain

    (defthm true-listp-of-vl-lex-plain
     (equal
        (true-listp (mv-nth 1
                            (vl-lex-plain echars string type warnings)))
        (true-listp echars))
     :rule-classes
     ((:rewrite)
      (:type-prescription
       :corollary
       (implies
           (true-listp echars)
           (true-listp
                (mv-nth 1
                        (vl-lex-plain echars string type warnings)))))))

    Theorem: vl-echarlist-p-of-vl-lex-plain

    (defthm vl-echarlist-p-of-vl-lex-plain
     (implies
        (force (vl-echarlist-p echars))
        (equal (vl-echarlist-p
                    (mv-nth 1
                            (vl-lex-plain echars string type warnings)))
               t)))

    Theorem: append-of-vl-lex-plain

    (defthm append-of-vl-lex-plain
     (implies
      (and (mv-nth 0
                   (vl-lex-plain echars string type warnings))
           (force (vl-echarlist-p echars))
           (force (vl-plaintokentype-p type)))
      (equal
       (append (vl-token->etext
                    (mv-nth 0
                            (vl-lex-plain echars string type warnings)))
               (mv-nth 1
                       (vl-lex-plain echars string type warnings)))
       echars)))

    Theorem: no-change-loser-of-vl-lex-plain

    (defthm no-change-loser-of-vl-lex-plain
     (implies (not (mv-nth 0
                           (vl-lex-plain echars string type warnings)))
              (equal (mv-nth 1
                             (vl-lex-plain echars string type warnings))
                     echars)))

    Theorem: acl2-count-of-vl-lex-plain-weak

    (defthm acl2-count-of-vl-lex-plain-weak
     (<=
        (acl2-count (mv-nth 1
                            (vl-lex-plain echars string type warnings)))
        (acl2-count echars))
     :rule-classes ((:rewrite) (:linear)))

    Theorem: acl2-count-of-vl-lex-plain-strong

    (defthm acl2-count-of-vl-lex-plain-strong
     (implies
      (and (mv-nth 0
                   (vl-lex-plain echars string type warnings))
           t)
      (<
        (acl2-count (mv-nth 1
                            (vl-lex-plain echars string type warnings)))
        (acl2-count echars)))
     :rule-classes ((:rewrite) (:linear)))