Detection of math formulae source

Hi, I have the following question: how AI could detect origin of math formulae, say, formula (A) from a paper (B) is used in paper (C)?

Say, in my new paper (C) I used LaTex to copy a formula (A) from pdf paper (B). If I convert my LaTex formula (A) into .png, can this formula be detected as a formula from (B)?

Can that detection be more feasible if in source (B) formula (A) is also in png?
That’s png->png.