public override bool IsSubstitution(IAlgebraicEntity entity) { return(entity switch { Symbol sym => this.Symbol.Equals(sym), _ => false });
public abstract bool IsSubstitution(IAlgebraicEntity entity);