Check if, in a list of Unicode characters,
the character at position
In this definition, we want
Note that
Theorem:
(defthm nonzero-uletters-after-p-suff (implies (and (posp n) (< (+ pos n) (len unicodes)) (equal (take n (nthcdr (1+ pos) unicodes)) (repeat n (char-code #\u))) (or (equal (1+ (+ pos n)) (len unicodes)) (not (equal (nth (1+ (+ pos n)) unicodes) (char-code #\u))))) (nonzero-uletters-after-p pos unicodes)))
Theorem:
(defthm booleanp-of-nonzero-uletters-after-p (b* ((yes/no (nonzero-uletters-after-p pos unicodes))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm posp-of-nonzero-uletters-number (implies (nonzero-uletters-after-p pos unicodes) (posp (number-of-nonzero-uletters-after pos unicodes))) :rule-classes :type-prescription)