In math, **dedications are rare but not unheard of**. They are most common in birthday conference proceedings, or special issues devoted to summarizing a person's life work. For example, consider the following papers that have a birthday dedication:

https://arxiv.org/abs/math/0603385

https://arxiv.org/abs/math/0112168

https://www.math.ucdavis.edu/~mulase/texfiles/MZcaj.pdf

http://www.math.ualberta.ca/ijnam/Volume-15-2018/No-4-18/Layton-Preface.pdf

https://www.sciencedirect.com/science/article/pii/S1571066105801586

https://link.springer.com/article/10.1007/s00500-017-2576-9

I found these and dozens more by searching Google for `"math" "dedicated to" "occasion" "birthday"`. Similarly, there are plenty of examples dedicated to the memory of a mathematician who recently died (`"math" "dedicated to" "memory of"`):

https://people.math.osu.edu/costin.9/Montreal.pdf

https://arxiv.org/abs/1601.05288

https://files.ele-math.com/articles/dea-10-01.pdf

https://arxiv.org/abs/math/0204009

https://www.aimsciences.org/article/doi/10.3934/dcdsb.2016.21.2i

People have also dedicated papers to non-mathematicians, e.g., Chris Kapulkin dedicated [this paper][1] to his mother.

There is ample evidence that **the journal will not normally object to a dedication**. I have even seen [papers dedicated to the memory of Grothendieck][2], by authors who are unlikely to have known him simply because of the large gap between when he left mathematics and when these papers were written. It's clear that someone's work could have a big impact on a young researcher, even if the two never met. I would say it's **"not inappropriate" to write a dedication in such a situation, even if it's rare**.

In the papers above, you see some dedications right under the author name and above the abstract, and you see others that are a sentence in the acknowledgments. For a junior author dedicating a paper to a senior mathematician they never met, I'd err on the side of putting it in the acknowledgments so you have more space, to write a full sentence about how that person's work touched your life. The short style above the abstract of simply "This paper is dedicated to X" might raise a question in the mind of the reader, though, to be honest, I think most people would ignore the dedication regardless of where you put it. Lastly, there were two threads on academia.SE about dedications:

https://academia.stackexchange.com/questions/90441/when-can-scientific-publications-have-a-dedication

https://academia.stackexchange.com/questions/137022/dedicating-a-paper


  [1]: https://arxiv.org/pdf/1203.2553.pdf
  [2]: https://arxiv.org/abs/1603.03387