Check if, in a list of Unicode characters,
the character at position
This is used to define the notion of eligible backslash.
Note that
Formally, it is not sufficient just to say that
there are
This definition works fine if
Theorem:
(defthm even-backslashes-before-p-suff (implies (and (natp n) (evenp n) (>= (- pos n) 0) (equal (take n (nthcdr (- pos n) unicodes)) (repeat n (char-code #\\))) (or (equal (- pos n) 0) (not (equal (nth (1- (- pos n)) unicodes) (char-code #\\))))) (even-backslashes-before-p pos unicodes)))
Theorem:
(defthm booleanp-of-even-backslashes-before-p (b* ((yes/no (even-backslashes-before-p pos unicodes))) (booleanp yes/no)) :rule-classes :rewrite)