CHAR_EQ_CONV : term -> thm
Proves equality or inequality of two HOL character literals.
If s and t are two character literal terms in the HOL logic,
CHAR_EQ_CONV `s = t` returns:
depending on whether the character literals are equal or not equal,
|- s = t <=> T or |- s = t <=> F
- FAILURE CONDITIONS
CHAR_EQ_CONV tm fails f tm is not of the specified form, an equation
between character literals.
# let t = mk_eq(mk_char 'A',mk_char 'A');;
val t : term = `ASCII F T F F F F F T = ASCII F T F F F F F T`
# CHAR_EQ_CONV t;;
val it : thm = |- ASCII F T F F F F F T = ASCII F T F F F F F T <=> T
Performing basic equality reasoning while producing a proof about characters.
There is no particularly convenient parser/printer support for the HOL char
type, but when combined into lists they are considered as strings and provided
with more intuitive parser/printer support. There is a corresponding proof rule
STRING_EQ_CONV for strings.
- SEE ALSO
dest_char, mk_char, NUM_EQ_CONV, STRING_EQ_CONV.