Return some c if e is a Char.ofNat-application that encodes the character c.
Instances For
@[inline]
def
Char.reduceUnary
{α : Type u_1}
[Lean.ToExpr α]
(declName : Lean.Name)
(op : Char → α)
(arity : Nat := 1)
(e : Lean.Expr)
:
Instances For
Returns .done for Char values.
These values should not be unfolded in the symbolic evaluator.
In regular simp, the nested raw literal should be prevented from being converted into an
OfNat.ofNat application.
Instances For
Simplifies Nat.digitChar n = c to False when c is a concrete character
not in the range of digitChar (i.e., not one of '0'-'9', 'a'-'f', '*').
Instances For
Simplifies c = Nat.digitChar n to False when c is a concrete character
not in the range of digitChar (i.e., not one of '0'-'9', 'a'-'f', '*').