• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
      • Std/lists
      • Std/alists
      • Obags
      • Std/util
      • Std/strings
      • Std/io
        • Open-channel-lemmas
        • Std/io/read-char$
        • Std/io/read-object
        • Std/io/open-output-channel
        • Unsound-read
        • Read-string
        • Read-bytes$
        • File-measure
        • Read-bytes$-n
        • Std/io/read-byte$
        • Std/io/open-input-channel
        • Print-compressed
        • Read-file-lines-no-newlines
        • Nthcdr-bytes
        • Read-file-lines
        • Std/io/close-output-channel
        • Read-file-characters
        • Read-file-bytes
        • Print-legibly
        • Std/io/close-input-channel
        • Read-file-objects
        • Logical-story-of-io
        • Take-bytes
        • Std/io/peek-char$
        • Read-file-characters-rev
        • Read-file-as-string
        • Std/io/write-byte$
        • Std/io/set-serialize-character
        • Std/io/print-object$
        • Std/io/princ$
        • Std/io/read-file-into-string
          • *file-types*
        • Std/osets
        • Std/system
        • Std/basic
        • Std/typed-lists
        • Std/bitsets
        • Std/testing
        • Std/typed-alists
        • Std/stobjs
        • Std-extensions
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Std/io
    • Read-file-into-string

    Std/io/read-file-into-string

    See read-file-into-string.

    Definitions and Theorems

    Theorem: stringp-of-read-file-into-string1

    (defthm
     stringp-of-read-file-into-string1
     (implies
      (not
       (null (mv-nth 0
                     (read-file-into-string1 channel state ans bound))))
      (stringp
           (mv-nth 0
                   (read-file-into-string1 channel state ans bound))))
     :rule-classes
     (:rewrite
      (:type-prescription
       :corollary
       (or
        (null (mv-nth 0
                      (read-file-into-string1 channel state ans bound)))
        (stringp
          (mv-nth 0
                  (read-file-into-string1 channel state ans bound)))))))

    Theorem: state-p1-of-read-file-into-string1

    (defthm
     state-p1-of-read-file-into-string1
     (implies
       (and (symbolp channel)
            (open-input-channel-p channel
                                  :character state)
            (state-p state))
       (state-p1
            (mv-nth 1
                    (read-file-into-string1 channel state ans bound)))))