And know, that regarding every house that is a beit shaar as has been explained, however, one may not consider this one a beit shaar and that one a house. For example, two courtyards with two houses between them, and they did not make an eruv together but rather each one for itself, and a member of this courtyard came through the house that is next to him and placed his eruv in the house that is next to the second one, and the second one did likewise, in that he also placed his eruv in the house adjacent to the other courtyard—they have not acquired an eruv. For whichever way you look at it: if we consider each house as a beit shaar—behold, one who places his eruv in a beit shaar, it is not an eruv; and if we consider them as houses—behold, there is the interruption of a house between the courtyard and the house in which they place the eruv. Rather, you must say that for this one we consider his house that is next to him as a beit shaar and the second house as a complete house, and for the second one the opposite; if so, it is a contradiction between two opposites. And even though regarding eruvin we sometimes say even a contradiction between two opposites, as will be explained in siman 393, this is in a matter that is not so noticeable, but in a noticeable matter—it is like mockery and jest, and we do not give the Sadducees an opening to dominate. (Rashi, end of Perek HaHadar (Eruvin 76a))
ודע, דכל בית דהוה בית שער כמו שנתבאר, מיהו אין לחשוב לזו בית שער ולזו כבית. כגון שתי חצרות ושני בתים ביניהם, ולא עירבו יחד אלא כל אחת לעצמה, ובא בן חצר זה דרך בית שאצלו, והניח עירובו בבית שאצל השני, וכן עשה השני שגם הוא הניח עירובו בהבית הסמוך לחצר אחרת - לא קנו עירוב. דממה נפשך, אם נחשוב כל בית כבית שער - הרי המניח עירובו בבית שער אינו עירוב, ואם נחשוב כבתים - הרי יש הפסק בית בין החצר ובין הבית שמניחין בו העירוב. אלא אתה צריך לומר שלזה נחשוב ביתו שאצלו כבית שער, והבית השני לבית גמור, ולהשני ההיפך, אם כן הוה תרתי דסתרי. ואף על גב דבעירובין אמרינן לפעמים גם תרתי דסתרי, כמו שיתבאר בסימן שצ"ג, זהו בדבר שאינו ניכר כל כך, אבל בדבר הניכר - הוי כי חוכא ואיטלולא, ולא ניתן פה לצדוקים לרדות. (רש"י סוף פרק הדר (עירובין ע"ו.))