- cache : Std.HashMap.Raw Expr Bool
Instances For
unsafe def Lean.HasConstCache.containsUnsafe {declNames : Array Name} (e : Expr) :
StateM (HasConstCache declNames) Bool
Equations
Instances For
@[implemented_by Lean.HasConstCache.containsUnsafe]
opaque Lean.HasConstCache.contains {declNames : Array Name} (e : Expr) :
StateM (HasConstCache declNames) Bool
Return true iff e contains the constant declName.
Remark: the results for visited expressions are stored in the state cache.