Is there a rule where if a monk is an arahant and if he is to tell he is an arahant, he can only say it to a Upasampada monk and not even a samanera monk?
If so, please provide the source of the rule
According to the Patimokkha rules:
Should any bhikkhu, without direct knowledge, claim a superior human state, a truly noble knowledge and vision, as present in himself, saying, "Thus do I know; thus do I see," such that regardless of whether or not he is cross-examined on a later occasion, he — being remorseful and desirous of purification — might say, "Friends, not knowing, I said I know; not seeing, I said I see — vainly, falsely, idly," unless it was from over-estimation, he also is defeated and no longer in affiliation.
Should any bhikkhu report (his own) superior human state to an unordained person, when it is factual, it is to be confessed.
But above, there are no distinctions made between fully ordained monks and novice monks.