theorem
Nat.digitChar_ne
{n : Nat}
(c : Char)
(h :
(c != '0' && c != '1' && c != '2' && c != '3' && c != '4' && c != '5' && c != '6' && c != '7' && c != '8' && c != '9' && c != 'a' && c != 'b' && c != 'c' && c != 'd' && c != 'e' && c != 'f' && c != '*') = true)
:
Auxiliary theorem for Nat.reduceDigitCharEq simproc.
Transforms a list of characters into a natural number, assuming that all characters are in the
range from '0' to '9'.
Equations
- b.ofDigitChars l init = List.foldl (fun (sofar : Nat) (c : Char) => b * sofar + (c.toNat - '0'.toNat)) init l
Instances For
@[simp]
@[simp]