The Talmud
סנהדרין דף כ״דSanhedrin 24a
Amud a of Sanhedrin 24 — the first side of the page
English rendering prepared for The Gematria — not a historical translation.
Sanhedrin 24a · סנהדרין כ״ד א
בעדים פסולין ודיינין כשרין מיגו דפסלי עדים פסלי נמי דייני סיפא בדיינין פסולין ועדים כשרין דמיגו דפסלי דיינין פסלי נמי עדים
— is with unfit witnesses and fit judges: since they disqualify the witnesses, they disqualify the judges too. The latter clause is with unfit judges and fit witnesses: since they disqualify the judges, they disqualify the witnesses too.
מתקיף לה רבא בשלמא מיגו דפסלי עדים פסלי נמי דייני איכא בי דינא אחרינא אלא מיגו דפסלי דייני פסלי נמי עדים והא עדים תו ליכא
Rava objected to this: granted, since they disqualify the witnesses they disqualify the judges too — there is another court; but since they disqualify the judges they disqualify the witnesses too? But there are no more witnesses!
לא צריכא דאיכא כת אחרת
It is necessary only where there is another set.
הא ליכא כת אחרת מאי הכי נמי דלא מצי פסלי היינו דרב דימי
But where there is no other set, what? Is it indeed so that he cannot disqualify? That is the same as that of Rav Dimi!
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.