Makkot 3
מתני׳ <big><strong>כיצד</strong></big> העדים נעשים זוממין מעידין אנו באיש פלוני שהוא בן גרושה או בן חלוצה אין אומרים יעשה זה בן גרושה או בן חלוצה תחתיו אלא לוקה ארבעים
MISHNA: How are witnesses [which come before a rabbinical court to testify] made zomemim [false witnesses]? Witnesses [proven false] testify that this person is a son of a divorcee or a son of a Levirite marriage. We don't say that they become like a son of a divorcee or a son of a Levirite marriage, rather they are lashed forty times.
<big><strong>גמ׳</strong></big> הא כיצד אין העדים נעשים זוממין מיבעי ליה ועוד מדקתני לקמן אבל אמרו להם היאך אתם מעידין שהרי באותו היום אתם הייתם עמנו במקום פלוני הרי אלו זוממין (מכלל דאלו אין זוממין)
GEMARA: Why does the Mishna ask 'How do witnesses become false witnesses?' [since this is not the topic of the Mishnah] and furthermore, later on we learn [the definition of a false witness] But they [different witnesses come and] say to them [the false witnesses]. 'How can you testify? On that day and in that place, you were with us [in a different place, and therefore lying].
תנא התם קאי כל הזוממין מקדימין לאותה מיתה חוץ מזוממי בת כהן ובועלה שאין מקדימין לאותה מיתה אלא למיתה אחרת
It was taught previously [in the end of Sanhedrin] Every false witness is punished the same [punishment that they tried to cause], except for the case of accusing a Cohen's daughter of adultery...
ויש עדים זוממין אחרים שאין עושין בהן דין הזמה כל עיקר אלא מלקות ארבעים כיצד מעידין אנו באיש פלוני שהוא בן גרושה או בן חלוצה אין אומרים יעשה זה בן גרושה או בן חלוצה תחתיו אלא לוקה את הארבעים
...[now our Mishnah continues] and [then] there are false witnesses who are not given [this kind of] punishment at all, rather they receive forty lashes. How so? Witnesses testify that this person is a son of a divorcee or a son of a Levirite marriage. We don't say that they [the false witnesses] become like a son of a divorcee or a son of a Levirite marriage, rather they are lashed forty times.
מנהני מילי א"ר יהושע בן לוי (אמר ר"ש בן לקיש) דאמר קרא (דברים יט, יט) ועשיתם לו כאשר זמם לו ולא לזרעו וליפסלוהו לדידיה ולא ליפסלו לזרעיה בעינן כאשר זמם לעשות וליכא
What is the source? R' Yehoshua ben Levi said (in the name of R' Raish Lakish) And you shall do to him as HE plotted, [meaning] to him, and not to his offspring. [So] then revoke just his priesthood and not his offspring's, [but] the laws of false witnesses requires the same punishment, and it is missing here.
בר פדא אומר ק"ו ומה המחלל אינו מתחלל הבא לחלל ולא חילל אינו דין שלא יתחלל מתקיף לה רבינא אם כן בטלת תורת עדים זוממין
Bar Pada said It stands to reason, a fortiori, since a priest who successfully takes away priesthood from his fellow keeps his priesthood, a priest who is unsuccessful remains a priest. Ravina argues, if so, false witnesses can never be punishede