A version of replace_fn.h that ensures the resulting expression is maximally shared.
@[inline]
def Lean.Meta.Sym.replaceS' (e : Expr) (f : Expr → Nat → Internal.AlphaShareBuilderM (Option Expr)) :
Similar to replace_fn in the kernel, but assumes input is maximally shared, and ensures
output is also maximally shared.
Instances For
@[inline]
def Lean.Meta.Sym.replaceS (e : Expr) (f : Expr → Nat → Internal.AlphaShareBuilderM (Option Expr)) :