• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Abnf
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Pfcs
        • Soft
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • C
        • Syntheto
        • File-io-light
        • Number-theory
        • Cryptography
        • Lists-light
        • Json
        • Axe
        • Builtins
        • Solidity
        • Std-extensions
          • Std/util-extensions
          • Std/basic-extensions
          • Std/strings-extensions
            • Strtok!
            • Character-kinds
              • Letter/digit/uscore/dollar-char-p
              • Letter/digit/uscore/dash-char-p
              • Letter-char-p
              • Letter/uscore/dollar-char-p
              • Letter/digit/uscore-char-p
              • Letter/digit/dash-char-p
              • Letter/digit-char-p
              • Lcletter/digit-char-p
              • Ucletter/digit-char-p
              • Printable-char-p
              • Nondigit-char-p
              • Ucletter-char-p
              • Lcletter-char-p
                • Lcletter-charlist-p
                • Lcletter-chars
            • Explode-implode-equalities
          • Std/system-extensions
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • Character-kinds

Lcletter-char-p

Recognize lowercase ASCII letters.

Definitions and Theorems

Function: lcletter-char-p

(defun lcletter-char-p (x)
  (declare (xargs :guard t))
  (and (characterp x)
       (b* ((code (char-code x)))
         (and (<= (char-code #\a) code)
              (<= code (char-code #\z))))))

Theorem: booleanp-of-lcletter-char-p

(defthm booleanp-of-lcletter-char-p
  (booleanp (lcletter-char-p x))
  :rule-classes :type-prescription)

Theorem: characterp-when-lcletter-char-p

(defthm characterp-when-lcletter-char-p
  (implies (lcletter-char-p x)
           (characterp x))
  :rule-classes :compound-recognizer)

Subtopics

Lcletter-charlist-p
(lcletter-charlist-p x) recognizes lists where every element satisfies lcletter-char-p.
Lcletter-chars
A character set for lcletter-char-p.