Check if, in a list of Unicode characters,
the character at position
(eligible-backslash-p pos unicodes) → yes/no
This is the case when
the character at
Function:
(defun eligible-backslash-p (pos unicodes) (declare (xargs :guard (and (natp pos) (unicode-listp unicodes)))) (declare (xargs :guard (< pos (len unicodes)))) (and (equal (nth pos unicodes) (char-code #\\)) (even-backslashes-before-p pos unicodes)))
Theorem:
(defthm booleanp-of-eligible-backslash-p (b* ((yes/no (eligible-backslash-p pos unicodes))) (booleanp yes/no)) :rule-classes :rewrite)