# Element–wise summation for custom function

I use a custom function/head Operator[low, high] which encodes a generic polynomial expression split into "low" and "high" summands following considerations which are irrelevant to this question.

Two Operator objects should sum in the following way:

Operator[a,b] + Operator[c,d] -> Operator[a+c,b+d]


which is just standard element–wise summation that List does automatically. How can I tell Mathematica that this kind of automatic simplification or rearrangement is not only allowed, but desirable?

One of the standard ways for such things is using TagSetDelayed
Operator /: Operator[a_, b_] + Operator[c_, d_] := Operator[a + c, b + d]
{"ft_lang_label":"__label__en","ft_lang_prob":0.89734095,"math_prob":0.8911595,"size":499,"snap":"2021-31-2021-39","text_gpt3_token_len":104,"char_repetition_ratio":0.12525253,"word_repetition_ratio":0.0,"special_character_ratio":0.19438878,"punctuation_ratio":0.10227273,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9586995,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-27T18:54:50Z\",\"WARC-Record-ID\":\"<urn:uuid:c47792ce-275c-4250-8158-dc8b84558a4d>\",\"Content-Length\":\"163501\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f074d6e8-b98b-492c-9b0d-4806e081b15c>\",\"WARC-Concurrent-To\":\"<urn:uuid:0735e3e0-51fc-4c41-b26a-632cd2573053>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://mathematica.stackexchange.com/questions/188280/element-wise-summation-for-custom-function/188283\",\"WARC-Payload-Digest\":\"sha1:FJ23B2SFHM36JTJWYVNWDRV753T42SQG\",\"WARC-Block-Digest\":\"sha1:RXTF7JA67FRKBQIXSXOQR3FMVWAVPQHN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780058467.95_warc_CC-MAIN-20210927181724-20210927211724-00532.warc.gz\"}"}